{ "type": "Script", "span": { "start": 54, "end": 265, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 60, "end": 64, "ctxt": 0 }, "value": "Base", "optional": false }, "declare": false, "span": { "start": 54, "end": 149, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 69, "end": 90, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 73, "end": 74, "ctxt": 0 }, "value": "x", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 69, "end": 90, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 77, "end": 90, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 79, "end": 88, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 86, "end": 87, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 93, "end": 147, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 97, "end": 98, "ctxt": 0 }, "value": "x", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 99, "end": 104, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 99, "end": 104, "ctxt": 0 }, "value": "value", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 93, "end": 147, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 106, "end": 147, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 108, "end": 145, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 108, "end": 144, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 108, "end": 119, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 108, "end": 115, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 116, "end": 119, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "TemplateLiteral", "span": { "start": 120, "end": 143, "ctxt": 0 }, "expressions": [ { "type": "Identifier", "span": { "start": 136, "end": 141, "ctxt": 0 }, "value": "value", "optional": false } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 121, "end": 134, "ctxt": 0 }, "tail": false, "cooked": "x was set to ", "raw": "x was set to " }, { "type": "TemplateElement", "span": { "start": 142, "end": 142, "ctxt": 0 }, "tail": true, "cooked": "", "raw": "" } ] } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "setter", "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": 157, "end": 164, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "span": { "start": 151, "end": 190, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 182, "end": 188, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 182, "end": 183, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 186, "end": 187, "ctxt": 0 }, "value": 1.0, "raw": "1" }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": { "type": "Identifier", "span": { "start": 173, "end": 177, "ctxt": 0 }, "value": "Base", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 192, "end": 218, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 198, "end": 217, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 198, "end": 201, "ctxt": 0 }, "value": "obj", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 204, "end": 217, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 208, "end": 215, "ctxt": 0 }, "value": "Derived", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 246, "end": 265, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 246, "end": 264, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 246, "end": 257, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 246, "end": 253, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 254, "end": 257, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 258, "end": 263, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 258, "end": 261, "ctxt": 0 }, "value": "obj", "optional": false }, "property": { "type": "Identifier", "span": { "start": 262, "end": 263, "ctxt": 0 }, "value": "x", "optional": false } } } ], "typeArguments": null } } ], "interpreter": null }