Debian Codegraph @

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