mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
450 lines
12 KiB
JSON
450 lines
12 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 297,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 10,
|
|
"end": 12,
|
|
"ctxt": 0
|
|
},
|
|
"value": "fn",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 1,
|
|
"end": 297,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 15,
|
|
"end": 297,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"param": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
"finalizer": null
|
|
},
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 44,
|
|
"end": 157,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 157,
|
|
"ctxt": 0
|
|
},
|
|
"param": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 58,
|
|
"end": 157,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 69,
|
|
"end": 125,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 73,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 77,
|
|
"end": 125,
|
|
"ctxt": 0
|
|
},
|
|
"param": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 125,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 98,
|
|
"end": 115,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 102,
|
|
"end": 105,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 106,
|
|
"end": 115,
|
|
"ctxt": 0
|
|
},
|
|
"param": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 115,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"finalizer": null
|
|
},
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 134,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 138,
|
|
"end": 141,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 142,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
},
|
|
"param": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 148,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"finalizer": null
|
|
},
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 163,
|
|
"end": 196,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 167,
|
|
"end": 170,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 171,
|
|
"end": 196,
|
|
"ctxt": 0
|
|
},
|
|
"param": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 178,
|
|
"end": 179,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 181,
|
|
"end": 196,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 183,
|
|
"end": 194,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 187,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 187,
|
|
"end": 188,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 188,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 190,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"finalizer": null
|
|
},
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 202,
|
|
"end": 221,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 206,
|
|
"end": 209,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": null,
|
|
"finalizer": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 218,
|
|
"end": 221,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 227,
|
|
"end": 256,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 231,
|
|
"end": 234,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 235,
|
|
"end": 244,
|
|
"ctxt": 0
|
|
},
|
|
"param": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 241,
|
|
"end": 244,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
"finalizer": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 253,
|
|
"end": 256,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "TryStatement",
|
|
"span": {
|
|
"start": 262,
|
|
"end": 295,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 266,
|
|
"end": 269,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"span": {
|
|
"start": 270,
|
|
"end": 283,
|
|
"ctxt": 0
|
|
},
|
|
"param": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 277,
|
|
"end": 278,
|
|
"ctxt": 0
|
|
},
|
|
"value": "z",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 280,
|
|
"end": 283,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
"finalizer": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 295,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|