{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Parent", "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 13 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 16 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "name", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 21 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 13 } } }, "property": { "type": "Identifier", "name": "name", "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 18 } } }, "right": { "type": "Identifier", "name": "name", "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 25 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 25 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 26 } } } ], "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 19, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 20, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 20, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Child", "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 12 } } }, "superClass": { "type": "Identifier", "name": "Parent", "loc": { "start": { "line": 22, "column": 21 }, "end": { "line": 22, "column": 27 } } }, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 16 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "name", "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 21 } } }, { "type": "Identifier", "name": "age", "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 26 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "v1", "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 15 } } }, "init": { "type": "NumberLiteral", "value": 10, "loc": { "start": { "line": 24, "column": 18 }, "end": { "line": 24, "column": 20 } } }, "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 20 } } } ], "kind": "let", "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 21 } } }, { "type": "ForUpdateStatement", "init": { "type": "CallExpression", "callee": { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Super", "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 18 } } }, "arguments": [ { "type": "Identifier", "name": "name", "loc": { "start": { "line": 26, "column": 19 }, "end": { "line": 26, "column": 23 } } } ], "optional": false, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 24 } } }, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 25 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 17 } } }, "property": { "type": "Identifier", "name": "age", "loc": { "start": { "line": 27, "column": 18 }, "end": { "line": 27, "column": 21 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 21 } } }, "right": { "type": "Identifier", "name": "age", "loc": { "start": { "line": 27, "column": 24 }, "end": { "line": 27, "column": 27 } } }, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 27 } } }, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 28 } } } ], "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 28, "column": 14 } } }, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 28, "column": 14 } } }, "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 28, "column": 15 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 28, "column": 17 } } }, "test": { "type": "UpdateExpression", "operator": "--", "prefix": false, "argument": { "type": "Identifier", "name": "v1", "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 15 } } }, "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 17 } } }, "update": null, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 31, "column": 10 } } }, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 31, "column": 10 } } } ], "loc": { "start": { "line": 23, "column": 28 }, "end": { "line": 32, "column": 6 } } }, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 32, "column": 6 } } }, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 32, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 32, "column": 6 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 22, "column": 28 }, "end": { "line": 33, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 33, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 34, "column": 1 } } }