Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/patterned-catch/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "TryStatement",
12 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
13 "block": {
14 "type": "BlockStatement",
15 "start":4,"end":6,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":6,"index":6}},
16 "body": [],
17 "directives": []
18 },
19 "handler": {
20 "type": "CatchClause",
21 "start":7,"end":49,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":49,"index":49}},
22 "param": {
23 "type": "ArrayPattern",
24 "start":14,"end":45,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":45,"index":45}},
25 "elements": [
26 {
27 "type": "Identifier",
28 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"a"},
29 "name": "a"
30 },
31 {
32 "type": "Identifier",
33 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"b"},
34 "name": "b"
35 },
36 {
37 "type": "ObjectPattern",
38 "start":20,"end":44,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":44,"index":44}},
39 "properties": [
40 {
41 "type": "ObjectProperty",
42 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22}},
43 "key": {
44 "type": "Identifier",
45 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22},"identifierName":"c"},
46 "name": "c"
47 },
48 "computed": false,
49 "method": false,
50 "shorthand": true,
51 "value": {
52 "type": "Identifier",
53 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22},"identifierName":"c"},
54 "name": "c"
55 },
56 "extra": {
57 "shorthand": true
58 }
59 },
60 {
61 "type": "ObjectProperty",
62 "start":24,"end":29,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":29,"index":29}},
63 "key": {
64 "type": "Identifier",
65 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"d"},
66 "name": "d"
67 },
68 "computed": false,
69 "method": false,
70 "shorthand": false,
71 "value": {
72 "type": "AssignmentPattern",
73 "start":26,"end":29,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":29,"index":29}},
74 "left": {
75 "type": "Identifier",
76 "start":26,"end":27,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":27,"index":27},"identifierName":"e"},
77 "name": "e"
78 },
79 "right": {
80 "type": "NumericLiteral",
81 "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29}},
82 "extra": {
83 "rawValue": 0,
84 "raw": "0"
85 },
86 "value": 0
87 }
88 }
89 },
90 {
91 "type": "ObjectProperty",
92 "start":31,"end":38,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":38,"index":38}},
93 "computed": true,
94 "key": {
95 "type": "Identifier",
96 "start":32,"end":33,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":33,"index":33},"identifierName":"f"},
97 "name": "f"
98 },
99 "method": false,
100 "shorthand": false,
101 "value": {
102 "type": "AssignmentPattern",
103 "start":35,"end":38,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":38,"index":38}},
104 "left": {
105 "type": "Identifier",
106 "start":35,"end":36,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":36,"index":36},"identifierName":"g"},
107 "name": "g"
108 },
109 "right": {
110 "type": "NumericLiteral",
111 "start":37,"end":38,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":38,"index":38}},
112 "extra": {
113 "rawValue": 0,
114 "raw": "0"
115 },
116 "value": 0
117 }
118 }
119 },
120 {
121 "type": "ObjectProperty",
122 "start":40,"end":43,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":43,"index":43}},
123 "key": {
124 "type": "Identifier",
125 "start":40,"end":41,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":41,"index":41},"identifierName":"h"},
126 "name": "h"
127 },
128 "computed": false,
129 "method": false,
130 "shorthand": true,
131 "value": {
132 "type": "AssignmentPattern",
133 "start":40,"end":43,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":43,"index":43}},
134 "left": {
135 "type": "Identifier",
136 "start":40,"end":41,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":41,"index":41},"identifierName":"h"},
137 "name": "h"
138 },
139 "right": {
140 "type": "Identifier",
141 "start":42,"end":43,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":43,"index":43},"identifierName":"i"},
142 "name": "i"
143 }
144 },
145 "extra": {
146 "shorthand": true
147 }
148 }
149 ]
150 }
151 ]
152 },
153 "body": {
154 "type": "BlockStatement",
155 "start":47,"end":49,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":49,"index":49}},
156 "body": [],
157 "directives": []
158 }
159 },
160 "finalizer": null
161 }
162 ],
163 "directives": []
164 }
165 }