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

93 lines
1.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 30,
"end": 81,
"ctxt": 0
},
"body": [
{
"type": "LabeledStatement",
"span": {
"start": 30,
"end": 81,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 30,
"end": 37,
"ctxt": 0
},
"value": "target1",
"optional": false
},
"body": {
"type": "LabeledStatement",
"span": {
"start": 39,
"end": 81,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 39,
"end": 46,
"ctxt": 0
},
"value": "target2",
"optional": false
},
"body": {
"type": "WhileStatement",
"span": {
"start": 48,
"end": 81,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 55,
"end": 59,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 61,
"end": 81,
"ctxt": 0
},
"stmts": [
{
"type": "BreakStatement",
"span": {
"start": 65,
"end": 79,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 71,
"end": 78,
"ctxt": 0
},
"value": "target1",
"optional": false
}
}
]
}
}
}
}
],
"interpreter": null
}