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

83 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 49,
"ctxt": 0
},
"body": [
{
"type": "WhileStatement",
"span": {
"start": 1,
"end": 49,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"value": true
},
"body": {
"type": "BlockStatement",
"span": {
"start": 14,
"end": 49,
"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": 47,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 31,
"end": 47,
"ctxt": 0
},
"stmts": [
{
"type": "BreakStatement",
"span": {
"start": 37,
"end": 43,
"ctxt": 0
},
"label": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"interpreter": null
}