swc/crates/swc_ecma_parser/tests/tsc/parser_breakTarget3.json

93 lines
1.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 29,
"end": 80,
"ctxt": 0
},
"body": [
{
"type": "LabeledStatement",
"span": {
"start": 29,
"end": 80,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 29,
"end": 36,
"ctxt": 0
},
"value": "target1",
"optional": false
},
"body": {
"type": "LabeledStatement",
"span": {
"start": 38,
"end": 80,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 38,
"end": 45,
"ctxt": 0
},
"value": "target2",
"optional": false
},
"body": {
"type": "WhileStatement",
"span": {
"start": 47,
"end": 80,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 54,
"end": 58,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 60,
"end": 80,
"ctxt": 0
},
"stmts": [
{
"type": "BreakStatement",
"span": {
"start": 64,
"end": 78,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 70,
"end": 77,
"ctxt": 0
},
"value": "target1",
"optional": false
}
}
]
}
}
}
}
],
"interpreter": null
}