| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: Can not use 'await' as identifier inside an async function. (1:6)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 10 | "sourceType": "module", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "VariableDeclaration", |
| 15 | "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 16 | "declarations": [ |
| 17 | { |
| 18 | "type": "VariableDeclarator", |
| 19 | "start":6,"end":19,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":19,"index":19}}, |
| 20 | "id": { |
| 21 | "type": "Identifier", |
| 22 | "start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11},"identifierName":"await"}, |
| 23 | "name": "await" |
| 24 | }, |
| 25 | "init": { |
| 26 | "type": "CallExpression", |
| 27 | "start":14,"end":19,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":19,"index":19}}, |
| 28 | "callee": { |
| 29 | "type": "Identifier", |
| 30 | "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17},"identifierName":"foo"}, |
| 31 | "name": "foo" |
| 32 | }, |
| 33 | "arguments": [] |
| 34 | } |
| 35 | } |
| 36 | ], |
| 37 | "kind": "const" |
| 38 | } |
| 39 | ], |
| 40 | "directives": [] |
| 41 | } |
| 42 | } |