{ "type": "Script", "span": { "start": 1, "end": 363, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 7, "end": 9, "ctxt": 0 }, "value": "C1", "optional": false }, "declare": false, "span": { "start": 1, "end": 52, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 16, "end": 50, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 16, "end": 27, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "TsParameterProperty", "span": { "start": 28, "end": 45, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 35, "end": 45, "ctxt": 0 }, "value": "x", "optional": true, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 37, "end": 45, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 39, "end": 45, "ctxt": 0 }, "kind": "number" } } } } ], "body": { "type": "BlockStatement", "span": { "start": 47, "end": 50, "ctxt": 0 }, "stmts": [] }, "accessibility": null, "isOptional": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 53, "end": 64, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 57, "end": 63, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 57, "end": 59, "ctxt": 0 }, "value": "c1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 59, "end": 63, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 61, "end": 63, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 61, "end": 63, "ctxt": 0 }, "value": "C1", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 65, "end": 69, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 65, "end": 69, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 65, "end": 67, "ctxt": 0 }, "value": "c1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 68, "end": 69, "ctxt": 0 }, "value": "x", "optional": false } } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 84, "end": 86, "ctxt": 0 }, "value": "C2", "optional": false }, "declare": false, "span": { "start": 78, "end": 130, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 93, "end": 128, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 93, "end": 104, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "TsParameterProperty", "span": { "start": 105, "end": 123, "ctxt": 0 }, "decorators": [], "accessibility": "private", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 113, "end": 123, "ctxt": 0 }, "value": "p", "optional": true, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 115, "end": 123, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 117, "end": 123, "ctxt": 0 }, "kind": "number" } } } } ], "body": { "type": "BlockStatement", "span": { "start": 125, "end": 128, "ctxt": 0 }, "stmts": [] }, "accessibility": null, "isOptional": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 131, "end": 142, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 135, "end": 141, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 135, "end": 137, "ctxt": 0 }, "value": "c2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 137, "end": 141, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 139, "end": 141, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 139, "end": 141, "ctxt": 0 }, "value": "C2", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 143, "end": 147, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 143, "end": 147, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 143, "end": 145, "ctxt": 0 }, "value": "c2", "optional": false }, "property": { "type": "Identifier", "span": { "start": 146, "end": 147, "ctxt": 0 }, "value": "p", "optional": false } } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 174, "end": 176, "ctxt": 0 }, "value": "C3", "optional": false }, "declare": false, "span": { "start": 168, "end": 222, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 183, "end": 220, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 183, "end": 194, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "TsParameterProperty", "span": { "start": 195, "end": 215, "ctxt": 0 }, "decorators": [], "accessibility": "protected", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 205, "end": 215, "ctxt": 0 }, "value": "p", "optional": true, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 207, "end": 215, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 209, "end": 215, "ctxt": 0 }, "kind": "number" } } } } ], "body": { "type": "BlockStatement", "span": { "start": 217, "end": 220, "ctxt": 0 }, "stmts": [] }, "accessibility": null, "isOptional": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 223, "end": 234, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 227, "end": 233, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 227, "end": 229, "ctxt": 0 }, "value": "c3", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 229, "end": 233, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 231, "end": 233, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 231, "end": 233, "ctxt": 0 }, "value": "C3", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 235, "end": 239, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 235, "end": 239, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 235, "end": 237, "ctxt": 0 }, "value": "c3", "optional": false }, "property": { "type": "Identifier", "span": { "start": 238, "end": 239, "ctxt": 0 }, "value": "p", "optional": false } } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 266, "end": 273, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "span": { "start": 260, "end": 363, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 291, "end": 361, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 291, "end": 302, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 303, "end": 312, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 303, "end": 312, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 304, "end": 312, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 306, "end": 312, "ctxt": 0 }, "kind": "number" } } } } ], "body": { "type": "BlockStatement", "span": { "start": 314, "end": 361, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 324, "end": 333, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 324, "end": 332, "ctxt": 0 }, "callee": { "type": "Super", "span": { "start": 324, "end": 329, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 330, "end": 331, "ctxt": 0 }, "value": "p", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 342, "end": 349, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 342, "end": 348, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 342, "end": 346, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 347, "end": 348, "ctxt": 0 }, "value": "p", "optional": false } } } ] }, "accessibility": null, "isOptional": false } ], "superClass": { "type": "Identifier", "span": { "start": 282, "end": 284, "ctxt": 0 }, "value": "C3", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ], "interpreter": null }