Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring/destructured-array-catch.result.js

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