File tree 3 files changed +66
-5
lines changed
tests/baselines/reference/JSDocParsing
3 files changed +66
-5
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ describe("unittests:: JSDocParsing", () => {
226
226
) ;
227
227
228
228
parsesCorrectly (
229
- "importTypeTag3 " ,
229
+ "importTypeTag4 " ,
230
230
`/**
231
231
* @importType * as types from 'foo' comment part
232
232
*/` ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"kind" : " JSDoc" ,
3
3
"pos" : 0 ,
4
- "end" : 59 ,
4
+ "end" : 46 ,
5
5
"flags" : " JSDoc" ,
6
6
"modifierFlagsCache" : 0 ,
7
7
"transformFlags" : 0 ,
8
8
"tags" : {
9
9
"0" : {
10
10
"kind" : " JSDocImportTypeTag" ,
11
11
"pos" : 8 ,
12
- "end" : 57 ,
12
+ "end" : 41 ,
13
13
"modifierFlagsCache" : 0 ,
14
14
"transformFlags" : 0 ,
15
15
"tagName" : {
20
20
"transformFlags" : 0 ,
21
21
"escapedText" : " importType"
22
22
},
23
- "comment" : " comment part" ,
24
23
"importClause" : {
25
24
"kind" : " ImportClause" ,
26
25
"pos" : 20 ,
55
54
},
56
55
"length" : 1 ,
57
56
"pos" : 8 ,
58
- "end" : 57 ,
57
+ "end" : 41 ,
59
58
"hasTrailingComma" : false ,
60
59
"transformFlags" : 0
61
60
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "kind" : " JSDoc" ,
3
+ "pos" : 0 ,
4
+ "end" : 59 ,
5
+ "flags" : " JSDoc" ,
6
+ "modifierFlagsCache" : 0 ,
7
+ "transformFlags" : 0 ,
8
+ "tags" : {
9
+ "0" : {
10
+ "kind" : " JSDocImportTypeTag" ,
11
+ "pos" : 8 ,
12
+ "end" : 57 ,
13
+ "modifierFlagsCache" : 0 ,
14
+ "transformFlags" : 0 ,
15
+ "tagName" : {
16
+ "kind" : " Identifier" ,
17
+ "pos" : 9 ,
18
+ "end" : 19 ,
19
+ "modifierFlagsCache" : 0 ,
20
+ "transformFlags" : 0 ,
21
+ "escapedText" : " importType"
22
+ },
23
+ "comment" : " comment part" ,
24
+ "importClause" : {
25
+ "kind" : " ImportClause" ,
26
+ "pos" : 20 ,
27
+ "end" : 30 ,
28
+ "modifierFlagsCache" : 0 ,
29
+ "transformFlags" : 1 ,
30
+ "isTypeOnly" : true ,
31
+ "namedBindings" : {
32
+ "kind" : " NamespaceImport" ,
33
+ "pos" : 20 ,
34
+ "end" : 30 ,
35
+ "modifierFlagsCache" : 0 ,
36
+ "transformFlags" : 0 ,
37
+ "name" : {
38
+ "kind" : " Identifier" ,
39
+ "pos" : 24 ,
40
+ "end" : 30 ,
41
+ "modifierFlagsCache" : 0 ,
42
+ "transformFlags" : 0 ,
43
+ "escapedText" : " types"
44
+ }
45
+ }
46
+ },
47
+ "moduleSpecifier" : {
48
+ "kind" : " StringLiteral" ,
49
+ "pos" : 35 ,
50
+ "end" : 41 ,
51
+ "modifierFlagsCache" : 0 ,
52
+ "transformFlags" : 0 ,
53
+ "text" : " foo"
54
+ }
55
+ },
56
+ "length" : 1 ,
57
+ "pos" : 8 ,
58
+ "end" : 57 ,
59
+ "hasTrailingComma" : false ,
60
+ "transformFlags" : 0
61
+ }
62
+ }
You can’t perform that action at this time.
0 commit comments