{ "type": "Script", "span": { "start": 2, "end": 192, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 8, "end": 9, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 2, "end": 12, "ctxt": 0 }, "decorators": [], "body": [], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 28, "end": 29, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 13, "end": 42, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "Identifier", "span": { "start": 38, "end": 39, "ctxt": 0 }, "value": "A", "optional": false }, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 53, "end": 57, "ctxt": 0 }, "value": "NewA", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 58, "end": 75, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 58, "end": 75, "ctxt": 0 }, "value": "Factory", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 65, "end": 75, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 67, "end": 75, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 74, "end": 75, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": null } } } } ], "decorators": [], "span": { "start": 44, "end": 98, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 77, "end": 98, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 83, "end": 96, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 90, "end": 95, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 94, "end": 95, "ctxt": 0 }, "value": "A", "optional": false }, "arguments": null, "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 109, "end": 113, "ctxt": 0 }, "value": "NewB", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 114, "end": 131, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 114, "end": 131, "ctxt": 0 }, "value": "Factory", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 121, "end": 131, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 123, "end": 131, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 130, "end": 131, "ctxt": 0 }, "value": "B", "optional": false }, "typeArguments": null } } } } ], "decorators": [], "span": { "start": 100, "end": 154, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 133, "end": 154, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 139, "end": 152, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 146, "end": 151, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 150, "end": 151, "ctxt": 0 }, "value": "B", "optional": false }, "arguments": null, "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 156, "end": 164, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 156, "end": 163, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 156, "end": 160, "ctxt": 0 }, "value": "NewA", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 161, "end": 162, "ctxt": 0 }, "value": "A", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 165, "end": 173, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 165, "end": 172, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 165, "end": 169, "ctxt": 0 }, "value": "NewA", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 170, "end": 171, "ctxt": 0 }, "value": "B", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 175, "end": 183, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 175, "end": 182, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 175, "end": 179, "ctxt": 0 }, "value": "NewB", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 180, "end": 181, "ctxt": 0 }, "value": "A", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 184, "end": 192, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 184, "end": 191, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 184, "end": 188, "ctxt": 0 }, "value": "NewB", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 189, "end": 190, "ctxt": 0 }, "value": "B", "optional": false } } ], "typeArguments": null } } ], "interpreter": null }