Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":8,"index":22}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (2:4)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":8,"index":22}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12}},
25 "body": []
26 }
27 },
28 {
29 "type": "EmptyStatement",
30 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13}}
31 },
32 {
33 "type": "VariableDeclaration",
34 "start":14,"end":22,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":8,"index":22}},
35 "declarations": [
36 {
37 "type": "VariableDeclarator",
38 "start":18,"end":21,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":7,"index":21}},
39 "id": {
40 "type": "Identifier",
41 "start":18,"end":21,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":7,"index":21},"identifierName":"foo"},
42 "name": "foo"
43 },
44 "init": null
45 }
46 ],
47 "kind": "var"
48 }
49 ],
50 "directives": []
51 }
52 }