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

147 lines
3.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 40,
"end": 115,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 46,
"end": 47,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 40,
"end": 115,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 53,
"end": 113,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 53,
"end": 59,
"ctxt": 0
},
"value": "method",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 53,
"end": 113,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 62,
"end": 113,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 70,
"end": 102,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 74,
"end": 101,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 74,
"end": 76,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 79,
"end": 101,
"ctxt": 0
},
"params": [],
"body": {
"type": "AwaitExpression",
"span": {
"start": 91,
"end": 101,
"ctxt": 0
},
"argument": {
"type": "ThisExpression",
"span": {
"start": 97,
"end": 101,
"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
}