Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/329/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
4 "errors": [
5 "SyntaxError: Lexical declaration cannot appear in a single-statement context. (1:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ForStatement",
15 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
16 "init": null,
17 "test": null,
18 "update": null,
19 "body": {
20 "type": "VariableDeclaration",
21 "start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
22 "declarations": [
23 {
24 "type": "VariableDeclarator",
25 "start":15,"end":21,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":21,"index":21}},
26 "id": {
27 "type": "Identifier",
28 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"x"},
29 "name": "x"
30 },
31 "init": {
32 "type": "NumericLiteral",
33 "start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
34 "extra": {
35 "rawValue": 10,
36 "raw": "10"
37 },
38 "value": 10
39 }
40 }
41 ],
42 "kind": "const"
43 }
44 }
45 ],
46 "directives": []
47 }
48 }