{ "type": "Script", "span": { "start": 69, "end": 202, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 83, "end": 84, "ctxt": 0 }, "value": "C", "optional": false }, "declare": true, "span": { "start": 69, "end": 88, "ctxt": 0 }, "decorators": [], "body": [], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 89, "end": 122, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 101, "end": 121, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 101, "end": 102, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 102, "end": 121, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 104, "end": 121, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 104, "end": 111, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 111, "end": 121, "ctxt": 0 }, "params": [ { "type": "TsTypeQuery", "span": { "start": 112, "end": 120, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 119, "end": 120, "ctxt": 0 }, "value": "C", "optional": false }, "typeArguments": null } ] } } } }, "init": null, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 139, "end": 143, "ctxt": 0 }, "value": "func", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 124, "end": 202, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 161, "end": 202, "ctxt": 0 }, "stmts": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 173, "end": 174, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 167, "end": 200, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "ParenthesisExpression", "span": { "start": 183, "end": 192, "ctxt": 0 }, "expression": { "type": "AwaitExpression", "span": { "start": 184, "end": 191, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 190, "end": 191, "ctxt": 0 }, "value": "p", "optional": false } } }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 145, "end": 160, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 147, "end": 160, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 147, "end": 154, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 154, "end": 160, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 155, "end": 159, "ctxt": 0 }, "kind": "void" } ] } } } } ], "interpreter": null }