Skip to content

Commit dc4330c

Browse files
committed
rename
1 parent 501783f commit dc4330c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function is_global_block_selector(simple_selector) {
3434
* @param {import('../types.js').Context["path"]} path
3535
* @returns
3636
*/
37-
function is_unscoped_global(path) {
37+
function is_unscoped(path) {
3838
// remove every at rule or stylesheet and the current rule in case is passed in from `ComplexSelector`
3939
return path
4040
.filter((node) => node.type === 'Rule')
@@ -57,7 +57,7 @@ const css_visitors = {
5757
context.state.keyframes.push(node.prelude);
5858
} else if (node.prelude.startsWith('-global-')) {
5959
// we don't check if the block.children.length because the keyframe is still added even if empty
60-
context.state.has_global.value ||= is_unscoped_global(context.path);
60+
context.state.has_global.value ||= is_unscoped(context.path);
6161
}
6262
}
6363

@@ -279,7 +279,7 @@ const css_visitors = {
279279
context.state.has_global.value ||=
280280
node.metadata.has_global_selectors &&
281281
node.block.children.filter((child) => child.type === 'Declaration').length > 0 &&
282-
is_unscoped_global(context.path);
282+
is_unscoped(context.path);
283283

284284
// visit block list, so parent rule metadata is populated
285285
context.visit(node.block, state);

0 commit comments

Comments
 (0)