File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
packages/svelte/src/compiler/phases/2-analyze/css Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -141,16 +141,12 @@ function get_relative_selectors(node) {
141
141
142
142
// nesting could be inside pseudo classes like :is, :has or :where
143
143
for ( let selector of selectors ) {
144
- walk (
145
- selector ,
146
- { } ,
147
- {
148
- // @ts -ignore
149
- NestingSelector ( ) {
150
- has_explicit_nesting_selector = true ;
151
- }
144
+ walk ( selector , null , {
145
+ // @ts -ignore
146
+ NestingSelector ( ) {
147
+ has_explicit_nesting_selector = true ;
152
148
}
153
- ) ;
149
+ } ) ;
154
150
// if we found one we can break from the others
155
151
if ( has_explicit_nesting_selector ) break ;
156
152
}
@@ -881,17 +877,17 @@ function get_element_parent(node) {
881
877
}
882
878
883
879
/**
884
- * @param {Compiler.AST.RegularElement | Compiler.AST.SvelteElement } element
880
+ * @param {Compiler.AST.RegularElement | Compiler.AST.SvelteElement } node
885
881
* @param {boolean } adjacent_only
886
882
* @returns {Map<Compiler.AST.RegularElement | Compiler.AST.SvelteElement | Compiler.AST.SlotElement | Compiler.AST.RenderTag, NodeExistsValue> }
887
883
*/
888
- function get_possible_element_siblings ( element , adjacent_only ) {
884
+ function get_possible_element_siblings ( node , adjacent_only ) {
889
885
/** @type {Map<Compiler.AST.RegularElement | Compiler.AST.SvelteElement | Compiler.AST.SlotElement | Compiler.AST.RenderTag, NodeExistsValue> } */
890
886
const result = new Map ( ) ;
891
- const path = element . metadata . path ;
887
+ const path = node . metadata . path ;
892
888
893
889
/** @type {Compiler.SvelteNode } */
894
- let current = element ;
890
+ let current = node ;
895
891
896
892
let i = path . length ;
897
893
You can’t perform that action at this time.
0 commit comments