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

234 lines
7.2 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 69,
"end": 209,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 69,
"end": 209,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 82,
"end": 207,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 82,
"end": 88,
"ctxt": 0
},
"value": "method",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 82,
"end": 207,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 91,
"end": 207,
"ctxt": 0
},
"stmts": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 108,
"end": 113,
"ctxt": 0
},
"value": "other",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 99,
"end": 118,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 116,
"end": 118,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 140,
"end": 142,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 125,
"end": 202,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 146,
"end": 202,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 159,
"end": 194,
"ctxt": 0
},
"expression": {
"type": "AwaitExpression",
"span": {
"start": 159,
"end": 193,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 165,
"end": 193,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 165,
"end": 176,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 165,
"end": 170,
"ctxt": 0
},
"value": "other",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 171,
"end": 176,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ThisExpression",
"span": {
"start": 177,
"end": 181,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 183,
"end": 192,
"ctxt": 0
},
"value": "arguments",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}