65 lines
2.4 KiB
JSON
65 lines
2.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
|
|
"errors": [
|
|
"SyntaxError: Label 'x' is already declared. (1:18)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
|
|
"body": {
|
|
"type": "WhileStatement",
|
|
"start":3,"end":39,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":39}},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"start":10,"end":14,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":14}},
|
|
"value": true
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":39,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":39}},
|
|
"body": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"start":18,"end":37,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":37}},
|
|
"body": {
|
|
"type": "WhileStatement",
|
|
"start":21,"end":37,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":37}},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"start":28,"end":32,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":32}},
|
|
"value": true
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":34,"end":37,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":37}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"start":18,"end":19,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":19},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"start":0,"end":1,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":1},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |