Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (3:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "TryStatement",
15 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
16 "block": {
17 "type": "BlockStatement",
18 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":2,"column":1,"index":7}},
19 "body": [],
20 "directives": []
21 },
22 "handler": {
23 "type": "CatchClause",
24 "start":8,"end":36,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":4,"column":1,"index":36}},
25 "param": {
26 "type": "ArrayPattern",
27 "start":15,"end":20,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":14,"index":20}},
28 "elements": [
29 {
30 "type": "Identifier",
31 "start":16,"end":19,"loc":{"start":{"line":2,"column":10,"index":16},"end":{"line":2,"column":13,"index":19},"identifierName":"foo"},
32 "name": "foo"
33 }
34 ]
35 },
36 "body": {
37 "type": "BlockStatement",
38 "start":22,"end":36,"loc":{"start":{"line":2,"column":16,"index":22},"end":{"line":4,"column":1,"index":36}},
39 "body": [
40 {
41 "type": "VariableDeclaration",
42 "start":26,"end":34,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":10,"index":34}},
43 "declarations": [
44 {
45 "type": "VariableDeclarator",
46 "start":30,"end":33,"loc":{"start":{"line":3,"column":6,"index":30},"end":{"line":3,"column":9,"index":33}},
47 "id": {
48 "type": "Identifier",
49 "start":30,"end":33,"loc":{"start":{"line":3,"column":6,"index":30},"end":{"line":3,"column":9,"index":33},"identifierName":"foo"},
50 "name": "foo"
51 },
52 "init": null
53 }
54 ],
55 "kind": "var"
56 }
57 ],
58 "directives": []
59 }
60 },
61 "finalizer": null
62 }
63 ],
64 "directives": []
65 }
66 }