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

200 lines
4.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 20,
"end": 145,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 20,
"end": 145,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 33,
"end": 145,
"ctxt": 0
},
"stmts": [
{
"type": "TryStatement",
"span": {
"start": 39,
"end": 56,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 43,
"end": 46,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 47,
"end": 56,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 53,
"end": 56,
"ctxt": 0
},
"stmts": []
}
},
"finalizer": null
},
{
"type": "TryStatement",
"span": {
"start": 61,
"end": 109,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 65,
"end": 68,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 69,
"end": 109,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 75,
"end": 109,
"ctxt": 0
},
"stmts": [
{
"type": "TryStatement",
"span": {
"start": 86,
"end": 103,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 90,
"end": 93,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 100,
"end": 103,
"ctxt": 0
},
"stmts": []
}
},
"finalizer": null
}
]
}
},
"finalizer": null
},
{
"type": "TryStatement",
"span": {
"start": 114,
"end": 143,
"ctxt": 0
},
"block": {
"type": "BlockStatement",
"span": {
"start": 118,
"end": 121,
"ctxt": 0
},
"stmts": []
},
"handler": {
"type": "CatchClause",
"span": {
"start": 122,
"end": 131,
"ctxt": 0
},
"param": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 128,
"end": 131,
"ctxt": 0
},
"stmts": []
}
},
"finalizer": {
"type": "BlockStatement",
"span": {
"start": 140,
"end": 143,
"ctxt": 0
},
"stmts": []
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}