File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ export const preprocess = text => {
173
173
node . attributes . forEach ( node => node . type === 'Let' && find_contextual_names ( compiler , node . expression || node . name ) ) ;
174
174
}
175
175
if ( Array . isArray ( node . children ) ) {
176
- node . children . forEach ( node => node . type === 'ConstTag' && find_contextual_names ( compiler , node . expression . left . name ) ) ;
176
+ node . children . forEach ( node => node . type === 'ConstTag' && find_contextual_names ( compiler , node . expression . left . name || node . expression . left ) ) ;
177
177
}
178
178
if ( contextual_names . length ) {
179
179
nodes_with_contextual_scope . add ( node ) ;
Original file line number Diff line number Diff line change 1
1
<script >
2
2
export let boxes;
3
3
let p;
4
+ let dimensions = [{ width: 100 , height: 20 }];
4
5
</script >
5
6
6
7
{#each boxes as box }
10
11
11
12
{area } <!-- undef -->
12
13
14
+ {#each dimensions as dimension }
15
+ {@const { width , height } = dimension }
16
+ {width }
17
+ {height }
18
+ {unknown } <!-- undef -->
19
+ {/each }
20
+
13
21
{#await p }
14
22
wait
15
23
{:then }
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"ruleId" : " no-undef" ,
4
- "line" : 11 ,
4
+ "line" : 12 ,
5
5
"column" : 2 ,
6
- "endLine" : 11 ,
6
+ "endLine" : 12 ,
7
7
"endColumn" : 6
8
+ },
9
+ {
10
+ "ruleId" : " no-undef" ,
11
+ "line" : 18 ,
12
+ "column" : 3 ,
13
+ "endLine" : 18 ,
14
+ "endColumn" : 10
8
15
}
9
16
]
You can’t perform that action at this time.
0 commit comments