mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
66 lines
2.4 KiB
JSON
66 lines
2.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":18,"index":25}},
|
|
"errors": [
|
|
"SyntaxError: Invalid left-hand side in for-loop. (2:5)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":18,"index":25}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start":7,"end":25,"loc":{"start":{"line":2,"column":0,"index":7},"end":{"line":2,"column":18,"index":25}},
|
|
"await": false,
|
|
"left": {
|
|
"type": "AssignmentPattern",
|
|
"start":12,"end":17,"loc":{"start":{"line":2,"column":5,"index":12},"end":{"line":2,"column":10,"index":17}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":2,"column":5,"index":12},"end":{"line":2,"column":6,"index":13},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":16,"end":17,"loc":{"start":{"line":2,"column":9,"index":16},"end":{"line":2,"column":10,"index":17}},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"start":21,"end":23,"loc":{"start":{"line":2,"column":14,"index":21},"end":{"line":2,"column":16,"index":23}},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":24,"end":25,"loc":{"start":{"line":2,"column":17,"index":24},"end":{"line":2,"column":18,"index":25}}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|