{ "type": "Script", "span": { "start": 18, "end": 367, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 24, "end": 28, "ctxt": 0 }, "value": "Base", "optional": false }, "declare": false, "span": { "start": 18, "end": 175, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 35, "end": 55, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 45, "end": 46, "ctxt": 0 }, "value": "x", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 46, "end": 54, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 48, "end": 54, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": "protected", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 60, "end": 109, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 70, "end": 72, "ctxt": 0 }, "value": "fn", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 60, "end": 109, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 83, "end": 109, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 93, "end": 103, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 100, "end": 102, "ctxt": 0 }, "value": "", "raw": "''" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 74, "end": 82, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 76, "end": 82, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "protected", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 115, "end": 146, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 129, "end": 130, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 115, "end": 146, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 133, "end": 146, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 135, "end": 144, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 142, "end": 143, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": false, "accessibility": "protected", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 151, "end": 173, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 165, "end": 166, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 167, "end": 168, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 167, "end": 168, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 151, "end": 173, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 170, "end": 173, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "setter", "isStatic": false, "accessibility": "protected", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 207, "end": 214, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "span": { "start": 201, "end": 367, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 234, "end": 252, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 242, "end": 243, "ctxt": 0 }, "value": "x", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 243, "end": 251, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 245, "end": 251, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 258, "end": 305, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 266, "end": 268, "ctxt": 0 }, "value": "fn", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 258, "end": 305, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 279, "end": 305, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 289, "end": 299, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 296, "end": 298, "ctxt": 0 }, "value": "", "raw": "''" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 270, "end": 278, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 272, "end": 278, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 311, "end": 340, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 323, "end": 324, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 311, "end": 340, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 327, "end": 340, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 329, "end": 338, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 336, "end": 337, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 345, "end": 365, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 357, "end": 358, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 359, "end": 360, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 359, "end": 360, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 345, "end": 365, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 362, "end": 365, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "setter", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": { "type": "Identifier", "span": { "start": 223, "end": 227, "ctxt": 0 }, "value": "Base", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ], "interpreter": null }