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

40 lines
643 B
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 11,
"ctxt": 0
},
"body": [
{
"type": "IfStatement",
"span": {
"start": 1,
"end": 11,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "a",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 8,
"end": 11,
"ctxt": 0
},
"stmts": []
},
"alternate": null
}
],
"interpreter": null
}