Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/try/with-catch-param/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "TryStatement",
12 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
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":34,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":34,"index":34}},
22 "param": {
23 "type": "Placeholder",
24 "start":14,"end":23,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":23,"index":23}},
25 "name": {
26 "type": "Identifier",
27 "start":16,"end":21,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":21,"index":21},"identifierName":"PARAM"},
28 "name": "PARAM"
29 },
30 "expectedNode": "Pattern"
31 },
32 "body": {
33 "type": "Placeholder",
34 "start":25,"end":34,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":34,"index":34}},
35 "name": {
36 "type": "Identifier",
37 "start":27,"end":32,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":32,"index":32},"identifierName":"CATCH"},
38 "name": "CATCH"
39 },
40 "expectedNode": "BlockStatement"
41 }
42 },
43 "finalizer": null
44 }
45 ],
46 "directives": []
47 }
48 }