Skip to content

Commit 3baf9e2

Browse files
committed
fix
1 parent 9c3d77d commit 3baf9e2

5 files changed

+25
-25
lines changed

Diff for: tests/fixtures/parser/ast/ts-store01-input.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
{$b}
1212
{c}
1313
{$c}
14-
{$d}
14+
{$unknown}

Diff for: tests/fixtures/parser/ast/ts-store01-no-undef-result.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"ruleId": "no-undef",
4-
"code": "$d",
4+
"code": "$unknown",
55
"line": 14,
66
"column": 2
77
}

Diff for: tests/fixtures/parser/ast/ts-store01-output.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1012,10 +1012,10 @@
10121012
"kind": "text",
10131013
"expression": {
10141014
"type": "Identifier",
1015-
"name": "$d",
1015+
"name": "$unknown",
10161016
"range": [
10171017
197,
1018-
199
1018+
205
10191019
],
10201020
"loc": {
10211021
"start": {
@@ -1024,13 +1024,13 @@
10241024
},
10251025
"end": {
10261026
"line": 14,
1027-
"column": 3
1027+
"column": 9
10281028
}
10291029
}
10301030
},
10311031
"range": [
10321032
196,
1033-
200
1033+
206
10341034
],
10351035
"loc": {
10361036
"start": {
@@ -1039,7 +1039,7 @@
10391039
},
10401040
"end": {
10411041
"line": 14,
1042-
"column": 4
1042+
"column": 10
10431043
}
10441044
}
10451045
}
@@ -2291,10 +2291,10 @@
22912291
},
22922292
{
22932293
"type": "Identifier",
2294-
"value": "$d",
2294+
"value": "$unknown",
22952295
"range": [
22962296
197,
2297-
199
2297+
205
22982298
],
22992299
"loc": {
23002300
"start": {
@@ -2303,32 +2303,32 @@
23032303
},
23042304
"end": {
23052305
"line": 14,
2306-
"column": 3
2306+
"column": 9
23072307
}
23082308
}
23092309
},
23102310
{
23112311
"type": "Punctuator",
23122312
"value": "}",
23132313
"range": [
2314-
199,
2315-
200
2314+
205,
2315+
206
23162316
],
23172317
"loc": {
23182318
"start": {
23192319
"line": 14,
2320-
"column": 3
2320+
"column": 9
23212321
},
23222322
"end": {
23232323
"line": 14,
2324-
"column": 4
2324+
"column": 10
23252325
}
23262326
}
23272327
}
23282328
],
23292329
"range": [
23302330
0,
2331-
201
2331+
207
23322332
],
23332333
"loc": {
23342334
"start": {

Diff for: tests/fixtures/parser/ast/ts-store01-scope-output.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -10847,10 +10847,10 @@
1084710847
{
1084810848
"identifier": {
1084910849
"type": "Identifier",
10850-
"name": "$d",
10850+
"name": "$unknown",
1085110851
"range": [
1085210852
197,
10853-
199
10853+
205
1085410854
],
1085510855
"loc": {
1085610856
"start": {
@@ -10859,7 +10859,7 @@
1085910859
},
1086010860
"end": {
1086110861
"line": 14,
10862-
"column": 3
10862+
"column": 9
1086310863
}
1086410864
}
1086510865
},
@@ -10873,10 +10873,10 @@
1087310873
{
1087410874
"identifier": {
1087510875
"type": "Identifier",
10876-
"name": "$d",
10876+
"name": "$unknown",
1087710877
"range": [
1087810878
197,
10879-
199
10879+
205
1088010880
],
1088110881
"loc": {
1088210882
"start": {
@@ -10885,7 +10885,7 @@
1088510885
},
1088610886
"end": {
1088710887
"line": 14,
10888-
"column": 3
10888+
"column": 9
1088910889
}
1089010890
}
1089110891
},
@@ -10900,10 +10900,10 @@
1090010900
{
1090110901
"identifier": {
1090210902
"type": "Identifier",
10903-
"name": "$d",
10903+
"name": "$unknown",
1090410904
"range": [
1090510905
197,
10906-
199
10906+
205
1090710907
],
1090810908
"loc": {
1090910909
"start": {
@@ -10912,7 +10912,7 @@
1091210912
},
1091310913
"end": {
1091410914
"line": 14,
10915-
"column": 3
10915+
"column": 9
1091610916
}
1091710917
}
1091810918
},

Diff for: tests/fixtures/parser/ast/ts-store01-type-output.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
{$b} <!-- $b: "abc" -->
1212
{c} <!-- c: "abc" -->
1313
{$c} <!-- $c: any -->
14-
{$d} <!-- $d: any -->
14+
{$unknown} <!-- $unknown: any -->

0 commit comments

Comments
 (0)