Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/new-target-with-flow/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":257,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":257}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":257,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":257}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":257,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":257}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"X"},
16 "name": "X"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":257,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":10,"column":1,"index":257}},
22 "body": [
23 {
24 "type": "ClassProperty",
25 "start":12,"end":34,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":24,"index":34}},
26 "static": true,
27 "variance": null,
28 "key": {
29 "type": "Identifier",
30 "start":19,"end":20,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":10,"index":20},"identifierName":"a"},
31 "name": "a"
32 },
33 "computed": false,
34 "value": {
35 "type": "MetaProperty",
36 "start":23,"end":33,"loc":{"start":{"line":2,"column":13,"index":23},"end":{"line":2,"column":23,"index":33}},
37 "meta": {
38 "type": "Identifier",
39 "start":23,"end":26,"loc":{"start":{"line":2,"column":13,"index":23},"end":{"line":2,"column":16,"index":26},"identifierName":"new"},
40 "name": "new"
41 },
42 "property": {
43 "type": "Identifier",
44 "start":27,"end":33,"loc":{"start":{"line":2,"column":17,"index":27},"end":{"line":2,"column":23,"index":33},"identifierName":"target"},
45 "name": "target"
46 }
47 }
48 },
49 {
50 "type": "ClassProperty",
51 "start":37,"end":76,"loc":{"start":{"line":3,"column":2,"index":37},"end":{"line":3,"column":41,"index":76}},
52 "static": true,
53 "variance": null,
54 "key": {
55 "type": "Identifier",
56 "start":44,"end":45,"loc":{"start":{"line":3,"column":9,"index":44},"end":{"line":3,"column":10,"index":45},"identifierName":"b"},
57 "name": "b"
58 },
59 "computed": false,
60 "value": {
61 "type": "AssignmentExpression",
62 "start":49,"end":74,"loc":{"start":{"line":3,"column":14,"index":49},"end":{"line":3,"column":39,"index":74}},
63 "operator": "=",
64 "left": {
65 "type": "Identifier",
66 "start":49,"end":52,"loc":{"start":{"line":3,"column":14,"index":49},"end":{"line":3,"column":17,"index":52},"identifierName":"foo"},
67 "name": "foo"
68 },
69 "right": {
70 "type": "BinaryExpression",
71 "start":55,"end":74,"loc":{"start":{"line":3,"column":20,"index":55},"end":{"line":3,"column":39,"index":74}},
72 "left": {
73 "type": "NumericLiteral",
74 "start":55,"end":56,"loc":{"start":{"line":3,"column":20,"index":55},"end":{"line":3,"column":21,"index":56}},
75 "extra": {
76 "rawValue": 1,
77 "raw": "1"
78 },
79 "value": 1
80 },
81 "operator": "+",
82 "right": {
83 "type": "CallExpression",
84 "start":59,"end":74,"loc":{"start":{"line":3,"column":24,"index":59},"end":{"line":3,"column":39,"index":74}},
85 "callee": {
86 "type": "Identifier",
87 "start":59,"end":62,"loc":{"start":{"line":3,"column":24,"index":59},"end":{"line":3,"column":27,"index":62},"identifierName":"bar"},
88 "name": "bar"
89 },
90 "arguments": [
91 {
92 "type": "MetaProperty",
93 "start":63,"end":73,"loc":{"start":{"line":3,"column":28,"index":63},"end":{"line":3,"column":38,"index":73}},
94 "meta": {
95 "type": "Identifier",
96 "start":63,"end":66,"loc":{"start":{"line":3,"column":28,"index":63},"end":{"line":3,"column":31,"index":66},"identifierName":"new"},
97 "name": "new"
98 },
99 "property": {
100 "type": "Identifier",
101 "start":67,"end":73,"loc":{"start":{"line":3,"column":32,"index":67},"end":{"line":3,"column":38,"index":73},"identifierName":"target"},
102 "name": "target"
103 }
104 }
105 ]
106 }
107 },
108 "extra": {
109 "parenthesized": true,
110 "parenStart": 48
111 }
112 }
113 },
114 {
115 "type": "ClassProperty",
116 "start":79,"end":107,"loc":{"start":{"line":4,"column":2,"index":79},"end":{"line":4,"column":30,"index":107}},
117 "static": true,
118 "variance": null,
119 "key": {
120 "type": "Identifier",
121 "start":86,"end":87,"loc":{"start":{"line":4,"column":9,"index":86},"end":{"line":4,"column":10,"index":87},"identifierName":"c"},
122 "name": "c"
123 },
124 "computed": false,
125 "value": {
126 "type": "ArrowFunctionExpression",
127 "start":90,"end":106,"loc":{"start":{"line":4,"column":13,"index":90},"end":{"line":4,"column":29,"index":106}},
128 "id": null,
129 "generator": false,
130 "async": false,
131 "params": [],
132 "body": {
133 "type": "MetaProperty",
134 "start":96,"end":106,"loc":{"start":{"line":4,"column":19,"index":96},"end":{"line":4,"column":29,"index":106}},
135 "meta": {
136 "type": "Identifier",
137 "start":96,"end":99,"loc":{"start":{"line":4,"column":19,"index":96},"end":{"line":4,"column":22,"index":99},"identifierName":"new"},
138 "name": "new"
139 },
140 "property": {
141 "type": "Identifier",
142 "start":100,"end":106,"loc":{"start":{"line":4,"column":23,"index":100},"end":{"line":4,"column":29,"index":106},"identifierName":"target"},
143 "name": "target"
144 }
145 }
146 }
147 },
148 {
149 "type": "ClassProperty",
150 "start":110,"end":146,"loc":{"start":{"line":5,"column":2,"index":110},"end":{"line":5,"column":38,"index":146}},
151 "static": true,
152 "variance": null,
153 "key": {
154 "type": "Identifier",
155 "start":117,"end":118,"loc":{"start":{"line":5,"column":9,"index":117},"end":{"line":5,"column":10,"index":118},"identifierName":"d"},
156 "name": "d"
157 },
158 "computed": false,
159 "value": {
160 "type": "ArrowFunctionExpression",
161 "start":121,"end":145,"loc":{"start":{"line":5,"column":13,"index":121},"end":{"line":5,"column":37,"index":145}},
162 "id": null,
163 "generator": false,
164 "async": false,
165 "params": [
166 {
167 "type": "AssignmentPattern",
168 "start":122,"end":138,"loc":{"start":{"line":5,"column":14,"index":122},"end":{"line":5,"column":30,"index":138}},
169 "left": {
170 "type": "Identifier",
171 "start":122,"end":125,"loc":{"start":{"line":5,"column":14,"index":122},"end":{"line":5,"column":17,"index":125},"identifierName":"foo"},
172 "name": "foo"
173 },
174 "right": {
175 "type": "MetaProperty",
176 "start":128,"end":138,"loc":{"start":{"line":5,"column":20,"index":128},"end":{"line":5,"column":30,"index":138}},
177 "meta": {
178 "type": "Identifier",
179 "start":128,"end":131,"loc":{"start":{"line":5,"column":20,"index":128},"end":{"line":5,"column":23,"index":131},"identifierName":"new"},
180 "name": "new"
181 },
182 "property": {
183 "type": "Identifier",
184 "start":132,"end":138,"loc":{"start":{"line":5,"column":24,"index":132},"end":{"line":5,"column":30,"index":138},"identifierName":"target"},
185 "name": "target"
186 }
187 }
188 }
189 ],
190 "body": {
191 "type": "BlockStatement",
192 "start":143,"end":145,"loc":{"start":{"line":5,"column":35,"index":143},"end":{"line":5,"column":37,"index":145}},
193 "body": [],
194 "directives": []
195 }
196 }
197 },
198 {
199 "type": "ClassProperty",
200 "start":149,"end":164,"loc":{"start":{"line":6,"column":2,"index":149},"end":{"line":6,"column":17,"index":164}},
201 "static": false,
202 "variance": null,
203 "key": {
204 "type": "Identifier",
205 "start":149,"end":150,"loc":{"start":{"line":6,"column":2,"index":149},"end":{"line":6,"column":3,"index":150},"identifierName":"e"},
206 "name": "e"
207 },
208 "computed": false,
209 "value": {
210 "type": "MetaProperty",
211 "start":153,"end":163,"loc":{"start":{"line":6,"column":6,"index":153},"end":{"line":6,"column":16,"index":163}},
212 "meta": {
213 "type": "Identifier",
214 "start":153,"end":156,"loc":{"start":{"line":6,"column":6,"index":153},"end":{"line":6,"column":9,"index":156},"identifierName":"new"},
215 "name": "new"
216 },
217 "property": {
218 "type": "Identifier",
219 "start":157,"end":163,"loc":{"start":{"line":6,"column":10,"index":157},"end":{"line":6,"column":16,"index":163},"identifierName":"target"},
220 "name": "target"
221 }
222 }
223 },
224 {
225 "type": "ClassProperty",
226 "start":167,"end":199,"loc":{"start":{"line":7,"column":2,"index":167},"end":{"line":7,"column":34,"index":199}},
227 "static": false,
228 "variance": null,
229 "key": {
230 "type": "Identifier",
231 "start":167,"end":168,"loc":{"start":{"line":7,"column":2,"index":167},"end":{"line":7,"column":3,"index":168},"identifierName":"f"},
232 "name": "f"
233 },
234 "computed": false,
235 "value": {
236 "type": "AssignmentExpression",
237 "start":172,"end":197,"loc":{"start":{"line":7,"column":7,"index":172},"end":{"line":7,"column":32,"index":197}},
238 "operator": "=",
239 "left": {
240 "type": "Identifier",
241 "start":172,"end":175,"loc":{"start":{"line":7,"column":7,"index":172},"end":{"line":7,"column":10,"index":175},"identifierName":"foo"},
242 "name": "foo"
243 },
244 "right": {
245 "type": "BinaryExpression",
246 "start":178,"end":197,"loc":{"start":{"line":7,"column":13,"index":178},"end":{"line":7,"column":32,"index":197}},
247 "left": {
248 "type": "NumericLiteral",
249 "start":178,"end":179,"loc":{"start":{"line":7,"column":13,"index":178},"end":{"line":7,"column":14,"index":179}},
250 "extra": {
251 "rawValue": 1,
252 "raw": "1"
253 },
254 "value": 1
255 },
256 "operator": "+",
257 "right": {
258 "type": "CallExpression",
259 "start":182,"end":197,"loc":{"start":{"line":7,"column":17,"index":182},"end":{"line":7,"column":32,"index":197}},
260 "callee": {
261 "type": "Identifier",
262 "start":182,"end":185,"loc":{"start":{"line":7,"column":17,"index":182},"end":{"line":7,"column":20,"index":185},"identifierName":"bar"},
263 "name": "bar"
264 },
265 "arguments": [
266 {
267 "type": "MetaProperty",
268 "start":186,"end":196,"loc":{"start":{"line":7,"column":21,"index":186},"end":{"line":7,"column":31,"index":196}},
269 "meta": {
270 "type": "Identifier",
271 "start":186,"end":189,"loc":{"start":{"line":7,"column":21,"index":186},"end":{"line":7,"column":24,"index":189},"identifierName":"new"},
272 "name": "new"
273 },
274 "property": {
275 "type": "Identifier",
276 "start":190,"end":196,"loc":{"start":{"line":7,"column":25,"index":190},"end":{"line":7,"column":31,"index":196},"identifierName":"target"},
277 "name": "target"
278 }
279 }
280 ]
281 }
282 },
283 "extra": {
284 "parenthesized": true,
285 "parenStart": 171
286 }
287 }
288 },
289 {
290 "type": "ClassProperty",
291 "start":202,"end":223,"loc":{"start":{"line":8,"column":2,"index":202},"end":{"line":8,"column":23,"index":223}},
292 "static": false,
293 "variance": null,
294 "key": {
295 "type": "Identifier",
296 "start":202,"end":203,"loc":{"start":{"line":8,"column":2,"index":202},"end":{"line":8,"column":3,"index":203},"identifierName":"g"},
297 "name": "g"
298 },
299 "computed": false,
300 "value": {
301 "type": "ArrowFunctionExpression",
302 "start":206,"end":222,"loc":{"start":{"line":8,"column":6,"index":206},"end":{"line":8,"column":22,"index":222}},
303 "id": null,
304 "generator": false,
305 "async": false,
306 "params": [],
307 "body": {
308 "type": "MetaProperty",
309 "start":212,"end":222,"loc":{"start":{"line":8,"column":12,"index":212},"end":{"line":8,"column":22,"index":222}},
310 "meta": {
311 "type": "Identifier",
312 "start":212,"end":215,"loc":{"start":{"line":8,"column":12,"index":212},"end":{"line":8,"column":15,"index":215},"identifierName":"new"},
313 "name": "new"
314 },
315 "property": {
316 "type": "Identifier",
317 "start":216,"end":222,"loc":{"start":{"line":8,"column":16,"index":216},"end":{"line":8,"column":22,"index":222},"identifierName":"target"},
318 "name": "target"
319 }
320 }
321 }
322 },
323 {
324 "type": "ClassProperty",
325 "start":226,"end":255,"loc":{"start":{"line":9,"column":2,"index":226},"end":{"line":9,"column":31,"index":255}},
326 "static": false,
327 "variance": null,
328 "key": {
329 "type": "Identifier",
330 "start":226,"end":227,"loc":{"start":{"line":9,"column":2,"index":226},"end":{"line":9,"column":3,"index":227},"identifierName":"h"},
331 "name": "h"
332 },
333 "computed": false,
334 "value": {
335 "type": "ArrowFunctionExpression",
336 "start":230,"end":254,"loc":{"start":{"line":9,"column":6,"index":230},"end":{"line":9,"column":30,"index":254}},
337 "id": null,
338 "generator": false,
339 "async": false,
340 "params": [
341 {
342 "type": "AssignmentPattern",
343 "start":231,"end":247,"loc":{"start":{"line":9,"column":7,"index":231},"end":{"line":9,"column":23,"index":247}},
344 "left": {
345 "type": "Identifier",
346 "start":231,"end":234,"loc":{"start":{"line":9,"column":7,"index":231},"end":{"line":9,"column":10,"index":234},"identifierName":"foo"},
347 "name": "foo"
348 },
349 "right": {
350 "type": "MetaProperty",
351 "start":237,"end":247,"loc":{"start":{"line":9,"column":13,"index":237},"end":{"line":9,"column":23,"index":247}},
352 "meta": {
353 "type": "Identifier",
354 "start":237,"end":240,"loc":{"start":{"line":9,"column":13,"index":237},"end":{"line":9,"column":16,"index":240},"identifierName":"new"},
355 "name": "new"
356 },
357 "property": {
358 "type": "Identifier",
359 "start":241,"end":247,"loc":{"start":{"line":9,"column":17,"index":241},"end":{"line":9,"column":23,"index":247},"identifierName":"target"},
360 "name": "target"
361 }
362 }
363 }
364 ],
365 "body": {
366 "type": "BlockStatement",
367 "start":252,"end":254,"loc":{"start":{"line":9,"column":28,"index":252},"end":{"line":9,"column":30,"index":254}},
368 "body": [],
369 "directives": []
370 }
371 }
372 }
373 ]
374 }
375 }
376 ],
377 "directives": []
378 }
379 }