/
output.json
177 lines (177 loc) 路 7.43 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"type": "File",
"start":0,"end":186,"loc":{"start":{"line":1,"column":0},"end":{"line":13,"column":1}},
"program": {
"type": "Program",
"start":0,"end":186,"loc":{"start":{"line":1,"column":0},"end":{"line":13,"column":1}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExportNamedDeclaration",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"exportKind": "type",
"specifiers": [],
"source": null,
"declaration": {
"type": "TSEnumDeclaration",
"start":7,"end":54,"loc":{"start":{"line":1,"column":7},"end":{"line":4,"column":1}},
"const": true,
"id": {
"type": "Identifier",
"start":26,"end":29,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":29},"identifierName":"Foo"},
"name": "Foo"
},
"members": [
{
"type": "TSEnumMember",
"start":36,"end":43,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":11}},
"id": {
"type": "Identifier",
"start":36,"end":39,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":7},"identifierName":"foo"},
"name": "foo"
},
"initializer": {
"type": "Literal",
"start":42,"end":43,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11}},
"value": 1,
"raw": "1"
}
},
{
"type": "TSEnumMember",
"start":49,"end":52,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":7}},
"id": {
"type": "Identifier",
"start":49,"end":52,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":7},"identifierName":"bar"},
"name": "bar"
}
}
],
"declare": true
}
},
{
"type": "ClassDeclaration",
"start":56,"end":186,"loc":{"start":{"line":6,"column":0},"end":{"line":13,"column":1}},
"id": {
"type": "Identifier",
"start":62,"end":72,"loc":{"start":{"line":6,"column":6},"end":{"line":6,"column":16},"identifierName":"AssertsFoo"},
"name": "AssertsFoo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":73,"end":186,"loc":{"start":{"line":6,"column":17},"end":{"line":13,"column":1}},
"body": [
{
"type": "MethodDefinition",
"start":77,"end":126,"loc":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},
"static": false,
"key": {
"type": "Identifier",
"start":77,"end":82,"loc":{"start":{"line":7,"column":2},"end":{"line":7,"column":7},"identifierName":"isBar"},
"name": "isBar"
},
"computed": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start":82,"end":126,"loc":{"start":{"line":7,"column":7},"end":{"line":9,"column":3}},
"id": null,
"generator": false,
"async": false,
"expression": false,
"params": [],
"returnType": {
"type": "TSTypeAnnotation",
"start":84,"end":108,"loc":{"start":{"line":7,"column":9},"end":{"line":7,"column":33}},
"typeAnnotation": {
"type": "TSTypePredicate",
"start":86,"end":108,"loc":{"start":{"line":7,"column":11},"end":{"line":7,"column":33}},
"parameterName": {
"type": "TSThisType",
"start":94,"end":98,"loc":{"start":{"line":7,"column":19},"end":{"line":7,"column":23}}
},
"typeAnnotation": {
"type": "TSTypeAnnotation",
"start":102,"end":108,"loc":{"start":{"line":7,"column":27},"end":{"line":7,"column":33}},
"typeAnnotation": {
"type": "TSStringKeyword",
"start":102,"end":108,"loc":{"start":{"line":7,"column":27},"end":{"line":7,"column":33}}
}
},
"asserts": true
}
},
"body": {
"type": "BlockStatement",
"start":109,"end":126,"loc":{"start":{"line":7,"column":34},"end":{"line":9,"column":3}},
"body": [
{
"type": "ReturnStatement",
"start":115,"end":122,"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":11}},
"argument": null
}
]
}
}
},
{
"type": "ClassProperty",
"start":129,"end":184,"loc":{"start":{"line":10,"column":2},"end":{"line":12,"column":3}},
"static": false,
"key": {
"type": "Identifier",
"start":129,"end":134,"loc":{"start":{"line":10,"column":2},"end":{"line":10,"column":7},"identifierName":"isBaz"},
"name": "isBaz"
},
"computed": false,
"value": {
"type": "ArrowFunctionExpression",
"start":137,"end":184,"loc":{"start":{"line":10,"column":10},"end":{"line":12,"column":3}},
"returnType": {
"type": "TSTypeAnnotation",
"start":139,"end":163,"loc":{"start":{"line":10,"column":12},"end":{"line":10,"column":36}},
"typeAnnotation": {
"type": "TSTypePredicate",
"start":141,"end":163,"loc":{"start":{"line":10,"column":14},"end":{"line":10,"column":36}},
"parameterName": {
"type": "TSThisType",
"start":149,"end":153,"loc":{"start":{"line":10,"column":22},"end":{"line":10,"column":26}}
},
"typeAnnotation": {
"type": "TSTypeAnnotation",
"start":157,"end":163,"loc":{"start":{"line":10,"column":30},"end":{"line":10,"column":36}},
"typeAnnotation": {
"type": "TSStringKeyword",
"start":157,"end":163,"loc":{"start":{"line":10,"column":30},"end":{"line":10,"column":36}}
}
},
"asserts": true
}
},
"id": null,
"generator": false,
"async": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":167,"end":184,"loc":{"start":{"line":10,"column":40},"end":{"line":12,"column":3}},
"body": [
{
"type": "ReturnStatement",
"start":173,"end":180,"loc":{"start":{"line":11,"column":4},"end":{"line":11,"column":11}},
"argument": null
}
]
}
}
}
]
}
}
]
}
}