{ "type": "Script", "span": { "start": 0, "end": 249, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 15, "end": 16, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 0, "end": 49, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 23, "end": 47, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 32, "end": 35, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 23, "end": 47, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 38, "end": 46, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 40, "end": 46, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 57, "end": 58, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 51, "end": 96, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 75, "end": 94, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 75, "end": 78, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 75, "end": 94, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 81, "end": 94, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 83, "end": 92, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 90, "end": 91, "ctxt": 0 }, "value": 1.0 } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": { "type": "Identifier", "span": { "start": 67, "end": 68, "ctxt": 0 }, "value": "A", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 113, "end": 114, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 98, "end": 158, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 132, "end": 156, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 141, "end": 144, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 132, "end": 156, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 147, "end": 155, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 149, "end": 155, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false } ], "superClass": { "type": "Identifier", "span": { "start": 123, "end": 124, "ctxt": 0 }, "value": "A", "optional": false }, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 160, "end": 174, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 164, "end": 173, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 164, "end": 165, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 168, "end": 173, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 172, "end": 173, "ctxt": 0 }, "value": "B", "optional": false }, "arguments": null, "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 175, "end": 183, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 175, "end": 182, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 175, "end": 180, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 175, "end": 176, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 177, "end": 180, "ctxt": 0 }, "value": "foo", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 185, "end": 195, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 185, "end": 194, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 185, "end": 186, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, "right": { "type": "NewExpression", "span": { "start": 189, "end": 194, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 193, "end": 194, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": null, "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 241, "end": 249, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 241, "end": 248, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 241, "end": 246, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 241, "end": 242, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 243, "end": 246, "ctxt": 0 }, "value": "foo", "optional": false } }, "arguments": [], "typeArguments": null } } ], "interpreter": null }