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

82 lines
1.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 37,
"ctxt": 0
},
"body": [
{
"type": "ForInStatement",
"span": {
"start": 0,
"end": 37,
"ctxt": 0
},
"left": {
"type": "VariableDeclaration",
"span": {
"start": 5,
"end": 10,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"value": "i",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 14,
"end": 23,
"ctxt": 0
},
"value": "something",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 25,
"end": 37,
"ctxt": 0
},
"stmts": [
{
"type": "BreakStatement",
"span": {
"start": 29,
"end": 35,
"ctxt": 0
},
"label": null
}
]
}
}
],
"interpreter": null
}