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

83 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 52,
"ctxt": 0
},
"body": [
{
"type": "WhileStatement",
"span": {
"start": 1,
"end": 52,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 14,
"end": 52,
"ctxt": 0
},
"stmts": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 18,
"end": 50,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 31,
"end": 50,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 37,
"end": 46,
"ctxt": 0
},
"label": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"interpreter": null
}