Debian Codegraph @

tests/fixtures/ecma-version/6/classes/class-two-methods-computed-constructor.result.js

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