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

76 lines
1.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 30,
"end": 40,
"ctxt": 0
},
"body": [
{
"type": "BlockStatement",
"span": {
"start": 30,
"end": 36,
"ctxt": 0
},
"stmts": [
{
"type": "LabeledStatement",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": "a",
"optional": false
},
"body": {
"type": "ExpressionStatement",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 37,
"end": 40,
"ctxt": 0
},
"expression": {
"type": "RegExpLiteral",
"span": {
"start": 37,
"end": 40,
"ctxt": 0
},
"pattern": "x",
"flags": ""
}
}
],
"interpreter": null
}