/
output.json
323 lines (323 loc) 路 16.2 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
{
"type": "File",
"start":0,"end":219,"loc":{"start":{"line":1,"column":0},"end":{"line":14,"column":1}},
"program": {
"type": "Program",
"start":0,"end":219,"loc":{"start":{"line":1,"column":0},"end":{"line":14,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":219,"loc":{"start":{"line":1,"column":0},"end":{"line":14,"column":1}},
"id": {
"type": "Identifier",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":9},"identifierName":"Foo"},
"name": "Foo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":10,"end":219,"loc":{"start":{"line":1,"column":10},"end":{"line":14,"column":1}},
"body": [
{
"type": "ClassPrivateProperty",
"start":14,"end":28,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":16}},
"static": true,
"key": {
"type": "PrivateName",
"start":21,"end":23,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":11}},
"id": {
"type": "Identifier",
"start":22,"end":23,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"x"},
"name": "x"
}
},
"value": {
"type": "NumericLiteral",
"start":26,"end":27,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":15}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
{
"type": "ClassPrivateProperty",
"start":31,"end":57,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":28}},
"static": true,
"key": {
"type": "PrivateName",
"start":38,"end":40,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":11}},
"id": {
"type": "Identifier",
"start":39,"end":40,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":11},"identifierName":"m"},
"name": "m"
}
},
"value": {
"type": "FunctionExpression",
"start":43,"end":56,"loc":{"start":{"line":3,"column":14},"end":{"line":3,"column":27}},
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":54,"end":56,"loc":{"start":{"line":3,"column":25},"end":{"line":3,"column":27}},
"body": [],
"directives": []
}
}
},
{
"type": "ClassMethod",
"start":61,"end":217,"loc":{"start":{"line":5,"column":2},"end":{"line":13,"column":3}},
"static": true,
"key": {
"type": "Identifier",
"start":68,"end":72,"loc":{"start":{"line":5,"column":9},"end":{"line":5,"column":13},"identifierName":"test"},
"name": "test"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":75,"end":217,"loc":{"start":{"line":5,"column":16},"end":{"line":13,"column":3}},
"body": [
{
"type": "VariableDeclaration",
"start":81,"end":104,"loc":{"start":{"line":6,"column":4},"end":{"line":6,"column":27}},
"declarations": [
{
"type": "VariableDeclarator",
"start":87,"end":103,"loc":{"start":{"line":6,"column":10},"end":{"line":6,"column":26}},
"id": {
"type": "Identifier",
"start":87,"end":88,"loc":{"start":{"line":6,"column":10},"end":{"line":6,"column":11},"identifierName":"o"},
"name": "o"
},
"init": {
"type": "ObjectExpression",
"start":91,"end":103,"loc":{"start":{"line":6,"column":14},"end":{"line":6,"column":26}},
"properties": [
{
"type": "ObjectProperty",
"start":93,"end":101,"loc":{"start":{"line":6,"column":16},"end":{"line":6,"column":24}},
"method": false,
"key": {
"type": "Identifier",
"start":93,"end":96,"loc":{"start":{"line":6,"column":16},"end":{"line":6,"column":19},"identifierName":"Foo"},
"name": "Foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":98,"end":101,"loc":{"start":{"line":6,"column":21},"end":{"line":6,"column":24},"identifierName":"Foo"},
"name": "Foo"
}
}
]
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start":109,"end":213,"loc":{"start":{"line":7,"column":4},"end":{"line":12,"column":6}},
"argument": {
"type": "ArrayExpression",
"start":116,"end":212,"loc":{"start":{"line":7,"column":11},"end":{"line":12,"column":5}},
"extra": {
"trailingComma": 205
},
"elements": [
{
"type": "OptionalMemberExpression",
"start":124,"end":133,"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":15}},
"object": {
"type": "OptionalMemberExpression",
"start":124,"end":130,"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":12}},
"object": {
"type": "Identifier",
"start":124,"end":125,"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":7},"identifierName":"o"},
"name": "o"
},
"property": {
"type": "Identifier",
"start":127,"end":130,"loc":{"start":{"line":8,"column":9},"end":{"line":8,"column":12},"identifierName":"Foo"},
"name": "Foo"
},
"computed": false,
"optional": true
},
"property": {
"type": "PrivateName",
"start":131,"end":133,"loc":{"start":{"line":8,"column":13},"end":{"line":8,"column":15}},
"id": {
"type": "Identifier",
"start":132,"end":133,"loc":{"start":{"line":8,"column":14},"end":{"line":8,"column":15},"identifierName":"x"},
"name": "x"
}
},
"computed": false,
"optional": false
},
{
"type": "OptionalMemberExpression",
"start":141,"end":158,"loc":{"start":{"line":9,"column":6},"end":{"line":9,"column":23}},
"object": {
"type": "OptionalMemberExpression",
"start":141,"end":150,"loc":{"start":{"line":9,"column":6},"end":{"line":9,"column":15}},
"object": {
"type": "OptionalMemberExpression",
"start":141,"end":147,"loc":{"start":{"line":9,"column":6},"end":{"line":9,"column":12}},
"object": {
"type": "Identifier",
"start":141,"end":142,"loc":{"start":{"line":9,"column":6},"end":{"line":9,"column":7},"identifierName":"o"},
"name": "o"
},
"property": {
"type": "Identifier",
"start":144,"end":147,"loc":{"start":{"line":9,"column":9},"end":{"line":9,"column":12},"identifierName":"Foo"},
"name": "Foo"
},
"computed": false,
"optional": true
},
"property": {
"type": "PrivateName",
"start":148,"end":150,"loc":{"start":{"line":9,"column":13},"end":{"line":9,"column":15}},
"id": {
"type": "Identifier",
"start":149,"end":150,"loc":{"start":{"line":9,"column":14},"end":{"line":9,"column":15},"identifierName":"x"},
"name": "x"
}
},
"computed": false,
"optional": false
},
"property": {
"type": "Identifier",
"start":151,"end":158,"loc":{"start":{"line":9,"column":16},"end":{"line":9,"column":23},"identifierName":"toFixed"},
"name": "toFixed"
},
"computed": false,
"optional": false
},
{
"type": "OptionalCallExpression",
"start":166,"end":186,"loc":{"start":{"line":10,"column":6},"end":{"line":10,"column":26}},
"callee": {
"type": "OptionalMemberExpression",
"start":166,"end":183,"loc":{"start":{"line":10,"column":6},"end":{"line":10,"column":23}},
"object": {
"type": "OptionalMemberExpression",
"start":166,"end":175,"loc":{"start":{"line":10,"column":6},"end":{"line":10,"column":15}},
"object": {
"type": "OptionalMemberExpression",
"start":166,"end":172,"loc":{"start":{"line":10,"column":6},"end":{"line":10,"column":12}},
"object": {
"type": "Identifier",
"start":166,"end":167,"loc":{"start":{"line":10,"column":6},"end":{"line":10,"column":7},"identifierName":"o"},
"name": "o"
},
"property": {
"type": "Identifier",
"start":169,"end":172,"loc":{"start":{"line":10,"column":9},"end":{"line":10,"column":12},"identifierName":"Foo"},
"name": "Foo"
},
"computed": false,
"optional": true
},
"property": {
"type": "PrivateName",
"start":173,"end":175,"loc":{"start":{"line":10,"column":13},"end":{"line":10,"column":15}},
"id": {
"type": "Identifier",
"start":174,"end":175,"loc":{"start":{"line":10,"column":14},"end":{"line":10,"column":15},"identifierName":"x"},
"name": "x"
}
},
"computed": false,
"optional": false
},
"property": {
"type": "Identifier",
"start":176,"end":183,"loc":{"start":{"line":10,"column":16},"end":{"line":10,"column":23},"identifierName":"toFixed"},
"name": "toFixed"
},
"computed": false,
"optional": false
},
"optional": false,
"arguments": [
{
"type": "NumericLiteral",
"start":184,"end":185,"loc":{"start":{"line":10,"column":24},"end":{"line":10,"column":25}},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
]
},
{
"type": "OptionalCallExpression",
"start":194,"end":205,"loc":{"start":{"line":11,"column":6},"end":{"line":11,"column":17}},
"callee": {
"type": "OptionalMemberExpression",
"start":194,"end":203,"loc":{"start":{"line":11,"column":6},"end":{"line":11,"column":15}},
"object": {
"type": "OptionalMemberExpression",
"start":194,"end":200,"loc":{"start":{"line":11,"column":6},"end":{"line":11,"column":12}},
"object": {
"type": "Identifier",
"start":194,"end":195,"loc":{"start":{"line":11,"column":6},"end":{"line":11,"column":7},"identifierName":"o"},
"name": "o"
},
"property": {
"type": "Identifier",
"start":197,"end":200,"loc":{"start":{"line":11,"column":9},"end":{"line":11,"column":12},"identifierName":"Foo"},
"name": "Foo"
},
"computed": false,
"optional": true
},
"property": {
"type": "PrivateName",
"start":201,"end":203,"loc":{"start":{"line":11,"column":13},"end":{"line":11,"column":15}},
"id": {
"type": "Identifier",
"start":202,"end":203,"loc":{"start":{"line":11,"column":14},"end":{"line":11,"column":15},"identifierName":"m"},
"name": "m"
}
},
"computed": false,
"optional": false
},
"optional": false,
"arguments": []
}
]
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}