mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
66 lines
2.7 KiB
JSON
66 lines
2.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"errors": [
|
|
"SyntaxError: Label 'x' is already declared. (1:18)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"body": {
|
|
"type": "WhileStatement",
|
|
"start":3,"end":39,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":39,"index":39}},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14}},
|
|
"value": true
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":39,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":39,"index":39}},
|
|
"body": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"start":18,"end":37,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":37,"index":37}},
|
|
"body": {
|
|
"type": "WhileStatement",
|
|
"start":21,"end":37,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":37,"index":37}},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"start":28,"end":32,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":32,"index":32}},
|
|
"value": true
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":34,"end":37,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":37,"index":37}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|