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

147 lines
3.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 68,
"end": 137,
"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": 137,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 81,
"end": 135,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 81,
"end": 87,
"ctxt": 0
},
"value": "method",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 81,
"end": 135,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 90,
"end": 135,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 98,
"end": 130,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 102,
"end": 129,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 102,
"end": 104,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 107,
"end": 129,
"ctxt": 0
},
"params": [],
"body": {
"type": "AwaitExpression",
"span": {
"start": 119,
"end": 129,
"ctxt": 0
},
"argument": {
"type": "ThisExpression",
"span": {
"start": 125,
"end": 129,
"ctxt": 0
}
}
},
"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
}