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

236 lines
7.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 68,
"end": 187,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 74,
"end": 75,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 68,
"end": 187,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 81,
"end": 185,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 81,
"end": 87,
"ctxt": 0
},
"value": "method",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 81,
"end": 185,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 90,
"end": 185,
"ctxt": 0
},
"stmts": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 107,
"end": 112,
"ctxt": 0
},
"value": "other",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 98,
"end": 117,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 115,
"end": 117,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 124,
"end": 180,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 128,
"end": 179,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 128,
"end": 130,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 133,
"end": 179,
"ctxt": 0
},
"params": [],
"body": {
"type": "AwaitExpression",
"span": {
"start": 145,
"end": 179,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 151,
"end": 179,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 151,
"end": 162,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 151,
"end": 156,
"ctxt": 0
},
"value": "other",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 157,
"end": 162,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ThisExpression",
"span": {
"start": 163,
"end": 167,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 169,
"end": 178,
"ctxt": 0
},
"value": "arguments",
"optional": false
}
}
],
"typeArguments": null
}
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
]
},
"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
}