{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Base", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 11 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 20, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "prop", "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 16 } } }, "value": { "type": "NumberLiteral", "value": 100, "loc": { "start": { "line": 18, "column": 19 }, "end": { "line": 18, "column": 22 } } }, "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 22 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "test2", "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 17 } } }, "kind": "method", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 23 } } }, "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 23 } } }, "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 23 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 23 } } } ], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 20, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 20, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 8 } } }, "superClass": { "type": "Identifier", "name": "Base", "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 21 } } }, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "RestElement", "argument": { "type": "Identifier", "name": "args", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Super", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "SpreadElement", "argument": { "type": "Identifier", "name": "args", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 25, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "childTest1", "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 22 } } }, "value": { "type": "MemberExpression", "object": { "type": "Super", "loc": { "start": { "line": 23, "column": 25 }, "end": { "line": 23, "column": 30 } } }, "property": { "type": "Identifier", "name": "prop", "loc": { "start": { "line": 23, "column": 31 }, "end": { "line": 23, "column": 35 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 23, "column": 25 }, "end": { "line": 23, "column": 35 } } }, "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 35 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "childTest2", "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 22 } } }, "value": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Super", "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 30 } } }, "property": { "type": "Identifier", "name": "test2", "loc": { "start": { "line": 24, "column": 31 }, "end": { "line": 24, "column": 36 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 36 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 38 } } }, "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "decorators": [], "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 24, "column": 38 } } } ], "indexSignatures": [], "loc": { "start": { "line": 22, "column": 22 }, "end": { "line": 25, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 25, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 26, "column": 1 } } }