{ "type": "Script", "span": { "start": 68, "end": 201, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 82, "end": 83, "ctxt": 0 }, "value": "C", "optional": false }, "declare": true, "span": { "start": 68, "end": 87, "ctxt": 0 }, "decorators": [], "body": [], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 88, "end": 121, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 100, "end": 120, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 100, "end": 101, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 101, "end": 120, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 103, "end": 120, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 103, "end": 110, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 110, "end": 120, "ctxt": 0 }, "params": [ { "type": "TsTypeQuery", "span": { "start": 111, "end": 119, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 118, "end": 119, "ctxt": 0 }, "value": "C", "optional": false }, "typeArguments": null } ] } } } }, "init": null, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 138, "end": 142, "ctxt": 0 }, "value": "func", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 123, "end": 201, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 160, "end": 201, "ctxt": 0 }, "stmts": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 172, "end": 173, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 166, "end": 199, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "ParenthesisExpression", "span": { "start": 182, "end": 191, "ctxt": 0 }, "expression": { "type": "AwaitExpression", "span": { "start": 183, "end": 190, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 189, "end": 190, "ctxt": 0 }, "value": "p", "optional": false } } }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 144, "end": 159, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 146, "end": 159, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 146, "end": 153, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 153, "end": 159, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 154, "end": 158, "ctxt": 0 }, "kind": "void" } ] } } } } ], "interpreter": null }