Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/for-in/const-initializer/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "errors": [
5 "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ForInStatement",
15 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
16 "left": {
17 "type": "VariableDeclaration",
18 "start":5,"end":16,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":16,"index":16}},
19 "declarations": [
20 {
21 "type": "VariableDeclarator",
22 "start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16}},
23 "id": {
24 "type": "Identifier",
25 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"a"},
26 "name": "a"
27 },
28 "init": {
29 "type": "NumericLiteral",
30 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16}},
31 "extra": {
32 "rawValue": 0,
33 "raw": "0"
34 },
35 "value": 0
36 }
37 }
38 ],
39 "kind": "const"
40 },
41 "right": {
42 "type": "ObjectExpression",
43 "start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
44 "properties": []
45 },
46 "body": {
47 "type": "EmptyStatement",
48 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24}}
49 }
50 }
51 ],
52 "directives": []
53 }
54 }