{ "type": "Script", "span": { "start": 0, "end": 186, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 6, "end": 10, "ctxt": 0 }, "value": "Base", "optional": false }, "declare": false, "span": { "start": 0, "end": 93, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 17, "end": 36, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 17, "end": 20, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 17, "end": 36, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 23, "end": 36, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 25, "end": 34, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 32, "end": 33, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 41, "end": 91, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 48, "end": 54, "ctxt": 0 }, "value": "create", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 41, "end": 91, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 57, "end": 91, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 67, "end": 85, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 74, "end": 84, "ctxt": 0 }, "callee": { "type": "ThisExpression", "span": { "start": 78, "end": 82, "ctxt": 0 } }, "arguments": [], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 101, "end": 108, "ctxt": 0 }, "value": "Derived", "optional": false }, "declare": false, "span": { "start": 95, "end": 149, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 128, "end": 147, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 128, "end": 131, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 128, "end": 147, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 134, "end": 147, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 136, "end": 145, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 143, "end": 144, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ] }, "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": 117, "end": 121, "ctxt": 0 }, "value": "Base", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 150, "end": 175, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 154, "end": 174, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 154, "end": 155, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 158, "end": 174, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 158, "end": 172, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 158, "end": 165, "ctxt": 0 }, "value": "Derived", "optional": false }, "property": { "type": "Identifier", "span": { "start": 166, "end": 172, "ctxt": 0 }, "value": "create", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 178, "end": 186, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 178, "end": 185, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 178, "end": 183, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 178, "end": 179, "ctxt": 0 }, "value": "d", "optional": false }, "property": { "type": "Identifier", "span": { "start": 180, "end": 183, "ctxt": 0 }, "value": "foo", "optional": false } }, "arguments": [], "typeArguments": null } } ], "interpreter": null }