| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":39,"index":54}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Missing semicolon. (2:14)", |
| 6 |
"SyntaxError: Missing semicolon. (2:21)" |
| 7 |
], |
| 8 |
"program": { |
| 9 |
"type": "Program", |
| 10 |
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":39,"index":54}}, |
| 11 |
"sourceType": "module", |
| 12 |
"interpreter": null, |
| 13 |
"body": [ |
| 14 |
{ |
| 15 |
"type": "VariableDeclaration", |
| 16 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 17 |
"declarations": [ |
| 18 |
{ |
| 19 |
"type": "VariableDeclarator", |
| 20 |
"start":6,"end":13,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":13,"index":13}}, |
| 21 |
"id": { |
| 22 |
"type": "Identifier", |
| 23 |
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"foo"}, |
| 24 |
"name": "foo" |
| 25 |
}, |
| 26 |
"init": { |
| 27 |
"type": "NumericLiteral", |
| 28 |
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13}}, |
| 29 |
"extra": { |
| 30 |
"rawValue": 1, |
| 31 |
"raw": "1" |
| 32 |
}, |
| 33 |
"value": 1 |
| 34 |
} |
| 35 |
} |
| 36 |
], |
| 37 |
"kind": "const" |
| 38 |
}, |
| 39 |
{ |
| 40 |
"type": "ExportNamedDeclaration", |
| 41 |
"start":15,"end":29,"loc":{"start":{"line":2,"column":0,"index":15},"end":{"line":2,"column":14,"index":29}}, |
| 42 |
"specifiers": [ |
| 43 |
{ |
| 44 |
"type": "ExportSpecifier", |
| 45 |
"start":24,"end":27,"loc":{"start":{"line":2,"column":9,"index":24},"end":{"line":2,"column":12,"index":27}}, |
| 46 |
"local": { |
| 47 |
"type": "Identifier", |
| 48 |
"start":24,"end":27,"loc":{"start":{"line":2,"column":9,"index":24},"end":{"line":2,"column":12,"index":27},"identifierName":"foo"}, |
| 49 |
"name": "foo" |
| 50 |
}, |
| 51 |
"exported": { |
| 52 |
"type": "Identifier", |
| 53 |
"start":24,"end":27,"loc":{"start":{"line":2,"column":9,"index":24},"end":{"line":2,"column":12,"index":27},"identifierName":"foo"}, |
| 54 |
"name": "foo" |
| 55 |
} |
| 56 |
} |
| 57 |
], |
| 58 |
"source": null, |
| 59 |
"declaration": null, |
| 60 |
"assertions": [] |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "ExpressionStatement", |
| 64 |
"start":30,"end":36,"loc":{"start":{"line":2,"column":15,"index":30},"end":{"line":2,"column":21,"index":36}}, |
| 65 |
"expression": { |
| 66 |
"type": "Identifier", |
| 67 |
"start":30,"end":36,"loc":{"start":{"line":2,"column":15,"index":30},"end":{"line":2,"column":21,"index":36},"identifierName":"assert"}, |
| 68 |
"name": "assert" |
| 69 |
} |
| 70 |
}, |
| 71 |
{ |
| 72 |
"type": "BlockStatement", |
| 73 |
"start":37,"end":53,"loc":{"start":{"line":2,"column":22,"index":37},"end":{"line":2,"column":38,"index":53}}, |
| 74 |
"body": [ |
| 75 |
{ |
| 76 |
"type": "LabeledStatement", |
| 77 |
"start":39,"end":51,"loc":{"start":{"line":2,"column":24,"index":39},"end":{"line":2,"column":36,"index":51}}, |
| 78 |
"body": { |
| 79 |
"type": "ExpressionStatement", |
| 80 |
"start":45,"end":51,"loc":{"start":{"line":2,"column":30,"index":45},"end":{"line":2,"column":36,"index":51}}, |
| 81 |
"expression": { |
| 82 |
"type": "StringLiteral", |
| 83 |
"start":45,"end":51,"loc":{"start":{"line":2,"column":30,"index":45},"end":{"line":2,"column":36,"index":51}}, |
| 84 |
"extra": { |
| 85 |
"rawValue": "json", |
| 86 |
"raw": "\"json\"" |
| 87 |
}, |
| 88 |
"value": "json" |
| 89 |
} |
| 90 |
}, |
| 91 |
"label": { |
| 92 |
"type": "Identifier", |
| 93 |
"start":39,"end":43,"loc":{"start":{"line":2,"column":24,"index":39},"end":{"line":2,"column":28,"index":43},"identifierName":"type"}, |
| 94 |
"name": "type" |
| 95 |
} |
| 96 |
} |
| 97 |
], |
| 98 |
"directives": [] |
| 99 |
}, |
| 100 |
{ |
| 101 |
"type": "EmptyStatement", |
| 102 |
"start":53,"end":54,"loc":{"start":{"line":2,"column":38,"index":53},"end":{"line":2,"column":39,"index":54}} |
| 103 |
} |
| 104 |
], |
| 105 |
"directives": [] |
| 106 |
} |
| 107 |
} |