* Recover from "missing semicolon" errors * Update other tests * Fix flow * Fix windows test * Add back deleted test
62 lines
2.2 KiB
JSON
62 lines
2.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"errors": [
|
|
"SyntaxError: Missing semicolon (2:19)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":15,"end":19,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":19},"identifierName":"test"},
|
|
"name": "test"
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":23,"end":49,"loc":{"start":{"line":1,"column":23},"end":{"line":3,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start":27,"end":44,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":19}},
|
|
"argument": {
|
|
"type": "BinaryExpression",
|
|
"start":34,"end":44,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":19}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":34,"end":35,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":10},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "AwaitExpression",
|
|
"start":39,"end":44,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":19}}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":45,"end":47,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":22}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":45,"end":46,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":21},"identifierName":"f"},
|
|
"name": "f"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |