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

137 lines
3.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 94,
"ctxt": 0
},
"body": [
{
"type": "LabeledStatement",
"span": {
"start": 1,
"end": 94,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"value": "target",
"optional": false
},
"body": {
"type": "WhileStatement",
"span": {
"start": 9,
"end": 94,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 16,
"end": 20,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 22,
"end": 94,
"ctxt": 0
},
"stmts": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 26,
"end": 92,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 39,
"end": 92,
"ctxt": 0
},
"stmts": [
{
"type": "WhileStatement",
"span": {
"start": 45,
"end": 88,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 52,
"end": 56,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 58,
"end": 88,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 66,
"end": 82,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 75,
"end": 81,
"ctxt": 0
},
"value": "target",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
}
],
"interpreter": null
}