* Recover from "missing semicolon" errors * Update other tests * Fix flow * Fix windows test * Add back deleted test
74 lines
2.5 KiB
JSON
74 lines
2.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}},
|
|
"errors": [
|
|
"SyntaxError: Missing semicolon (1:12)",
|
|
"SyntaxError: Missing semicolon (1:24)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}},
|
|
"specifiers": [],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start":7,"end":12,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":12}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
},
|
|
"assertions": []
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":13,"end":24,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":24}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":13,"end":24,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":24},"identifierName":"assert"},
|
|
"name": "assert"
|
|
}
|
|
},
|
|
{
|
|
"type": "BlockStatement",
|
|
"start":25,"end":41,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":41}},
|
|
"body": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"start":27,"end":39,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":39}},
|
|
"body": {
|
|
"type": "ExpressionStatement",
|
|
"start":33,"end":39,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":39}},
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"start":33,"end":39,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":39}},
|
|
"extra": {
|
|
"rawValue": "json",
|
|
"raw": "\"json\""
|
|
},
|
|
"value": "json"
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"start":27,"end":31,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":31},"identifierName":"type"},
|
|
"name": "type"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
{
|
|
"type": "EmptyStatement",
|
|
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42}}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |