Debian Codegraph @

tests/fixtures/ecma-version/10/optional-catch-binding/valid-02.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 5,
10 "column": 1
11 }
12 },
13 "range": [
14 0,
15 37
16 ],
17 "body": [
18 {
19 "type": "TryStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 5,
27 "column": 1
28 }
29 },
30 "range": [
31 0,
32 37
33 ],
34 "block": {
35 "type": "BlockStatement",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 4
40 },
41 "end": {
42 "line": 3,
43 "column": 1
44 }
45 },
46 "range": [
47 4,
48 17
49 ],
50 "body": [
51 {
52 "type": "ExpressionStatement",
53 "loc": {
54 "start": {
55 "line": 2,
56 "column": 4
57 },
58 "end": {
59 "line": 2,
60 "column": 9
61 }
62 },
63 "range": [
64 10,
65 15
66 ],
67 "expression": {
68 "type": "CallExpression",
69 "loc": {
70 "start": {
71 "line": 2,
72 "column": 4
73 },
74 "end": {
75 "line": 2,
76 "column": 9
77 }
78 },
79 "range": [
80 10,
81 15
82 ],
83 "callee": {
84 "type": "Identifier",
85 "loc": {
86 "start": {
87 "line": 2,
88 "column": 4
89 },
90 "end": {
91 "line": 2,
92 "column": 7
93 }
94 },
95 "range": [
96 10,
97 13
98 ],
99 "name": "foo"
100 },
101 "arguments": []
102 }
103 }
104 ]
105 },
106 "handler": {
107 "type": "CatchClause",
108 "loc": {
109 "start": {
110 "line": 3,
111 "column": 2
112 },
113 "end": {
114 "line": 5,
115 "column": 1
116 }
117 },
118 "range": [
119 18,
120 37
121 ],
122 "param": null,
123 "body": {
124 "type": "BlockStatement",
125 "loc": {
126 "start": {
127 "line": 3,
128 "column": 8
129 },
130 "end": {
131 "line": 5,
132 "column": 1
133 }
134 },
135 "range": [
136 24,
137 37
138 ],
139 "body": [
140 {
141 "type": "ExpressionStatement",
142 "loc": {
143 "start": {
144 "line": 4,
145 "column": 4
146 },
147 "end": {
148 "line": 4,
149 "column": 9
150 }
151 },
152 "range": [
153 30,
154 35
155 ],
156 "expression": {
157 "type": "CallExpression",
158 "loc": {
159 "start": {
160 "line": 4,
161 "column": 4
162 },
163 "end": {
164 "line": 4,
165 "column": 9
166 }
167 },
168 "range": [
169 30,
170 35
171 ],
172 "callee": {
173 "type": "Identifier",
174 "loc": {
175 "start": {
176 "line": 4,
177 "column": 4
178 },
179 "end": {
180 "line": 4,
181 "column": 7
182 }
183 },
184 "range": [
185 30,
186 33
187 ],
188 "name": "bar"
189 },
190 "arguments": []
191 }
192 }
193 ]
194 }
195 },
196 "finalizer": null
197 }
198 ],
199 "sourceType": "script",
200 "tokens": [
201 {
202 "type": "Keyword",
203 "value": "try",
204 "loc": {
205 "start": {
206 "line": 1,
207 "column": 0
208 },
209 "end": {
210 "line": 1,
211 "column": 3
212 }
213 },
214 "range": [
215 0,
216 3
217 ]
218 },
219 {
220 "type": "Punctuator",
221 "value": "{",
222 "loc": {
223 "start": {
224 "line": 1,
225 "column": 4
226 },
227 "end": {
228 "line": 1,
229 "column": 5
230 }
231 },
232 "range": [
233 4,
234 5
235 ]
236 },
237 {
238 "type": "Identifier",
239 "value": "foo",
240 "loc": {
241 "start": {
242 "line": 2,
243 "column": 4
244 },
245 "end": {
246 "line": 2,
247 "column": 7
248 }
249 },
250 "range": [
251 10,
252 13
253 ]
254 },
255 {
256 "type": "Punctuator",
257 "value": "(",
258 "loc": {
259 "start": {
260 "line": 2,
261 "column": 7
262 },
263 "end": {
264 "line": 2,
265 "column": 8
266 }
267 },
268 "range": [
269 13,
270 14
271 ]
272 },
273 {
274 "type": "Punctuator",
275 "value": ")",
276 "loc": {
277 "start": {
278 "line": 2,
279 "column": 8
280 },
281 "end": {
282 "line": 2,
283 "column": 9
284 }
285 },
286 "range": [
287 14,
288 15
289 ]
290 },
291 {
292 "type": "Punctuator",
293 "value": "}",
294 "loc": {
295 "start": {
296 "line": 3,
297 "column": 0
298 },
299 "end": {
300 "line": 3,
301 "column": 1
302 }
303 },
304 "range": [
305 16,
306 17
307 ]
308 },
309 {
310 "type": "Keyword",
311 "value": "catch",
312 "loc": {
313 "start": {
314 "line": 3,
315 "column": 2
316 },
317 "end": {
318 "line": 3,
319 "column": 7
320 }
321 },
322 "range": [
323 18,
324 23
325 ]
326 },
327 {
328 "type": "Punctuator",
329 "value": "{",
330 "loc": {
331 "start": {
332 "line": 3,
333 "column": 8
334 },
335 "end": {
336 "line": 3,
337 "column": 9
338 }
339 },
340 "range": [
341 24,
342 25
343 ]
344 },
345 {
346 "type": "Identifier",
347 "value": "bar",
348 "loc": {
349 "start": {
350 "line": 4,
351 "column": 4
352 },
353 "end": {
354 "line": 4,
355 "column": 7
356 }
357 },
358 "range": [
359 30,
360 33
361 ]
362 },
363 {
364 "type": "Punctuator",
365 "value": "(",
366 "loc": {
367 "start": {
368 "line": 4,
369 "column": 7
370 },
371 "end": {
372 "line": 4,
373 "column": 8
374 }
375 },
376 "range": [
377 33,
378 34
379 ]
380 },
381 {
382 "type": "Punctuator",
383 "value": ")",
384 "loc": {
385 "start": {
386 "line": 4,
387 "column": 8
388 },
389 "end": {
390 "line": 4,
391 "column": 9
392 }
393 },
394 "range": [
395 34,
396 35
397 ]
398 },
399 {
400 "type": "Punctuator",
401 "value": "}",
402 "loc": {
403 "start": {
404 "line": 5,
405 "column": 0
406 },
407 "end": {
408 "line": 5,
409 "column": 1
410 }
411 },
412 "range": [
413 36,
414 37
415 ]
416 }
417 ]
418 };