{ "type": "Script", "span": { "start": 0, "end": 806, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 0, "end": 72, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 10, "end": 23, "ctxt": 0 }, "value": "BaseInterface", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 24, "end": 72, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 30, "end": 47, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 30, "end": 38, "ctxt": 0 }, "value": "required", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 38, "end": 46, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 40, "end": 46, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 52, "end": 70, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 52, "end": 60, "ctxt": 0 }, "value": "optional", "optional": false }, "computed": false, "optional": true, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 61, "end": 69, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 63, "end": 69, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 80, "end": 89, "ctxt": 0 }, "value": "BaseClass", "optional": false }, "declare": false, "span": { "start": 74, "end": 138, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 96, "end": 112, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 96, "end": 106, "ctxt": 0 }, "value": "baseMethod", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 96, "end": 112, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 109, "end": 112, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassProperty", "span": { "start": 117, "end": 136, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 117, "end": 127, "ctxt": 0 }, "value": "baseNumber", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 127, "end": 135, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 129, "end": 135, "ctxt": 0 }, "kind": "number" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "TsInterfaceDeclaration", "span": { "start": 140, "end": 205, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 150, "end": 155, "ctxt": 0 }, "value": "Child", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 164, "end": 177, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 164, "end": 177, "ctxt": 0 }, "value": "BaseInterface", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 178, "end": 205, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 184, "end": 203, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 184, "end": 194, "ctxt": 0 }, "value": "additional", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 194, "end": 202, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 196, "end": 202, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 213, "end": 218, "ctxt": 0 }, "value": "Child", "optional": false }, "declare": false, "span": { "start": 207, "end": 282, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 243, "end": 263, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 243, "end": 254, "ctxt": 0 }, "value": "classNumber", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 254, "end": 262, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 256, "end": 262, "ctxt": 0 }, "kind": "number" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 268, "end": 280, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 268, "end": 274, "ctxt": 0 }, "value": "method", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 268, "end": 280, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 277, "end": 280, "ctxt": 0 }, "stmts": [] }, "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": 227, "end": 236, "ctxt": 0 }, "value": "BaseClass", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "TsInterfaceDeclaration", "span": { "start": 284, "end": 361, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 294, "end": 310, "ctxt": 0 }, "value": "ChildNoBaseClass", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 319, "end": 332, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 319, "end": 332, "ctxt": 0 }, "value": "BaseInterface", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 333, "end": 361, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 339, "end": 359, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 339, "end": 350, "ctxt": 0 }, "value": "additional2", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 350, "end": 358, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 352, "end": 358, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 368, "end": 384, "ctxt": 0 }, "value": "ChildNoBaseClass", "optional": false }, "declare": false, "span": { "start": 362, "end": 431, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 391, "end": 411, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 391, "end": 402, "ctxt": 0 }, "value": "classString", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 402, "end": 410, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 404, "end": 410, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 416, "end": 429, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 416, "end": 423, "ctxt": 0 }, "value": "method2", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 416, "end": 429, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 426, "end": 429, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 438, "end": 448, "ctxt": 0 }, "value": "Grandchild", "optional": false }, "declare": false, "span": { "start": 432, "end": 477, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "Identifier", "span": { "start": 457, "end": 473, "ctxt": 0 }, "value": "ChildNoBaseClass", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 524, "end": 542, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 528, "end": 541, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 528, "end": 533, "ctxt": 0 }, "value": "child", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 534, "end": 541, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 536, "end": 541, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 536, "end": 541, "ctxt": 0 }, "value": "Child", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 543, "end": 558, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 543, "end": 557, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 543, "end": 548, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 549, "end": 557, "ctxt": 0 }, "value": "required", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 559, "end": 574, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 559, "end": 573, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 559, "end": 564, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 565, "end": 573, "ctxt": 0 }, "value": "optional", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 575, "end": 592, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 575, "end": 591, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 575, "end": 580, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 581, "end": 591, "ctxt": 0 }, "value": "additional", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 593, "end": 610, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 593, "end": 609, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 593, "end": 598, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 599, "end": 609, "ctxt": 0 }, "value": "baseNumber", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 611, "end": 629, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 611, "end": 628, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 611, "end": 616, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 617, "end": 628, "ctxt": 0 }, "value": "classNumber", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 630, "end": 649, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 630, "end": 648, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 630, "end": 646, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 630, "end": 635, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 636, "end": 646, "ctxt": 0 }, "value": "baseMethod", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 650, "end": 665, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 650, "end": 664, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 650, "end": 662, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 650, "end": 655, "ctxt": 0 }, "value": "child", "optional": false }, "property": { "type": "Identifier", "span": { "start": 656, "end": 662, "ctxt": 0 }, "value": "method", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 667, "end": 694, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 671, "end": 693, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 671, "end": 681, "ctxt": 0 }, "value": "grandchild", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 681, "end": 693, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 683, "end": 693, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 683, "end": 693, "ctxt": 0 }, "value": "Grandchild", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 695, "end": 715, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 695, "end": 714, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 695, "end": 705, "ctxt": 0 }, "value": "grandchild", "optional": false }, "property": { "type": "Identifier", "span": { "start": 706, "end": 714, "ctxt": 0 }, "value": "required", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 716, "end": 736, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 716, "end": 735, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 716, "end": 726, "ctxt": 0 }, "value": "grandchild", "optional": false }, "property": { "type": "Identifier", "span": { "start": 727, "end": 735, "ctxt": 0 }, "value": "optional", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 737, "end": 760, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 737, "end": 759, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 737, "end": 747, "ctxt": 0 }, "value": "grandchild", "optional": false }, "property": { "type": "Identifier", "span": { "start": 748, "end": 759, "ctxt": 0 }, "value": "additional2", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 761, "end": 784, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 761, "end": 783, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 761, "end": 771, "ctxt": 0 }, "value": "grandchild", "optional": false }, "property": { "type": "Identifier", "span": { "start": 772, "end": 783, "ctxt": 0 }, "value": "classString", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 785, "end": 806, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 785, "end": 805, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 785, "end": 803, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 785, "end": 795, "ctxt": 0 }, "value": "grandchild", "optional": false }, "property": { "type": "Identifier", "span": { "start": 796, "end": 803, "ctxt": 0 }, "value": "method2", "optional": false } }, "arguments": [], "typeArguments": null } } ], "interpreter": null }