/
output.json
379 lines (379 loc) 路 16.7 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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
{
"type": "File",
"start":0,"end":257,"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":1}},
"program": {
"type": "Program",
"start":0,"end":257,"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":257,"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":1}},
"id": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"X"},
"name": "X"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":8,"end":257,"loc":{"start":{"line":1,"column":8},"end":{"line":10,"column":1}},
"body": [
{
"type": "ClassProperty",
"start":12,"end":34,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":24}},
"static": true,
"key": {
"type": "Identifier",
"start":19,"end":20,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":10},"identifierName":"a"},
"name": "a"
},
"computed": false,
"variance": null,
"value": {
"type": "MetaProperty",
"start":23,"end":33,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":23}},
"meta": {
"type": "Identifier",
"start":23,"end":26,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":16},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":27,"end":33,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":23},"identifierName":"target"},
"name": "target"
}
}
},
{
"type": "ClassProperty",
"start":37,"end":76,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":41}},
"static": true,
"key": {
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":10},"identifierName":"b"},
"name": "b"
},
"computed": false,
"variance": null,
"value": {
"type": "AssignmentExpression",
"start":49,"end":74,"loc":{"start":{"line":3,"column":14},"end":{"line":3,"column":39}},
"operator": "=",
"left": {
"type": "Identifier",
"start":49,"end":52,"loc":{"start":{"line":3,"column":14},"end":{"line":3,"column":17},"identifierName":"foo"},
"name": "foo"
},
"right": {
"type": "BinaryExpression",
"start":55,"end":74,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":39}},
"left": {
"type": "NumericLiteral",
"start":55,"end":56,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":21}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"operator": "+",
"right": {
"type": "CallExpression",
"start":59,"end":74,"loc":{"start":{"line":3,"column":24},"end":{"line":3,"column":39}},
"callee": {
"type": "Identifier",
"start":59,"end":62,"loc":{"start":{"line":3,"column":24},"end":{"line":3,"column":27},"identifierName":"bar"},
"name": "bar"
},
"arguments": [
{
"type": "MetaProperty",
"start":63,"end":73,"loc":{"start":{"line":3,"column":28},"end":{"line":3,"column":38}},
"meta": {
"type": "Identifier",
"start":63,"end":66,"loc":{"start":{"line":3,"column":28},"end":{"line":3,"column":31},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":67,"end":73,"loc":{"start":{"line":3,"column":32},"end":{"line":3,"column":38},"identifierName":"target"},
"name": "target"
}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 48
}
}
},
{
"type": "ClassProperty",
"start":79,"end":107,"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":30}},
"static": true,
"key": {
"type": "Identifier",
"start":86,"end":87,"loc":{"start":{"line":4,"column":9},"end":{"line":4,"column":10},"identifierName":"c"},
"name": "c"
},
"computed": false,
"variance": null,
"value": {
"type": "ArrowFunctionExpression",
"start":90,"end":106,"loc":{"start":{"line":4,"column":13},"end":{"line":4,"column":29}},
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "MetaProperty",
"start":96,"end":106,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":29}},
"meta": {
"type": "Identifier",
"start":96,"end":99,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":22},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":100,"end":106,"loc":{"start":{"line":4,"column":23},"end":{"line":4,"column":29},"identifierName":"target"},
"name": "target"
}
}
}
},
{
"type": "ClassProperty",
"start":110,"end":146,"loc":{"start":{"line":5,"column":2},"end":{"line":5,"column":38}},
"static": true,
"key": {
"type": "Identifier",
"start":117,"end":118,"loc":{"start":{"line":5,"column":9},"end":{"line":5,"column":10},"identifierName":"d"},
"name": "d"
},
"computed": false,
"variance": null,
"value": {
"type": "ArrowFunctionExpression",
"start":121,"end":145,"loc":{"start":{"line":5,"column":13},"end":{"line":5,"column":37}},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start":122,"end":138,"loc":{"start":{"line":5,"column":14},"end":{"line":5,"column":30}},
"left": {
"type": "Identifier",
"start":122,"end":125,"loc":{"start":{"line":5,"column":14},"end":{"line":5,"column":17},"identifierName":"foo"},
"name": "foo"
},
"right": {
"type": "MetaProperty",
"start":128,"end":138,"loc":{"start":{"line":5,"column":20},"end":{"line":5,"column":30}},
"meta": {
"type": "Identifier",
"start":128,"end":131,"loc":{"start":{"line":5,"column":20},"end":{"line":5,"column":23},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":132,"end":138,"loc":{"start":{"line":5,"column":24},"end":{"line":5,"column":30},"identifierName":"target"},
"name": "target"
}
}
}
],
"body": {
"type": "BlockStatement",
"start":143,"end":145,"loc":{"start":{"line":5,"column":35},"end":{"line":5,"column":37}},
"body": [],
"directives": []
}
}
},
{
"type": "ClassProperty",
"start":149,"end":164,"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":17}},
"static": false,
"key": {
"type": "Identifier",
"start":149,"end":150,"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":3},"identifierName":"e"},
"name": "e"
},
"computed": false,
"variance": null,
"value": {
"type": "MetaProperty",
"start":153,"end":163,"loc":{"start":{"line":6,"column":6},"end":{"line":6,"column":16}},
"meta": {
"type": "Identifier",
"start":153,"end":156,"loc":{"start":{"line":6,"column":6},"end":{"line":6,"column":9},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":157,"end":163,"loc":{"start":{"line":6,"column":10},"end":{"line":6,"column":16},"identifierName":"target"},
"name": "target"
}
}
},
{
"type": "ClassProperty",
"start":167,"end":199,"loc":{"start":{"line":7,"column":2},"end":{"line":7,"column":34}},
"static": false,
"key": {
"type": "Identifier",
"start":167,"end":168,"loc":{"start":{"line":7,"column":2},"end":{"line":7,"column":3},"identifierName":"f"},
"name": "f"
},
"computed": false,
"variance": null,
"value": {
"type": "AssignmentExpression",
"start":172,"end":197,"loc":{"start":{"line":7,"column":7},"end":{"line":7,"column":32}},
"operator": "=",
"left": {
"type": "Identifier",
"start":172,"end":175,"loc":{"start":{"line":7,"column":7},"end":{"line":7,"column":10},"identifierName":"foo"},
"name": "foo"
},
"right": {
"type": "BinaryExpression",
"start":178,"end":197,"loc":{"start":{"line":7,"column":13},"end":{"line":7,"column":32}},
"left": {
"type": "NumericLiteral",
"start":178,"end":179,"loc":{"start":{"line":7,"column":13},"end":{"line":7,"column":14}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"operator": "+",
"right": {
"type": "CallExpression",
"start":182,"end":197,"loc":{"start":{"line":7,"column":17},"end":{"line":7,"column":32}},
"callee": {
"type": "Identifier",
"start":182,"end":185,"loc":{"start":{"line":7,"column":17},"end":{"line":7,"column":20},"identifierName":"bar"},
"name": "bar"
},
"arguments": [
{
"type": "MetaProperty",
"start":186,"end":196,"loc":{"start":{"line":7,"column":21},"end":{"line":7,"column":31}},
"meta": {
"type": "Identifier",
"start":186,"end":189,"loc":{"start":{"line":7,"column":21},"end":{"line":7,"column":24},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":190,"end":196,"loc":{"start":{"line":7,"column":25},"end":{"line":7,"column":31},"identifierName":"target"},
"name": "target"
}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 171
}
}
},
{
"type": "ClassProperty",
"start":202,"end":223,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":23}},
"static": false,
"key": {
"type": "Identifier",
"start":202,"end":203,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":3},"identifierName":"g"},
"name": "g"
},
"computed": false,
"variance": null,
"value": {
"type": "ArrowFunctionExpression",
"start":206,"end":222,"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":22}},
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "MetaProperty",
"start":212,"end":222,"loc":{"start":{"line":8,"column":12},"end":{"line":8,"column":22}},
"meta": {
"type": "Identifier",
"start":212,"end":215,"loc":{"start":{"line":8,"column":12},"end":{"line":8,"column":15},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":216,"end":222,"loc":{"start":{"line":8,"column":16},"end":{"line":8,"column":22},"identifierName":"target"},
"name": "target"
}
}
}
},
{
"type": "ClassProperty",
"start":226,"end":255,"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":31}},
"static": false,
"key": {
"type": "Identifier",
"start":226,"end":227,"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":3},"identifierName":"h"},
"name": "h"
},
"computed": false,
"variance": null,
"value": {
"type": "ArrowFunctionExpression",
"start":230,"end":254,"loc":{"start":{"line":9,"column":6},"end":{"line":9,"column":30}},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start":231,"end":247,"loc":{"start":{"line":9,"column":7},"end":{"line":9,"column":23}},
"left": {
"type": "Identifier",
"start":231,"end":234,"loc":{"start":{"line":9,"column":7},"end":{"line":9,"column":10},"identifierName":"foo"},
"name": "foo"
},
"right": {
"type": "MetaProperty",
"start":237,"end":247,"loc":{"start":{"line":9,"column":13},"end":{"line":9,"column":23}},
"meta": {
"type": "Identifier",
"start":237,"end":240,"loc":{"start":{"line":9,"column":13},"end":{"line":9,"column":16},"identifierName":"new"},
"name": "new"
},
"property": {
"type": "Identifier",
"start":241,"end":247,"loc":{"start":{"line":9,"column":17},"end":{"line":9,"column":23},"identifierName":"target"},
"name": "target"
}
}
}
],
"body": {
"type": "BlockStatement",
"start":252,"end":254,"loc":{"start":{"line":9,"column":28},"end":{"line":9,"column":30}},
"body": [],
"directives": []
}
}
}
]
}
}
],
"directives": []
}
}