Debian Codegraph @

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

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