| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: 'import' and 'export' may only appear at the top level. (1:7)", |
| 6 | "SyntaxError: 'import' and 'export' may appear only with 'sourceType: \"module\"' (1:7)" |
| 7 | ], |
| 8 | "program": { |
| 9 | "type": "Program", |
| 10 | "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}}, |
| 11 | "sourceType": "script", |
| 12 | "interpreter": null, |
| 13 | "body": [ |
| 14 | { |
| 15 | "type": "IfStatement", |
| 16 | "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}}, |
| 17 | "test": { |
| 18 | "type": "NumericLiteral", |
| 19 | "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5}}, |
| 20 | "extra": { |
| 21 | "rawValue": 1, |
| 22 | "raw": "1" |
| 23 | }, |
| 24 | "value": 1 |
| 25 | }, |
| 26 | "consequent": { |
| 27 | "type": "ImportDeclaration", |
| 28 | "start":7,"end":22,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":22,"index":22}}, |
| 29 | "specifiers": [], |
| 30 | "source": { |
| 31 | "type": "StringLiteral", |
| 32 | "start":14,"end":21,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":21,"index":21}}, |
| 33 | "extra": { |
| 34 | "rawValue": "acorn", |
| 35 | "raw": "\"acorn\"" |
| 36 | }, |
| 37 | "value": "acorn" |
| 38 | } |
| 39 | }, |
| 40 | "alternate": null |
| 41 | } |
| 42 | ], |
| 43 | "directives": [] |
| 44 | } |
| 45 | } |