{ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, "errors": [ "SyntaxError: Lexical declaration cannot appear in a single-statement context. (1:5)" ], "program": { "type": "Program", "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "LabeledStatement", "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, "body": { "type": "VariableDeclaration", "start":5,"end":13,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":13,"index":13}}, "declarations": [ { "type": "VariableDeclarator", "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12}}, "id": { "type": "Identifier", "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"bar"}, "name": "bar" }, "init": null } ], "kind": "let" }, "label": { "type": "Identifier", "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"foo"}, "name": "foo" } } ], "directives": [] } }