Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/edge-cases/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":381,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":50,"column":1,"index":381}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":381,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":50,"column":1,"index":381}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":34}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":8,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":8,"index":8},"identifierName":"A1"},
16 "name": "A1"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":9,"end":34,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":5,"column":1,"index":34}},
22 "body": [
23 {
24 "type": "ClassProperty",
25 "start":13,"end":23,"loc":{"start":{"line":2,"column":2,"index":13},"end":{"line":3,"column":3,"index":23}},
26 "static": true,
27 "key": {
28 "type": "Identifier",
29 "start":22,"end":23,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":3,"column":3,"index":23},"identifierName":"a"},
30 "name": "a"
31 },
32 "computed": false,
33 "value": null
34 },
35 {
36 "type": "ClassProperty",
37 "start":26,"end":32,"loc":{"start":{"line":4,"column":2,"index":26},"end":{"line":4,"column":8,"index":32}},
38 "computed": false,
39 "key": {
40 "type": "Identifier",
41 "start":26,"end":32,"loc":{"start":{"line":4,"column":2,"index":26},"end":{"line":4,"column":8,"index":32},"identifierName":"static"},
42 "name": "static"
43 },
44 "static": false,
45 "value": null
46 }
47 ]
48 }
49 },
50 {
51 "type": "ClassDeclaration",
52 "start":36,"end":50,"loc":{"start":{"line":7,"column":0,"index":36},"end":{"line":7,"column":14,"index":50}},
53 "id": {
54 "type": "Identifier",
55 "start":42,"end":44,"loc":{"start":{"line":7,"column":6,"index":42},"end":{"line":7,"column":8,"index":44},"identifierName":"A2"},
56 "name": "A2"
57 },
58 "superClass": null,
59 "body": {
60 "type": "ClassBody",
61 "start":45,"end":50,"loc":{"start":{"line":7,"column":9,"index":45},"end":{"line":7,"column":14,"index":50}},
62 "body": [
63 {
64 "type": "ClassProperty",
65 "start":47,"end":48,"loc":{"start":{"line":7,"column":11,"index":47},"end":{"line":7,"column":12,"index":48}},
66 "static": false,
67 "key": {
68 "type": "Identifier",
69 "start":47,"end":48,"loc":{"start":{"line":7,"column":11,"index":47},"end":{"line":7,"column":12,"index":48},"identifierName":"a"},
70 "name": "a"
71 },
72 "computed": false,
73 "value": null
74 }
75 ]
76 }
77 },
78 {
79 "type": "ClassDeclaration",
80 "start":51,"end":67,"loc":{"start":{"line":8,"column":0,"index":51},"end":{"line":8,"column":16,"index":67}},
81 "id": {
82 "type": "Identifier",
83 "start":57,"end":59,"loc":{"start":{"line":8,"column":6,"index":57},"end":{"line":8,"column":8,"index":59},"identifierName":"A3"},
84 "name": "A3"
85 },
86 "superClass": null,
87 "body": {
88 "type": "ClassBody",
89 "start":60,"end":67,"loc":{"start":{"line":8,"column":9,"index":60},"end":{"line":8,"column":16,"index":67}},
90 "body": [
91 {
92 "type": "ClassProperty",
93 "start":62,"end":65,"loc":{"start":{"line":8,"column":11,"index":62},"end":{"line":8,"column":14,"index":65}},
94 "static": false,
95 "key": {
96 "type": "Identifier",
97 "start":62,"end":65,"loc":{"start":{"line":8,"column":11,"index":62},"end":{"line":8,"column":14,"index":65},"identifierName":"get"},
98 "name": "get"
99 },
100 "computed": false,
101 "value": null
102 }
103 ]
104 }
105 },
106 {
107 "type": "ClassDeclaration",
108 "start":68,"end":84,"loc":{"start":{"line":9,"column":0,"index":68},"end":{"line":9,"column":16,"index":84}},
109 "id": {
110 "type": "Identifier",
111 "start":74,"end":76,"loc":{"start":{"line":9,"column":6,"index":74},"end":{"line":9,"column":8,"index":76},"identifierName":"A4"},
112 "name": "A4"
113 },
114 "superClass": null,
115 "body": {
116 "type": "ClassBody",
117 "start":77,"end":84,"loc":{"start":{"line":9,"column":9,"index":77},"end":{"line":9,"column":16,"index":84}},
118 "body": [
119 {
120 "type": "ClassProperty",
121 "start":79,"end":82,"loc":{"start":{"line":9,"column":11,"index":79},"end":{"line":9,"column":14,"index":82}},
122 "static": false,
123 "key": {
124 "type": "Identifier",
125 "start":79,"end":82,"loc":{"start":{"line":9,"column":11,"index":79},"end":{"line":9,"column":14,"index":82},"identifierName":"set"},
126 "name": "set"
127 },
128 "computed": false,
129 "value": null
130 }
131 ]
132 }
133 },
134 {
135 "type": "ClassDeclaration",
136 "start":85,"end":104,"loc":{"start":{"line":10,"column":0,"index":85},"end":{"line":10,"column":19,"index":104}},
137 "id": {
138 "type": "Identifier",
139 "start":91,"end":93,"loc":{"start":{"line":10,"column":6,"index":91},"end":{"line":10,"column":8,"index":93},"identifierName":"A5"},
140 "name": "A5"
141 },
142 "superClass": null,
143 "body": {
144 "type": "ClassBody",
145 "start":94,"end":104,"loc":{"start":{"line":10,"column":9,"index":94},"end":{"line":10,"column":19,"index":104}},
146 "body": [
147 {
148 "type": "ClassProperty",
149 "start":96,"end":102,"loc":{"start":{"line":10,"column":11,"index":96},"end":{"line":10,"column":17,"index":102}},
150 "computed": false,
151 "key": {
152 "type": "Identifier",
153 "start":96,"end":102,"loc":{"start":{"line":10,"column":11,"index":96},"end":{"line":10,"column":17,"index":102},"identifierName":"static"},
154 "name": "static"
155 },
156 "static": false,
157 "value": null
158 }
159 ]
160 }
161 },
162 {
163 "type": "ClassDeclaration",
164 "start":105,"end":123,"loc":{"start":{"line":11,"column":0,"index":105},"end":{"line":11,"column":18,"index":123}},
165 "id": {
166 "type": "Identifier",
167 "start":111,"end":113,"loc":{"start":{"line":11,"column":6,"index":111},"end":{"line":11,"column":8,"index":113},"identifierName":"A6"},
168 "name": "A6"
169 },
170 "superClass": null,
171 "body": {
172 "type": "ClassBody",
173 "start":114,"end":123,"loc":{"start":{"line":11,"column":9,"index":114},"end":{"line":11,"column":18,"index":123}},
174 "body": [
175 {
176 "type": "ClassProperty",
177 "start":116,"end":121,"loc":{"start":{"line":11,"column":11,"index":116},"end":{"line":11,"column":16,"index":121}},
178 "static": false,
179 "key": {
180 "type": "Identifier",
181 "start":116,"end":121,"loc":{"start":{"line":11,"column":11,"index":116},"end":{"line":11,"column":16,"index":121},"identifierName":"async"},
182 "name": "async"
183 },
184 "computed": false,
185 "value": null
186 }
187 ]
188 }
189 },
190 {
191 "type": "ClassDeclaration",
192 "start":125,"end":152,"loc":{"start":{"line":13,"column":0,"index":125},"end":{"line":16,"column":1,"index":152}},
193 "id": {
194 "type": "Identifier",
195 "start":131,"end":133,"loc":{"start":{"line":13,"column":6,"index":131},"end":{"line":13,"column":8,"index":133},"identifierName":"A7"},
196 "name": "A7"
197 },
198 "superClass": null,
199 "body": {
200 "type": "ClassBody",
201 "start":134,"end":152,"loc":{"start":{"line":13,"column":9,"index":134},"end":{"line":16,"column":1,"index":152}},
202 "body": [
203 {
204 "type": "ClassProperty",
205 "start":138,"end":141,"loc":{"start":{"line":14,"column":2,"index":138},"end":{"line":14,"column":5,"index":141}},
206 "static": false,
207 "key": {
208 "type": "Identifier",
209 "start":138,"end":141,"loc":{"start":{"line":14,"column":2,"index":138},"end":{"line":14,"column":5,"index":141},"identifierName":"get"},
210 "name": "get"
211 },
212 "computed": false,
213 "value": null
214 },
215 {
216 "type": "ClassMethod",
217 "start":144,"end":150,"loc":{"start":{"line":15,"column":2,"index":144},"end":{"line":15,"column":8,"index":150}},
218 "static": false,
219 "kind": "method",
220 "key": {
221 "type": "Identifier",
222 "start":145,"end":146,"loc":{"start":{"line":15,"column":3,"index":145},"end":{"line":15,"column":4,"index":146},"identifierName":"a"},
223 "name": "a"
224 },
225 "computed": false,
226 "id": null,
227 "generator": true,
228 "async": false,
229 "params": [],
230 "body": {
231 "type": "BlockStatement",
232 "start":148,"end":150,"loc":{"start":{"line":15,"column":6,"index":148},"end":{"line":15,"column":8,"index":150}},
233 "body": [],
234 "directives": []
235 }
236 }
237 ]
238 }
239 },
240 {
241 "type": "ClassDeclaration",
242 "start":154,"end":184,"loc":{"start":{"line":18,"column":0,"index":154},"end":{"line":21,"column":1,"index":184}},
243 "id": {
244 "type": "Identifier",
245 "start":160,"end":162,"loc":{"start":{"line":18,"column":6,"index":160},"end":{"line":18,"column":8,"index":162},"identifierName":"A8"},
246 "name": "A8"
247 },
248 "superClass": null,
249 "body": {
250 "type": "ClassBody",
251 "start":163,"end":184,"loc":{"start":{"line":18,"column":9,"index":163},"end":{"line":21,"column":1,"index":184}},
252 "body": [
253 {
254 "type": "ClassMethod",
255 "start":167,"end":182,"loc":{"start":{"line":19,"column":2,"index":167},"end":{"line":20,"column":8,"index":182}},
256 "static": true,
257 "kind": "method",
258 "key": {
259 "type": "Identifier",
260 "start":177,"end":178,"loc":{"start":{"line":20,"column":3,"index":177},"end":{"line":20,"column":4,"index":178},"identifierName":"a"},
261 "name": "a"
262 },
263 "computed": false,
264 "id": null,
265 "generator": true,
266 "async": false,
267 "params": [],
268 "body": {
269 "type": "BlockStatement",
270 "start":180,"end":182,"loc":{"start":{"line":20,"column":6,"index":180},"end":{"line":20,"column":8,"index":182}},
271 "body": [],
272 "directives": []
273 }
274 }
275 ]
276 }
277 },
278 {
279 "type": "ClassDeclaration",
280 "start":186,"end":214,"loc":{"start":{"line":23,"column":0,"index":186},"end":{"line":26,"column":1,"index":214}},
281 "id": {
282 "type": "Identifier",
283 "start":192,"end":194,"loc":{"start":{"line":23,"column":6,"index":192},"end":{"line":23,"column":8,"index":194},"identifierName":"A9"},
284 "name": "A9"
285 },
286 "superClass": null,
287 "body": {
288 "type": "ClassBody",
289 "start":195,"end":214,"loc":{"start":{"line":23,"column":9,"index":195},"end":{"line":26,"column":1,"index":214}},
290 "body": [
291 {
292 "type": "ClassProperty",
293 "start":199,"end":204,"loc":{"start":{"line":24,"column":2,"index":199},"end":{"line":24,"column":7,"index":204}},
294 "static": false,
295 "key": {
296 "type": "Identifier",
297 "start":199,"end":204,"loc":{"start":{"line":24,"column":2,"index":199},"end":{"line":24,"column":7,"index":204},"identifierName":"async"},
298 "name": "async"
299 },
300 "computed": false,
301 "value": null
302 },
303 {
304 "type": "ClassMethod",
305 "start":207,"end":212,"loc":{"start":{"line":25,"column":2,"index":207},"end":{"line":25,"column":7,"index":212}},
306 "static": false,
307 "key": {
308 "type": "Identifier",
309 "start":207,"end":208,"loc":{"start":{"line":25,"column":2,"index":207},"end":{"line":25,"column":3,"index":208},"identifierName":"a"},
310 "name": "a"
311 },
312 "computed": false,
313 "kind": "method",
314 "id": null,
315 "generator": false,
316 "async": false,
317 "params": [],
318 "body": {
319 "type": "BlockStatement",
320 "start":210,"end":212,"loc":{"start":{"line":25,"column":5,"index":210},"end":{"line":25,"column":7,"index":212}},
321 "body": [],
322 "directives": []
323 }
324 }
325 ]
326 }
327 },
328 {
329 "type": "ClassDeclaration",
330 "start":216,"end":250,"loc":{"start":{"line":28,"column":0,"index":216},"end":{"line":32,"column":1,"index":250}},
331 "id": {
332 "type": "Identifier",
333 "start":222,"end":225,"loc":{"start":{"line":28,"column":6,"index":222},"end":{"line":28,"column":9,"index":225},"identifierName":"A10"},
334 "name": "A10"
335 },
336 "superClass": null,
337 "body": {
338 "type": "ClassBody",
339 "start":226,"end":250,"loc":{"start":{"line":28,"column":10,"index":226},"end":{"line":32,"column":1,"index":250}},
340 "body": [
341 {
342 "type": "ClassProperty",
343 "start":230,"end":244,"loc":{"start":{"line":29,"column":2,"index":230},"end":{"line":30,"column":7,"index":244}},
344 "static": true,
345 "key": {
346 "type": "Identifier",
347 "start":239,"end":244,"loc":{"start":{"line":30,"column":2,"index":239},"end":{"line":30,"column":7,"index":244},"identifierName":"async"},
348 "name": "async"
349 },
350 "computed": false,
351 "value": null
352 },
353 {
354 "type": "ClassProperty",
355 "start":247,"end":248,"loc":{"start":{"line":31,"column":2,"index":247},"end":{"line":31,"column":3,"index":248}},
356 "static": false,
357 "key": {
358 "type": "Identifier",
359 "start":247,"end":248,"loc":{"start":{"line":31,"column":2,"index":247},"end":{"line":31,"column":3,"index":248},"identifierName":"a"},
360 "name": "a"
361 },
362 "computed": false,
363 "value": null
364 }
365 ]
366 }
367 },
368 {
369 "type": "ClassDeclaration",
370 "start":252,"end":273,"loc":{"start":{"line":34,"column":0,"index":252},"end":{"line":34,"column":21,"index":273}},
371 "id": {
372 "type": "Identifier",
373 "start":258,"end":261,"loc":{"start":{"line":34,"column":6,"index":258},"end":{"line":34,"column":9,"index":261},"identifierName":"A11"},
374 "name": "A11"
375 },
376 "superClass": null,
377 "body": {
378 "type": "ClassBody",
379 "start":262,"end":273,"loc":{"start":{"line":34,"column":10,"index":262},"end":{"line":34,"column":21,"index":273}},
380 "body": [
381 {
382 "type": "ClassProperty",
383 "start":264,"end":271,"loc":{"start":{"line":34,"column":12,"index":264},"end":{"line":34,"column":19,"index":271}},
384 "computed": false,
385 "key": {
386 "type": "Identifier",
387 "start":264,"end":270,"loc":{"start":{"line":34,"column":12,"index":264},"end":{"line":34,"column":18,"index":270},"identifierName":"static"},
388 "name": "static"
389 },
390 "static": false,
391 "value": null
392 }
393 ]
394 }
395 },
396 {
397 "type": "ClassDeclaration",
398 "start":275,"end":302,"loc":{"start":{"line":36,"column":0,"index":275},"end":{"line":38,"column":1,"index":302}},
399 "id": {
400 "type": "Identifier",
401 "start":281,"end":284,"loc":{"start":{"line":36,"column":6,"index":281},"end":{"line":36,"column":9,"index":284},"identifierName":"A12"},
402 "name": "A12"
403 },
404 "superClass": null,
405 "body": {
406 "type": "ClassBody",
407 "start":285,"end":302,"loc":{"start":{"line":36,"column":10,"index":285},"end":{"line":38,"column":1,"index":302}},
408 "body": [
409 {
410 "type": "ClassProperty",
411 "start":289,"end":300,"loc":{"start":{"line":37,"column":2,"index":289},"end":{"line":37,"column":13,"index":300}},
412 "computed": false,
413 "key": {
414 "type": "Identifier",
415 "start":289,"end":295,"loc":{"start":{"line":37,"column":2,"index":289},"end":{"line":37,"column":8,"index":295},"identifierName":"static"},
416 "name": "static"
417 },
418 "static": false,
419 "value": {
420 "type": "NumericLiteral",
421 "start":298,"end":299,"loc":{"start":{"line":37,"column":11,"index":298},"end":{"line":37,"column":12,"index":299}},
422 "extra": {
423 "rawValue": 0,
424 "raw": "0"
425 },
426 "value": 0
427 }
428 }
429 ]
430 }
431 },
432 {
433 "type": "ClassDeclaration",
434 "start":304,"end":335,"loc":{"start":{"line":40,"column":0,"index":304},"end":{"line":43,"column":1,"index":335}},
435 "id": {
436 "type": "Identifier",
437 "start":310,"end":313,"loc":{"start":{"line":40,"column":6,"index":310},"end":{"line":40,"column":9,"index":313},"identifierName":"A13"},
438 "name": "A13"
439 },
440 "superClass": null,
441 "body": {
442 "type": "ClassBody",
443 "start":314,"end":335,"loc":{"start":{"line":40,"column":10,"index":314},"end":{"line":43,"column":1,"index":335}},
444 "body": [
445 {
446 "type": "ClassMethod",
447 "start":318,"end":333,"loc":{"start":{"line":41,"column":2,"index":318},"end":{"line":42,"column":11,"index":333}},
448 "static": false,
449 "key": {
450 "type": "StringLiteral",
451 "start":325,"end":328,"loc":{"start":{"line":42,"column":3,"index":325},"end":{"line":42,"column":6,"index":328}},
452 "extra": {
453 "rawValue": "a",
454 "raw": "'a'"
455 },
456 "value": "a"
457 },
458 "computed": true,
459 "kind": "get",
460 "id": null,
461 "generator": false,
462 "async": false,
463 "params": [],
464 "body": {
465 "type": "BlockStatement",
466 "start":331,"end":333,"loc":{"start":{"line":42,"column":9,"index":331},"end":{"line":42,"column":11,"index":333}},
467 "body": [],
468 "directives": []
469 }
470 }
471 ]
472 }
473 },
474 {
475 "type": "ClassDeclaration",
476 "start":337,"end":381,"loc":{"start":{"line":45,"column":0,"index":337},"end":{"line":50,"column":1,"index":381}},
477 "id": {
478 "type": "Identifier",
479 "start":343,"end":346,"loc":{"start":{"line":45,"column":6,"index":343},"end":{"line":45,"column":9,"index":346},"identifierName":"A14"},
480 "name": "A14"
481 },
482 "superClass": null,
483 "body": {
484 "type": "ClassBody",
485 "start":347,"end":381,"loc":{"start":{"line":45,"column":10,"index":347},"end":{"line":50,"column":1,"index":381}},
486 "body": [
487 {
488 "type": "ClassMethod",
489 "start":351,"end":379,"loc":{"start":{"line":46,"column":2,"index":351},"end":{"line":49,"column":6,"index":379}},
490 "static": true,
491 "key": {
492 "type": "Identifier",
493 "start":366,"end":372,"loc":{"start":{"line":48,"column":2,"index":366},"end":{"line":48,"column":8,"index":372},"identifierName":"static"},
494 "name": "static"
495 },
496 "computed": false,
497 "kind": "get",
498 "id": null,
499 "generator": false,
500 "async": false,
501 "params": [],
502 "body": {
503 "type": "BlockStatement",
504 "start":377,"end":379,"loc":{"start":{"line":49,"column":4,"index":377},"end":{"line":49,"column":6,"index":379}},
505 "body": [],
506 "directives": []
507 }
508 }
509 ]
510 }
511 }
512 ],
513 "directives": []
514 }
515 }