Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/let/let-array-with-newline/output.json

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