Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":13,"index":27}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (2:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":13,"index":27}},
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": "ClassDeclaration",
34 "start":14,"end":26,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":12,"index":26}},
35 "id": {
36 "type": "Identifier",
37 "start":20,"end":23,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":9,"index":23},"identifierName":"foo"},
38 "name": "foo"
39 },
40 "superClass": null,
41 "body": {
42 "type": "ClassBody",
43 "start":24,"end":26,"loc":{"start":{"line":2,"column":10,"index":24},"end":{"line":2,"column":12,"index":26}},
44 "body": []
45 }
46 },
47 {
48 "type": "EmptyStatement",
49 "start":26,"end":27,"loc":{"start":{"line":2,"column":12,"index":26},"end":{"line":2,"column":13,"index":27}}
50 }
51 ],
52 "directives": []
53 }
54 }