{ "type": "Script", "span": { "start": 43, "end": 176, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 57, "end": 58, "ctxt": 0 }, "value": "C", "optional": false }, "declare": true, "span": { "start": 43, "end": 62, "ctxt": 0 }, "decorators": [], "body": [], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 63, "end": 96, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 75, "end": 95, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 75, "end": 76, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 76, "end": 95, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 78, "end": 95, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 78, "end": 85, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 85, "end": 95, "ctxt": 0 }, "params": [ { "type": "TsTypeQuery", "span": { "start": 86, "end": 94, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 93, "end": 94, "ctxt": 0 }, "value": "C", "optional": false } } ] } } } }, "init": null, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 113, "end": 117, "ctxt": 0 }, "value": "func", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 98, "end": 176, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 135, "end": 176, "ctxt": 0 }, "stmts": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 147, "end": 148, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 141, "end": 174, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "ParenthesisExpression", "span": { "start": 157, "end": 166, "ctxt": 0 }, "expression": { "type": "AwaitExpression", "span": { "start": 158, "end": 165, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 164, "end": 165, "ctxt": 0 }, "value": "p", "optional": false } } }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 119, "end": 134, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 121, "end": 134, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 121, "end": 128, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 128, "end": 134, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 129, "end": 133, "ctxt": 0 }, "kind": "void" } ] } } } } ], "interpreter": null }