{ "type": "Script", "span": { "start": 1, "end": 601, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 7, "end": 11, "ctxt": 0 }, "value": "Base", "optional": false }, "declare": false, "span": { "start": 1, "end": 174, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 18, "end": 42, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 32, "end": 33, "ctxt": 0 }, "value": "x", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33, "end": 41, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 35, "end": 41, "ctxt": 0 }, "kind": "string" } }, "isStatic": true, "decorators": [], "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 47, "end": 100, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 61, "end": 63, "ctxt": 0 }, "value": "fn", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 47, "end": 100, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 74, "end": 100, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 84, "end": 94, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 91, "end": 93, "ctxt": 0 }, "value": "", "raw": "''" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 65, "end": 73, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 67, "end": 73, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": true, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 106, "end": 141, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 124, "end": 125, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 106, "end": 141, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 128, "end": 141, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 130, "end": 139, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 137, "end": 138, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": true, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 146, "end": 172, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 164, "end": 165, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 166, "end": 167, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 166, "end": 167, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 146, "end": 172, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 169, "end": 172, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "setter", "isStatic": true, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 215, "end": 222, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "span": { "start": 209, "end": 403, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 242, "end": 267, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 257, "end": 258, "ctxt": 0 }, "value": "x", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 258, "end": 266, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 260, "end": 266, "ctxt": 0 }, "kind": "string" } }, "isStatic": true, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 273, "end": 327, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 288, "end": 290, "ctxt": 0 }, "value": "fn", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 273, "end": 327, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 301, "end": 327, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 311, "end": 321, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 318, "end": 320, "ctxt": 0 }, "value": "", "raw": "''" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 292, "end": 300, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 294, "end": 300, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": true, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 333, "end": 369, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 352, "end": 353, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 333, "end": 369, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 356, "end": 369, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 358, "end": 367, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 365, "end": 366, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": true, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 374, "end": 401, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 393, "end": 394, "ctxt": 0 }, "value": "a", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 395, "end": 396, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 395, "end": 396, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 374, "end": 401, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 398, "end": 401, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "setter", "isStatic": true, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": { "type": "Identifier", "span": { "start": 231, "end": 235, "ctxt": 0 }, "value": "Base", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 405, "end": 420, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 409, "end": 419, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 409, "end": 410, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 413, "end": 419, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 413, "end": 417, "ctxt": 0 }, "value": "Base", "optional": false }, "property": { "type": "Identifier", "span": { "start": 418, "end": 419, "ctxt": 0 }, "value": "x", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 427, "end": 446, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 431, "end": 445, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 431, "end": 433, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 436, "end": 445, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 436, "end": 443, "ctxt": 0 }, "value": "Derived", "optional": false }, "property": { "type": "Identifier", "span": { "start": 444, "end": 445, "ctxt": 0 }, "value": "x", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 457, "end": 476, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 461, "end": 475, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 461, "end": 463, "ctxt": 0 }, "value": "r3", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 466, "end": 475, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 466, "end": 473, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 466, "end": 470, "ctxt": 0 }, "value": "Base", "optional": false }, "property": { "type": "Identifier", "span": { "start": 471, "end": 473, "ctxt": 0 }, "value": "fn", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 483, "end": 505, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 487, "end": 504, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 487, "end": 489, "ctxt": 0 }, "value": "r4", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 492, "end": 504, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 492, "end": 502, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 492, "end": 499, "ctxt": 0 }, "value": "Derived", "optional": false }, "property": { "type": "Identifier", "span": { "start": 500, "end": 502, "ctxt": 0 }, "value": "fn", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 516, "end": 532, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 520, "end": 531, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 520, "end": 522, "ctxt": 0 }, "value": "r5", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 525, "end": 531, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 525, "end": 529, "ctxt": 0 }, "value": "Base", "optional": false }, "property": { "type": "Identifier", "span": { "start": 530, "end": 531, "ctxt": 0 }, "value": "a", "optional": false } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 539, "end": 550, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 539, "end": 549, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 539, "end": 545, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 539, "end": 543, "ctxt": 0 }, "value": "Base", "optional": false }, "property": { "type": "Identifier", "span": { "start": 544, "end": 545, "ctxt": 0 }, "value": "a", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 548, "end": 549, "ctxt": 0 }, "value": 2.0, "raw": "2" } } }, { "type": "VariableDeclaration", "span": { "start": 558, "end": 577, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 562, "end": 576, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 562, "end": 564, "ctxt": 0 }, "value": "r6", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 567, "end": 576, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 567, "end": 574, "ctxt": 0 }, "value": "Derived", "optional": false }, "property": { "type": "Identifier", "span": { "start": 575, "end": 576, "ctxt": 0 }, "value": "a", "optional": false } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 587, "end": 601, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 587, "end": 600, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 587, "end": 596, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 587, "end": 594, "ctxt": 0 }, "value": "Derived", "optional": false }, "property": { "type": "Identifier", "span": { "start": 595, "end": 596, "ctxt": 0 }, "value": "a", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 599, "end": 600, "ctxt": 0 }, "value": 2.0, "raw": "2" } } } ], "interpreter": null }