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