| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Lexical declaration cannot appear in a single-statement context. (2:9)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "BlockStatement", |
| 15 |
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}}, |
| 16 |
"body": [ |
| 17 |
{ |
| 18 |
"type": "LabeledStatement", |
| 19 |
"start":4,"end":27,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":25,"index":27}}, |
| 20 |
"body": { |
| 21 |
"type": "VariableDeclaration", |
| 22 |
"start":11,"end":27,"loc":{"start":{"line":2,"column":9,"index":11},"end":{"line":2,"column":25,"index":27}}, |
| 23 |
"declarations": [ |
| 24 |
{ |
| 25 |
"type": "VariableDeclarator", |
| 26 |
"start":17,"end":26,"loc":{"start":{"line":2,"column":15,"index":17},"end":{"line":2,"column":24,"index":26}}, |
| 27 |
"id": { |
| 28 |
"type": "Identifier", |
| 29 |
"start":17,"end":18,"loc":{"start":{"line":2,"column":15,"index":17},"end":{"line":2,"column":16,"index":18},"identifierName":"x"}, |
| 30 |
"name": "x" |
| 31 |
}, |
| 32 |
"init": { |
| 33 |
"type": "CallExpression", |
| 34 |
"start":21,"end":26,"loc":{"start":{"line":2,"column":19,"index":21},"end":{"line":2,"column":24,"index":26}}, |
| 35 |
"callee": { |
| 36 |
"type": "Identifier", |
| 37 |
"start":21,"end":24,"loc":{"start":{"line":2,"column":19,"index":21},"end":{"line":2,"column":22,"index":24},"identifierName":"bar"}, |
| 38 |
"name": "bar" |
| 39 |
}, |
| 40 |
"arguments": [] |
| 41 |
} |
| 42 |
} |
| 43 |
], |
| 44 |
"kind": "using" |
| 45 |
}, |
| 46 |
"label": { |
| 47 |
"type": "Identifier", |
| 48 |
"start":4,"end":9,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":7,"index":9},"identifierName":"label"}, |
| 49 |
"name": "label" |
| 50 |
} |
| 51 |
} |
| 52 |
], |
| 53 |
"directives": [] |
| 54 |
} |
| 55 |
], |
| 56 |
"directives": [] |
| 57 |
} |
| 58 |
} |