forked from babel/babel
/
output.json
87 lines (87 loc) 路 3.15 KB
/
output.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"type": "File",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":19}},
"errors": [
"SyntaxError: Argument in a type import must be a string literal (1:16)",
"SyntaxError: Argument in a type import must be a string literal (2:16)",
"SyntaxError: Argument in a type import must be a string literal (3:16)"
],
"program": {
"type": "Program",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":19}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "TSTypeAliasDeclaration",
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
"id": {
"type": "Identifier",
"start":5,"end":6,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":6},"identifierName":"X"},
"name": "X"
},
"typeAnnotation": {
"type": "TSImportType",
"start":9,"end":18,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":18}},
"argument": {
"type": "NumericLiteral",
"start":16,"end":17,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
}
}
},
{
"type": "TSTypeAliasDeclaration",
"start":20,"end":43,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":23}},
"id": {
"type": "Identifier",
"start":25,"end":26,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"Y"},
"name": "Y"
},
"typeAnnotation": {
"type": "TSImportType",
"start":29,"end":42,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":22}},
"argument": {
"type": "TemplateLiteral",
"start":36,"end":41,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":21}},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"start":37,"end":40,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":20}},
"value": {
"raw": "Foo",
"cooked": "Foo"
},
"tail": true
}
]
}
}
},
{
"type": "TSTypeAliasDeclaration",
"start":44,"end":63,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":19}},
"id": {
"type": "Identifier",
"start":49,"end":50,"loc":{"start":{"line":3,"column":5},"end":{"line":3,"column":6},"identifierName":"Z"},
"name": "Z"
},
"typeAnnotation": {
"type": "TSImportType",
"start":53,"end":62,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":18}},
"argument": {
"type": "Identifier",
"start":60,"end":61,"loc":{"start":{"line":3,"column":16},"end":{"line":3,"column":17},"identifierName":"Y"},
"name": "Y"
}
}
}
],
"directives": []
}
}