Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":19,"index":33}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (2:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":19,"index":33}},
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": "FunctionDeclaration",
34 "start":14,"end":32,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":18,"index":32}},
35 "id": {
36 "type": "Identifier",
37 "start":23,"end":26,"loc":{"start":{"line":2,"column":9,"index":23},"end":{"line":2,"column":12,"index":26},"identifierName":"foo"},
38 "name": "foo"
39 },
40 "generator": false,
41 "async": false,
42 "params": [],
43 "body": {
44 "type": "BlockStatement",
45 "start":30,"end":32,"loc":{"start":{"line":2,"column":16,"index":30},"end":{"line":2,"column":18,"index":32}},
46 "body": [],
47 "directives": []
48 }
49 },
50 {
51 "type": "EmptyStatement",
52 "start":32,"end":33,"loc":{"start":{"line":2,"column":18,"index":32},"end":{"line":2,"column":19,"index":33}}
53 }
54 ],
55 "directives": []
56 }
57 }