Debian Codegraph @

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

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