Skip to content

Commit 060d0a4

Browse files
committed
fix testcase
1 parent f1d887e commit 060d0a4

9 files changed

+865
-831
lines changed

Diff for: tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -540,25 +540,7 @@
540540
"type": "TSTypeAnnotation",
541541
"typeAnnotation": {
542542
"type": "TSTypeReference",
543-
"typeName": {
544-
"type": "Identifier",
545-
"name": "Promise",
546-
"range": [
547-
119,
548-
126
549-
],
550-
"loc": {
551-
"start": {
552-
"line": 3,
553-
"column": 58
554-
},
555-
"end": {
556-
"line": 3,
557-
"column": 65
558-
}
559-
}
560-
},
561-
"typeParameters": {
543+
"typeArguments": {
562544
"type": "TSTypeParameterInstantiation",
563545
"params": [
564546
{
@@ -594,6 +576,24 @@
594576
}
595577
}
596578
},
579+
"typeName": {
580+
"type": "Identifier",
581+
"name": "Promise",
582+
"range": [
583+
119,
584+
126
585+
],
586+
"loc": {
587+
"start": {
588+
"line": 3,
589+
"column": 58
590+
},
591+
"end": {
592+
"line": 3,
593+
"column": 65
594+
}
595+
}
596+
},
597597
"range": [
598598
119,
599599
134

Diff for: tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json

+38-38
Original file line numberDiff line numberDiff line change
@@ -9656,25 +9656,7 @@
96569656
"type": "TSTypeAnnotation",
96579657
"typeAnnotation": {
96589658
"type": "TSTypeReference",
9659-
"typeName": {
9660-
"type": "Identifier",
9661-
"name": "Promise",
9662-
"range": [
9663-
119,
9664-
126
9665-
],
9666-
"loc": {
9667-
"start": {
9668-
"line": 3,
9669-
"column": 58
9670-
},
9671-
"end": {
9672-
"line": 3,
9673-
"column": 65
9674-
}
9675-
}
9676-
},
9677-
"typeParameters": {
9659+
"typeArguments": {
96789660
"type": "TSTypeParameterInstantiation",
96799661
"params": [
96809662
{
@@ -9710,6 +9692,24 @@
97109692
}
97119693
}
97129694
},
9695+
"typeName": {
9696+
"type": "Identifier",
9697+
"name": "Promise",
9698+
"range": [
9699+
119,
9700+
126
9701+
],
9702+
"loc": {
9703+
"start": {
9704+
"line": 3,
9705+
"column": 58
9706+
},
9707+
"end": {
9708+
"line": 3,
9709+
"column": 65
9710+
}
9711+
}
9712+
},
97139713
"range": [
97149714
119,
97159715
134
@@ -10433,25 +10433,7 @@
1043310433
"type": "TSTypeAnnotation",
1043410434
"typeAnnotation": {
1043510435
"type": "TSTypeReference",
10436-
"typeName": {
10437-
"type": "Identifier",
10438-
"name": "Promise",
10439-
"range": [
10440-
119,
10441-
126
10442-
],
10443-
"loc": {
10444-
"start": {
10445-
"line": 3,
10446-
"column": 58
10447-
},
10448-
"end": {
10449-
"line": 3,
10450-
"column": 65
10451-
}
10452-
}
10453-
},
10454-
"typeParameters": {
10436+
"typeArguments": {
1045510437
"type": "TSTypeParameterInstantiation",
1045610438
"params": [
1045710439
{
@@ -10487,6 +10469,24 @@
1048710469
}
1048810470
}
1048910471
},
10472+
"typeName": {
10473+
"type": "Identifier",
10474+
"name": "Promise",
10475+
"range": [
10476+
119,
10477+
126
10478+
],
10479+
"loc": {
10480+
"start": {
10481+
"line": 3,
10482+
"column": 58
10483+
},
10484+
"end": {
10485+
"line": 3,
10486+
"column": 65
10487+
}
10488+
}
10489+
},
1049010490
"range": [
1049110491
119,
1049210492
134

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
}
238238
},
239239
"optional": false,
240-
"typeParameters": {
240+
"typeArguments": {
241241
"type": "TSTypeParameterInstantiation",
242242
"params": [
243243
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8832,7 +8832,7 @@
88328832
}
88338833
},
88348834
"optional": false,
8835-
"typeParameters": {
8835+
"typeArguments": {
88368836
"type": "TSTypeParameterInstantiation",
88378837
"params": [
88388838
{

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

+19-19
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,7 @@
111111
"type": "TSTypeAnnotation",
112112
"typeAnnotation": {
113113
"type": "TSTypeReference",
114-
"typeName": {
115-
"type": "Identifier",
116-
"name": "Promise",
117-
"range": [
118-
32,
119-
39
120-
],
121-
"loc": {
122-
"start": {
123-
"line": 2,
124-
"column": 13
125-
},
126-
"end": {
127-
"line": 2,
128-
"column": 20
129-
}
130-
}
131-
},
132-
"typeParameters": {
114+
"typeArguments": {
133115
"type": "TSTypeParameterInstantiation",
134116
"params": [
135117
{
@@ -237,6 +219,24 @@
237219
}
238220
}
239221
},
222+
"typeName": {
223+
"type": "Identifier",
224+
"name": "Promise",
225+
"range": [
226+
32,
227+
39
228+
],
229+
"loc": {
230+
"start": {
231+
"line": 2,
232+
"column": 13
233+
},
234+
"end": {
235+
"line": 2,
236+
"column": 20
237+
}
238+
}
239+
},
240240
"range": [
241241
32,
242242
51

0 commit comments

Comments
 (0)