Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-const-init/output.json

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