Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":47}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (2:28)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":47}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "TryStatement",
15 "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":47}},
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":47,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":3,"column":1,"index":47}},
25 "param": {
26 "type": "ObjectPattern",
27 "start":15,"end":42,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":36,"index":42}},
28 "properties": [
29 {
30 "type": "ObjectProperty",
31 "start":17,"end":23,"loc":{"start":{"line":2,"column":11,"index":17},"end":{"line":2,"column":17,"index":23}},
32 "key": {
33 "type": "Identifier",
34 "start":17,"end":18,"loc":{"start":{"line":2,"column":11,"index":17},"end":{"line":2,"column":12,"index":18},"identifierName":"a"},
35 "name": "a"
36 },
37 "computed": false,
38 "method": false,
39 "shorthand": false,
40 "value": {
41 "type": "Identifier",
42 "start":20,"end":23,"loc":{"start":{"line":2,"column":14,"index":20},"end":{"line":2,"column":17,"index":23},"identifierName":"foo"},
43 "name": "foo"
44 }
45 },
46 {
47 "type": "ObjectProperty",
48 "start":25,"end":40,"loc":{"start":{"line":2,"column":19,"index":25},"end":{"line":2,"column":34,"index":40}},
49 "key": {
50 "type": "Identifier",
51 "start":25,"end":26,"loc":{"start":{"line":2,"column":19,"index":25},"end":{"line":2,"column":20,"index":26},"identifierName":"b"},
52 "name": "b"
53 },
54 "computed": false,
55 "method": false,
56 "shorthand": false,
57 "value": {
58 "type": "ObjectPattern",
59 "start":28,"end":40,"loc":{"start":{"line":2,"column":22,"index":28},"end":{"line":2,"column":34,"index":40}},
60 "properties": [
61 {
62 "type": "ObjectProperty",
63 "start":30,"end":38,"loc":{"start":{"line":2,"column":24,"index":30},"end":{"line":2,"column":32,"index":38}},
64 "key": {
65 "type": "Identifier",
66 "start":30,"end":31,"loc":{"start":{"line":2,"column":24,"index":30},"end":{"line":2,"column":25,"index":31},"identifierName":"c"},
67 "name": "c"
68 },
69 "computed": false,
70 "method": false,
71 "shorthand": false,
72 "value": {
73 "type": "ArrayPattern",
74 "start":33,"end":38,"loc":{"start":{"line":2,"column":27,"index":33},"end":{"line":2,"column":32,"index":38}},
75 "elements": [
76 {
77 "type": "Identifier",
78 "start":34,"end":37,"loc":{"start":{"line":2,"column":28,"index":34},"end":{"line":2,"column":31,"index":37},"identifierName":"foo"},
79 "name": "foo"
80 }
81 ]
82 }
83 }
84 ]
85 }
86 }
87 ]
88 },
89 "body": {
90 "type": "BlockStatement",
91 "start":44,"end":47,"loc":{"start":{"line":2,"column":38,"index":44},"end":{"line":3,"column":1,"index":47}},
92 "body": [],
93 "directives": []
94 }
95 },
96 "finalizer": null
97 }
98 ],
99 "directives": []
100 }
101 }