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

61 lines
1.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 48,
"end": 90,
"ctxt": 0
},
"body": [
{
"type": "SwitchStatement",
"span": {
"start": 48,
"end": 90,
"ctxt": 0
},
"discriminant": {
"type": "NumericLiteral",
"span": {
"start": 56,
"end": 58,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
},
"cases": [
{
"type": "SwitchCase",
"span": {
"start": 66,
"end": 88,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
},
"consequent": [
{
"type": "BreakStatement",
"span": {
"start": 82,
"end": 88,
"ctxt": 0
},
"label": null
}
]
}
]
}
],
"interpreter": null
}