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

100 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 61,
"end": 112,
"ctxt": 0
},
"body": [
{
"type": "LabeledStatement",
"span": {
"start": 61,
"end": 85,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 61,
"end": 67,
"ctxt": 0
},
"value": "target",
"optional": false
},
"body": {
"type": "WhileStatement",
"span": {
"start": 69,
"end": 85,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 76,
"end": 80,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 82,
"end": 85,
"ctxt": 0
},
"stmts": []
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 87,
"end": 112,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"value": "target",
"optional": false
},
"body": {
"type": "WhileStatement",
"span": {
"start": 96,
"end": 112,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 103,
"end": 107,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 109,
"end": 112,
"ctxt": 0
},
"stmts": []
}
}
}
],
"interpreter": null
}