* Recover from "missing semicolon" errors * Update other tests * Fix flow * Fix windows test * Add back deleted test
58 lines
2.0 KiB
JSON
58 lines
2.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
|
|
"errors": [
|
|
"SyntaxError: Missing semicolon (1:12)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"start":3,"end":7,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":7}},
|
|
"value": true
|
|
},
|
|
"consequent": {
|
|
"type": "ExpressionStatement",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":12}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":12},"identifierName":"let"},
|
|
"name": "let"
|
|
}
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":13,"end":19,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":19}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":13,"end":18,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":18}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":13,"end":14,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":14},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |