swc/crates/swc_ecma_parser/tests/tsc/emitter.noCatchBinding.es2019.json

200 lines
4.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 19,
"end": 144,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 19,
"end": 144,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 32,
"end": 144,
"ctxt": 0
},
"stmts": [
{
"type": "TryStatement",
"span": {
"start": 38,
"end": 55,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 42,
"end": 45,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 46,
"end": 55,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 52,
"end": 55,
"ctxt": 0
},
"stmts": []
}
},
"finalizer": null
},
{
"type": "TryStatement",
"span": {
"start": 60,
"end": 108,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 64,
"end": 67,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 68,
"end": 108,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 74,
"end": 108,
"ctxt": 0
},
"stmts": [
{
"type": "TryStatement",
"span": {
"start": 85,
"end": 102,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 89,
"end": 92,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 93,
"end": 102,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"stmts": []
}
},
"finalizer": null
}
]
}
},
"finalizer": null
},
{
"type": "TryStatement",
"span": {
"start": 113,
"end": 142,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 117,
"end": 120,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 121,
"end": 130,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 127,
"end": 130,
"ctxt": 0
},
"stmts": []
}
},
"finalizer": {
"type": "BlockStatement",
"span": {
"start": 139,
"end": 142,
"ctxt": 0
},
"stmts": []
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}