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

40 lines
643 B
JSON
Raw Normal View History

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