Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":43}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (3:11)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":43}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "TryStatement",
15 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":43}},
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":43,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":4,"column":1,"index":43}},
25 "param": {
26 "type": "Identifier",
27 "start":15,"end":18,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":12,"index":18},"identifierName":"foo"},
28 "name": "foo"
29 },
30 "body": {
31 "type": "BlockStatement",
32 "start":20,"end":43,"loc":{"start":{"line":2,"column":14,"index":20},"end":{"line":4,"column":1,"index":43}},
33 "body": [
34 {
35 "type": "FunctionDeclaration",
36 "start":24,"end":41,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":19,"index":41}},
37 "id": {
38 "type": "Identifier",
39 "start":33,"end":36,"loc":{"start":{"line":3,"column":11,"index":33},"end":{"line":3,"column":14,"index":36},"identifierName":"foo"},
40 "name": "foo"
41 },
42 "generator": false,
43 "async": false,
44 "params": [],
45 "body": {
46 "type": "BlockStatement",
47 "start":39,"end":41,"loc":{"start":{"line":3,"column":17,"index":39},"end":{"line":3,"column":19,"index":41}},
48 "body": [],
49 "directives": []
50 }
51 }
52 ],
53 "directives": []
54 }
55 },
56 "finalizer": null
57 }
58 ],
59 "directives": []
60 }
61 }