Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":64}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":64}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "TryStatement",
12 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":64}},
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":64,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":7,"column":1,"index":64}},
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":64,"loc":{"start":{"line":2,"column":14,"index":20},"end":{"line":7,"column":1,"index":64}},
30 "body": [
31 {
32 "type": "TryStatement",
33 "start":24,"end":62,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":6,"column":3,"index":62}},
34 "block": {
35 "type": "BlockStatement",
36 "start":28,"end":33,"loc":{"start":{"line":3,"column":6,"index":28},"end":{"line":4,"column":3,"index":33}},
37 "body": [],
38 "directives": []
39 },
40 "handler": {
41 "type": "CatchClause",
42 "start":34,"end":62,"loc":{"start":{"line":4,"column":4,"index":34},"end":{"line":6,"column":3,"index":62}},
43 "param": {
44 "type": "Identifier",
45 "start":41,"end":42,"loc":{"start":{"line":4,"column":11,"index":41},"end":{"line":4,"column":12,"index":42},"identifierName":"_"},
46 "name": "_"
47 },
48 "body": {
49 "type": "BlockStatement",
50 "start":44,"end":62,"loc":{"start":{"line":4,"column":14,"index":44},"end":{"line":6,"column":3,"index":62}},
51 "body": [
52 {
53 "type": "VariableDeclaration",
54 "start":50,"end":58,"loc":{"start":{"line":5,"column":4,"index":50},"end":{"line":5,"column":12,"index":58}},
55 "declarations": [
56 {
57 "type": "VariableDeclarator",
58 "start":54,"end":57,"loc":{"start":{"line":5,"column":8,"index":54},"end":{"line":5,"column":11,"index":57}},
59 "id": {
60 "type": "Identifier",
61 "start":54,"end":57,"loc":{"start":{"line":5,"column":8,"index":54},"end":{"line":5,"column":11,"index":57},"identifierName":"foo"},
62 "name": "foo"
63 },
64 "init": null
65 }
66 ],
67 "kind": "var"
68 }
69 ],
70 "directives": []
71 }
72 },
73 "finalizer": null
74 }
75 ],
76 "directives": []
77 }
78 },
79 "finalizer": null
80 }
81 ],
82 "directives": []
83 }
84 }