Debian Codegraph @

packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"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":4,"column":1,"index":34}},
13 "block": {
14 "type": "BlockStatement",
15 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":2,"column":1,"index":7}},
16 "body": [],
17 "directives": []
18 },
19 "handler": {
20 "type": "CatchClause",
21 "start":8,"end":34,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":4,"column":1,"index":34}},
22 "param": {
23 "type": "Identifier",
24 "start":15,"end":18,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":12,"index":18},"identifierName":"foo"},
25 "name": "foo"
26 },
27 "body": {
28 "type": "BlockStatement",
29 "start":20,"end":34,"loc":{"start":{"line":2,"column":14,"index":20},"end":{"line":4,"column":1,"index":34}},
30 "body": [
31 {
32 "type": "VariableDeclaration",
33 "start":24,"end":32,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":10,"index":32}},
34 "declarations": [
35 {
36 "type": "VariableDeclarator",
37 "start":28,"end":31,"loc":{"start":{"line":3,"column":6,"index":28},"end":{"line":3,"column":9,"index":31}},
38 "id": {
39 "type": "Identifier",
40 "start":28,"end":31,"loc":{"start":{"line":3,"column":6,"index":28},"end":{"line":3,"column":9,"index":31},"identifierName":"foo"},
41 "name": "foo"
42 },
43 "init": null
44 }
45 ],
46 "kind": "var"
47 }
48 ],
49 "directives": []
50 }
51 },
52 "finalizer": null
53 }
54 ],
55 "directives": []
56 }
57 }