Debian Codegraph @

tests/fixtures/ecma-version/6/classes/class-static-methods-and-accessor-properties.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": 59
11 }
12 },
13 "range": [
14 0,
15 59
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": 58
28 }
29 },
30 "range": [
31 0,
32 58
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": 58
63 }
64 },
65 "range": [
66 8,
67 58
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": 21
80 }
81 },
82 "range": [
83 9,
84 21
85 ],
86 "computed": false,
87 "key": {
88 "type": "Identifier",
89 "loc": {
90 "start": {
91 "line": 1,
92 "column": 16
93 },
94 "end": {
95 "line": 1,
96 "column": 17
97 }
98 },
99 "range": [
100 16,
101 17
102 ],
103 "name": "a"
104 },
105 "static": true,
106 "kind": "method",
107 "value": {
108 "type": "FunctionExpression",
109 "loc": {
110 "start": {
111 "line": 1,
112 "column": 17
113 },
114 "end": {
115 "line": 1,
116 "column": 21
117 }
118 },
119 "range": [
120 17,
121 21
122 ],
123 "id": null,
124 "generator": false,
125 "expression": false,
126 "params": [],
127 "body": {
128 "type": "BlockStatement",
129 "loc": {
130 "start": {
131 "line": 1,
132 "column": 19
133 },
134 "end": {
135 "line": 1,
136 "column": 21
137 }
138 },
139 "range": [
140 19,
141 21
142 ],
143 "body": []
144 }
145 }
146 },
147 {
148 "type": "MethodDefinition",
149 "loc": {
150 "start": {
151 "line": 1,
152 "column": 22
153 },
154 "end": {
155 "line": 1,
156 "column": 38
157 }
158 },
159 "range": [
160 22,
161 38
162 ],
163 "computed": false,
164 "key": {
165 "type": "Identifier",
166 "loc": {
167 "start": {
168 "line": 1,
169 "column": 33
170 },
171 "end": {
172 "line": 1,
173 "column": 34
174 }
175 },
176 "range": [
177 33,
178 34
179 ],
180 "name": "a"
181 },
182 "static": true,
183 "kind": "get",
184 "value": {
185 "type": "FunctionExpression",
186 "loc": {
187 "start": {
188 "line": 1,
189 "column": 34
190 },
191 "end": {
192 "line": 1,
193 "column": 38
194 }
195 },
196 "range": [
197 34,
198 38
199 ],
200 "id": null,
201 "generator": false,
202 "expression": false,
203 "params": [],
204 "body": {
205 "type": "BlockStatement",
206 "loc": {
207 "start": {
208 "line": 1,
209 "column": 36
210 },
211 "end": {
212 "line": 1,
213 "column": 38
214 }
215 },
216 "range": [
217 36,
218 38
219 ],
220 "body": []
221 }
222 }
223 },
224 {
225 "type": "MethodDefinition",
226 "loc": {
227 "start": {
228 "line": 1,
229 "column": 39
230 },
231 "end": {
232 "line": 1,
233 "column": 56
234 }
235 },
236 "range": [
237 39,
238 56
239 ],
240 "computed": false,
241 "key": {
242 "type": "Identifier",
243 "loc": {
244 "start": {
245 "line": 1,
246 "column": 50
247 },
248 "end": {
249 "line": 1,
250 "column": 51
251 }
252 },
253 "range": [
254 50,
255 51
256 ],
257 "name": "a"
258 },
259 "static": true,
260 "kind": "set",
261 "value": {
262 "type": "FunctionExpression",
263 "loc": {
264 "start": {
265 "line": 1,
266 "column": 51
267 },
268 "end": {
269 "line": 1,
270 "column": 56
271 }
272 },
273 "range": [
274 51,
275 56
276 ],
277 "id": null,
278 "generator": false,
279 "expression": false,
280 "params": [
281 {
282 "type": "Identifier",
283 "loc": {
284 "start": {
285 "line": 1,
286 "column": 52
287 },
288 "end": {
289 "line": 1,
290 "column": 53
291 }
292 },
293 "range": [
294 52,
295 53
296 ],
297 "name": "b"
298 }
299 ],
300 "body": {
301 "type": "BlockStatement",
302 "loc": {
303 "start": {
304 "line": 1,
305 "column": 54
306 },
307 "end": {
308 "line": 1,
309 "column": 56
310 }
311 },
312 "range": [
313 54,
314 56
315 ],
316 "body": []
317 }
318 }
319 }
320 ]
321 }
322 },
323 {
324 "type": "EmptyStatement",
325 "loc": {
326 "start": {
327 "line": 1,
328 "column": 58
329 },
330 "end": {
331 "line": 1,
332 "column": 59
333 }
334 },
335 "range": [
336 58,
337 59
338 ]
339 }
340 ],
341 "sourceType": "script",
342 "tokens": [
343 {
344 "type": "Keyword",
345 "value": "class",
346 "loc": {
347 "start": {
348 "line": 1,
349 "column": 0
350 },
351 "end": {
352 "line": 1,
353 "column": 5
354 }
355 },
356 "range": [
357 0,
358 5
359 ]
360 },
361 {
362 "type": "Identifier",
363 "value": "A",
364 "loc": {
365 "start": {
366 "line": 1,
367 "column": 6
368 },
369 "end": {
370 "line": 1,
371 "column": 7
372 }
373 },
374 "range": [
375 6,
376 7
377 ]
378 },
379 {
380 "type": "Punctuator",
381 "value": "{",
382 "loc": {
383 "start": {
384 "line": 1,
385 "column": 8
386 },
387 "end": {
388 "line": 1,
389 "column": 9
390 }
391 },
392 "range": [
393 8,
394 9
395 ]
396 },
397 {
398 "type": "Keyword",
399 "value": "static",
400 "loc": {
401 "start": {
402 "line": 1,
403 "column": 9
404 },
405 "end": {
406 "line": 1,
407 "column": 15
408 }
409 },
410 "range": [
411 9,
412 15
413 ]
414 },
415 {
416 "type": "Identifier",
417 "value": "a",
418 "loc": {
419 "start": {
420 "line": 1,
421 "column": 16
422 },
423 "end": {
424 "line": 1,
425 "column": 17
426 }
427 },
428 "range": [
429 16,
430 17
431 ]
432 },
433 {
434 "type": "Punctuator",
435 "value": "(",
436 "loc": {
437 "start": {
438 "line": 1,
439 "column": 17
440 },
441 "end": {
442 "line": 1,
443 "column": 18
444 }
445 },
446 "range": [
447 17,
448 18
449 ]
450 },
451 {
452 "type": "Punctuator",
453 "value": ")",
454 "loc": {
455 "start": {
456 "line": 1,
457 "column": 18
458 },
459 "end": {
460 "line": 1,
461 "column": 19
462 }
463 },
464 "range": [
465 18,
466 19
467 ]
468 },
469 {
470 "type": "Punctuator",
471 "value": "{",
472 "loc": {
473 "start": {
474 "line": 1,
475 "column": 19
476 },
477 "end": {
478 "line": 1,
479 "column": 20
480 }
481 },
482 "range": [
483 19,
484 20
485 ]
486 },
487 {
488 "type": "Punctuator",
489 "value": "}",
490 "loc": {
491 "start": {
492 "line": 1,
493 "column": 20
494 },
495 "end": {
496 "line": 1,
497 "column": 21
498 }
499 },
500 "range": [
501 20,
502 21
503 ]
504 },
505 {
506 "type": "Keyword",
507 "value": "static",
508 "loc": {
509 "start": {
510 "line": 1,
511 "column": 22
512 },
513 "end": {
514 "line": 1,
515 "column": 28
516 }
517 },
518 "range": [
519 22,
520 28
521 ]
522 },
523 {
524 "type": "Identifier",
525 "value": "get",
526 "loc": {
527 "start": {
528 "line": 1,
529 "column": 29
530 },
531 "end": {
532 "line": 1,
533 "column": 32
534 }
535 },
536 "range": [
537 29,
538 32
539 ]
540 },
541 {
542 "type": "Identifier",
543 "value": "a",
544 "loc": {
545 "start": {
546 "line": 1,
547 "column": 33
548 },
549 "end": {
550 "line": 1,
551 "column": 34
552 }
553 },
554 "range": [
555 33,
556 34
557 ]
558 },
559 {
560 "type": "Punctuator",
561 "value": "(",
562 "loc": {
563 "start": {
564 "line": 1,
565 "column": 34
566 },
567 "end": {
568 "line": 1,
569 "column": 35
570 }
571 },
572 "range": [
573 34,
574 35
575 ]
576 },
577 {
578 "type": "Punctuator",
579 "value": ")",
580 "loc": {
581 "start": {
582 "line": 1,
583 "column": 35
584 },
585 "end": {
586 "line": 1,
587 "column": 36
588 }
589 },
590 "range": [
591 35,
592 36
593 ]
594 },
595 {
596 "type": "Punctuator",
597 "value": "{",
598 "loc": {
599 "start": {
600 "line": 1,
601 "column": 36
602 },
603 "end": {
604 "line": 1,
605 "column": 37
606 }
607 },
608 "range": [
609 36,
610 37
611 ]
612 },
613 {
614 "type": "Punctuator",
615 "value": "}",
616 "loc": {
617 "start": {
618 "line": 1,
619 "column": 37
620 },
621 "end": {
622 "line": 1,
623 "column": 38
624 }
625 },
626 "range": [
627 37,
628 38
629 ]
630 },
631 {
632 "type": "Keyword",
633 "value": "static",
634 "loc": {
635 "start": {
636 "line": 1,
637 "column": 39
638 },
639 "end": {
640 "line": 1,
641 "column": 45
642 }
643 },
644 "range": [
645 39,
646 45
647 ]
648 },
649 {
650 "type": "Identifier",
651 "value": "set",
652 "loc": {
653 "start": {
654 "line": 1,
655 "column": 46
656 },
657 "end": {
658 "line": 1,
659 "column": 49
660 }
661 },
662 "range": [
663 46,
664 49
665 ]
666 },
667 {
668 "type": "Identifier",
669 "value": "a",
670 "loc": {
671 "start": {
672 "line": 1,
673 "column": 50
674 },
675 "end": {
676 "line": 1,
677 "column": 51
678 }
679 },
680 "range": [
681 50,
682 51
683 ]
684 },
685 {
686 "type": "Punctuator",
687 "value": "(",
688 "loc": {
689 "start": {
690 "line": 1,
691 "column": 51
692 },
693 "end": {
694 "line": 1,
695 "column": 52
696 }
697 },
698 "range": [
699 51,
700 52
701 ]
702 },
703 {
704 "type": "Identifier",
705 "value": "b",
706 "loc": {
707 "start": {
708 "line": 1,
709 "column": 52
710 },
711 "end": {
712 "line": 1,
713 "column": 53
714 }
715 },
716 "range": [
717 52,
718 53
719 ]
720 },
721 {
722 "type": "Punctuator",
723 "value": ")",
724 "loc": {
725 "start": {
726 "line": 1,
727 "column": 53
728 },
729 "end": {
730 "line": 1,
731 "column": 54
732 }
733 },
734 "range": [
735 53,
736 54
737 ]
738 },
739 {
740 "type": "Punctuator",
741 "value": "{",
742 "loc": {
743 "start": {
744 "line": 1,
745 "column": 54
746 },
747 "end": {
748 "line": 1,
749 "column": 55
750 }
751 },
752 "range": [
753 54,
754 55
755 ]
756 },
757 {
758 "type": "Punctuator",
759 "value": "}",
760 "loc": {
761 "start": {
762 "line": 1,
763 "column": 55
764 },
765 "end": {
766 "line": 1,
767 "column": 56
768 }
769 },
770 "range": [
771 55,
772 56
773 ]
774 },
775 {
776 "type": "Punctuator",
777 "value": "}",
778 "loc": {
779 "start": {
780 "line": 1,
781 "column": 57
782 },
783 "end": {
784 "line": 1,
785 "column": 58
786 }
787 },
788 "range": [
789 57,
790 58
791 ]
792 },
793 {
794 "type": "Punctuator",
795 "value": ";",
796 "loc": {
797 "start": {
798 "line": 1,
799 "column": 58
800 },
801 "end": {
802 "line": 1,
803 "column": 59
804 }
805 },
806 "range": [
807 58,
808 59
809 ]
810 }
811 ]
812 };