{ "type": "File", "start": 0, "end": 124, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 0 } }, "errors": [], "program": { "type": "Program", "start": 0, "end": 124, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 0 } }, "sourceType": "script", "interpreter": null, "body": [ { "type": "VariableDeclaration", "start": 0, "end": 123, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 6, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4, "end": 122, "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 6, "column": 1 } }, "id": { "type": "Identifier", "start": 4, "end": 13, "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 13 }, "identifierName": "Rectangle" }, "name": "Rectangle" }, "init": { "type": "ClassExpression", "start": 16, "end": 122, "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 6, "column": 1 } }, "id": null, "superClass": null, "body": { "type": "ClassBody", "start": 22, "end": 122, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 6, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 28, "end": 120, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 5, "column": 5 } }, "static": false, "key": { "type": "Identifier", "start": 28, "end": 39, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "computed": false, "kind": "constructor", "id": null, "generator": false, "async": false, "params": [ { "type": "Identifier", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 22 }, "identifierName": "height" }, "name": "height" }, { "type": "Identifier", "start": 48, "end": 53, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 29 }, "identifierName": "width" }, "name": "width" } ], "body": { "type": "BlockStatement", "start": 55, "end": 120, "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 5, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 65, "end": 86, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 65, "end": 85, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 65, "end": 76, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 19 } }, "object": { "type": "ThisExpression", "start": 65, "end": 69, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 12 } } }, "computed": false, "property": { "type": "Identifier", "start": 70, "end": 76, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 19 }, "identifierName": "height" }, "name": "height" } }, "right": { "type": "Identifier", "start": 79, "end": 85, "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 3, "column": 28 }, "identifierName": "height" }, "name": "height" } } }, { "type": "ExpressionStatement", "start": 95, "end": 114, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 27 } }, "expression": { "type": "AssignmentExpression", "start": 95, "end": 113, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 95, "end": 105, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 18 } }, "object": { "type": "ThisExpression", "start": 95, "end": 99, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 12 } } }, "computed": false, "property": { "type": "Identifier", "start": 100, "end": 105, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 18 }, "identifierName": "width" }, "name": "width" } }, "right": { "type": "Identifier", "start": 108, "end": 113, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 26 }, "identifierName": "width" }, "name": "width" } } } ], "directives": [] } } ] } } } ], "kind": "let" } ], "directives": [] }, "comments": [] }