Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":12,"index":26}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (2:4)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":12,"index":26}},
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":26,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":12,"index":26}},
35 "declarations": [
36 {
37 "type": "VariableDeclarator",
38 "start":18,"end":25,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":11,"index":25}},
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": {
45 "type": "NumericLiteral",
46 "start":24,"end":25,"loc":{"start":{"line":2,"column":10,"index":24},"end":{"line":2,"column":11,"index":25}},
47 "extra": {
48 "rawValue": 1,
49 "raw": "1"
50 },
51 "value": 1
52 }
53 }
54 ],
55 "kind": "let"
56 }
57 ],
58 "directives": []
59 }
60 }