{ "type": "File", "start": 0, "end": 9360, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 260, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 9360, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 260, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 47 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 } }, "imported": { "type": "Identifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 }, "identifierName": "createLogger" }, "name": "createLogger" }, "local": { "type": "Identifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 }, "identifierName": "createLogger" }, "name": "createLogger" } } ], "source": { "type": "StringLiteral", "start": 29, "end": 46, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 46 } }, "extra": { "rawValue": "../core/logging", "raw": "\"../core/logging\"" }, "value": "../core/logging" } }, { "type": "ImportDeclaration", "start": 49, "end": 117, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 68 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 58, "end": 81, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 32 } }, "imported": { "type": "Identifier", "start": 58, "end": 81, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 32 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" }, "local": { "type": "Identifier", "start": 58, "end": 81, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 32 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" } } ], "source": { "type": "StringLiteral", "start": 89, "end": 116, "loc": { "start": { "line": 2, "column": 40 }, "end": { "line": 2, "column": 67 } }, "extra": { "rawValue": "../savegame/serialization", "raw": "\"../savegame/serialization\"" }, "value": "../savegame/serialization" } }, { "type": "ImportDeclaration", "start": 119, "end": 157, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 128, "end": 138, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 19 } }, "imported": { "type": "Identifier", "start": 128, "end": 138, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 19 }, "identifierName": "enumColors" }, "name": "enumColors" }, "local": { "type": "Identifier", "start": 128, "end": 138, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 19 }, "identifierName": "enumColors" }, "name": "enumColors" } } ], "source": { "type": "StringLiteral", "start": 146, "end": 156, "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 37 } }, "extra": { "rawValue": "./colors", "raw": "\"./colors\"" }, "value": "./colors" } }, { "type": "ImportDeclaration", "start": 159, "end": 206, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 47 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 168, "end": 177, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 } }, "imported": { "type": "Identifier", "start": 168, "end": 177, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 }, "identifierName": "ShapeItem" }, "name": "ShapeItem" }, "local": { "type": "Identifier", "start": 168, "end": 177, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 }, "identifierName": "ShapeItem" }, "name": "ShapeItem" } } ], "source": { "type": "StringLiteral", "start": 185, "end": 205, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 46 } }, "extra": { "rawValue": "./items/shape_item", "raw": "\"./items/shape_item\"" }, "value": "./items/shape_item" } }, { "type": "ImportDeclaration", "start": 208, "end": 242, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 34 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 217, "end": 225, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 17 } }, "imported": { "type": "Identifier", "start": 217, "end": 225, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 17 }, "identifierName": "GameRoot" }, "name": "GameRoot" }, "local": { "type": "Identifier", "start": 217, "end": 225, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 17 }, "identifierName": "GameRoot" }, "name": "GameRoot" } } ], "source": { "type": "StringLiteral", "start": 233, "end": 241, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 33 } }, "extra": { "rawValue": "./root", "raw": "\"./root\"" }, "value": "./root" } }, { "type": "ImportDeclaration", "start": 244, "end": 311, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 67 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 } }, "imported": { "type": "Identifier", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "local": { "type": "Identifier", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" } }, { "type": "ImportSpecifier", "start": 267, "end": 282, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 38 } }, "imported": { "type": "Identifier", "start": 267, "end": 282, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 38 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "local": { "type": "Identifier", "start": 267, "end": 282, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 38 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" } } ], "source": { "type": "StringLiteral", "start": 290, "end": 310, "loc": { "start": { "line": 6, "column": 46 }, "end": { "line": 6, "column": 66 } }, "extra": { "rawValue": "./shape_definition", "raw": "\"./shape_definition\"" }, "value": "./shape_definition" } }, { "type": "VariableDeclaration", "start": 315, "end": 371, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 321, "end": 370, "loc": { "start": { "line": 8, "column": 6 }, "end": { "line": 8, "column": 55 } }, "id": { "type": "Identifier", "start": 321, "end": 327, "loc": { "start": { "line": 8, "column": 6 }, "end": { "line": 8, "column": 12 }, "identifierName": "logger" }, "name": "logger" }, "init": { "type": "CallExpression", "start": 330, "end": 370, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 55 } }, "callee": { "type": "Identifier", "start": 330, "end": 342, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 27 }, "identifierName": "createLogger" }, "name": "createLogger" }, "arguments": [ { "type": "StringLiteral", "start": 343, "end": 369, "loc": { "start": { "line": 8, "column": 28 }, "end": { "line": 8, "column": 54 } }, "extra": { "rawValue": "shape_definition_manager", "raw": "\"shape_definition_manager\"" }, "value": "shape_definition_manager" } ] } } ], "kind": "const" }, { "type": "ExportNamedDeclaration", "start": 375, "end": 9358, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 259, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 382, "end": 9358, "loc": { "start": { "line": 10, "column": 7 }, "end": { "line": 259, "column": 1 } }, "id": { "type": "Identifier", "start": 388, "end": 410, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 35 }, "identifierName": "ShapeDefinitionManager" }, "name": "ShapeDefinitionManager" }, "superClass": { "type": "Identifier", "start": 419, "end": 442, "loc": { "start": { "line": 10, "column": 44 }, "end": { "line": 10, "column": 67 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" }, "body": { "type": "ClassBody", "start": 443, "end": 9358, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 259, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 450, "end": 515, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 13, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 457, "end": 462, "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 16 }, "identifierName": "getId" }, "name": "getId" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 465, "end": 515, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 13, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 476, "end": 508, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 40 } }, "argument": { "type": "StringLiteral", "start": 483, "end": 507, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 39 } }, "extra": { "rawValue": "ShapeDefinitionManager", "raw": "\"ShapeDefinitionManager\"" }, "value": "ShapeDefinitionManager" } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 523, "end": 574, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 18, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 580, "end": 1113, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 37, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 580, "end": 591, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 15 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 592, "end": 596, "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 20 }, "identifierName": "root" }, "name": "root" } ], "body": { "type": "BlockStatement", "start": 598, "end": 1113, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 37, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 609, "end": 617, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 16 } }, "expression": { "type": "CallExpression", "start": 609, "end": 616, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 15 } }, "callee": { "type": "Super", "start": 609, "end": 614, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 627, "end": 644, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 627, "end": 643, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 627, "end": 636, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 17 } }, "object": { "type": "ThisExpression", "start": 627, "end": 631, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } } }, "property": { "type": "Identifier", "start": 632, "end": 636, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 17 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "right": { "type": "Identifier", "start": 639, "end": 643, "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 24 }, "identifierName": "root" }, "name": "root" } }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> definition\r\n * @type {Object}\r\n ", "start": 656, "end": 773, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 26, "column": 11 } } } ] }, { "type": "ExpressionStatement", "start": 783, "end": 814, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 783, "end": 813, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 783, "end": 808, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 33 } }, "object": { "type": "ThisExpression", "start": 783, "end": 787, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 788, "end": 808, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 33 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false, "leadingComments": null }, "right": { "type": "ObjectExpression", "start": 811, "end": 813, "loc": { "start": { "line": 27, "column": 36 }, "end": { "line": 27, "column": 38 } }, "properties": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> definition\r\n * @type {Object}\r\n ", "start": 656, "end": 773, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 26, "column": 11 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> item\r\n ", "start": 826, "end": 885, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 31, "column": 11 } } } ] }, { "type": "ExpressionStatement", "start": 895, "end": 920, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 895, "end": 919, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 895, "end": 914, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 27 } }, "object": { "type": "ThisExpression", "start": 895, "end": 899, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 900, "end": 914, "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 27 }, "identifierName": "shapeKeyToItem" }, "name": "shapeKeyToItem" }, "computed": false, "leadingComments": null }, "right": { "type": "ObjectExpression", "start": 917, "end": 919, "loc": { "start": { "line": 32, "column": 30 }, "end": { "line": 32, "column": 32 } }, "properties": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> item\r\n ", "start": 826, "end": 885, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 31, "column": 11 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Caches operations in the form of 'operation/def1[/def2]'", "start": 932, "end": 991, "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 34, "column": 67 } } }, { "type": "CommentBlock", "value": "* @type {Object.|ShapeDefinition>} ", "start": 1001, "end": 1071, "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 78 } } } ] }, { "type": "ExpressionStatement", "start": 1081, "end": 1106, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 1081, "end": 1105, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1081, "end": 1100, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 27 } }, "object": { "type": "ThisExpression", "start": 1081, "end": 1085, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 1086, "end": 1100, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 27 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "right": { "type": "ObjectExpression", "start": 1103, "end": 1105, "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 32 } }, "properties": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Caches operations in the form of 'operation/def1[/def2]'", "start": 932, "end": 991, "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 34, "column": 67 } } }, { "type": "CommentBlock", "value": "* @type {Object.|ShapeDefinition>} ", "start": 1001, "end": 1071, "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 78 } } } ] } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 523, "end": 574, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 18, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a shape instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeDefinition}\r\n ", "start": 1121, "end": 1253, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 43, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 1259, "end": 1501, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 50, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1259, "end": 1279, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 24 }, "identifierName": "getShapeFromShortKey" }, "name": "getShapeFromShortKey", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1280, "end": 1284, "loc": { "start": { "line": 44, "column": 25 }, "end": { "line": 44, "column": 29 }, "identifierName": "hash" }, "name": "hash" } ], "body": { "type": "BlockStatement", "start": 1286, "end": 1501, "loc": { "start": { "line": 44, "column": 31 }, "end": { "line": 50, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 1297, "end": 1344, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 55 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1303, "end": 1343, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 54 } }, "id": { "type": "Identifier", "start": 1303, "end": 1309, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 20 }, "identifierName": "cached" }, "name": "cached" }, "init": { "type": "MemberExpression", "start": 1312, "end": 1343, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 54 } }, "object": { "type": "MemberExpression", "start": 1312, "end": 1337, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 48 } }, "object": { "type": "ThisExpression", "start": 1312, "end": 1316, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 27 } } }, "property": { "type": "Identifier", "start": 1317, "end": 1337, "loc": { "start": { "line": 45, "column": 28 }, "end": { "line": 45, "column": 48 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 1338, "end": 1342, "loc": { "start": { "line": 45, "column": 49 }, "end": { "line": 45, "column": 53 }, "identifierName": "hash" }, "name": "hash" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 1354, "end": 1406, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 48, "column": 9 } }, "test": { "type": "Identifier", "start": 1358, "end": 1364, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 18 }, "identifierName": "cached" }, "name": "cached" }, "consequent": { "type": "BlockStatement", "start": 1366, "end": 1406, "loc": { "start": { "line": 46, "column": 20 }, "end": { "line": 48, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 1381, "end": 1395, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 26 } }, "argument": { "type": "Identifier", "start": 1388, "end": 1394, "loc": { "start": { "line": 47, "column": 19 }, "end": { "line": 47, "column": 25 }, "identifierName": "cached" }, "name": "cached" } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 1416, "end": 1494, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 86 } }, "argument": { "type": "AssignmentExpression", "start": 1424, "end": 1492, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 84 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1424, "end": 1455, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 47 } }, "object": { "type": "MemberExpression", "start": 1424, "end": 1449, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 41 } }, "object": { "type": "ThisExpression", "start": 1424, "end": 1428, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 20 } } }, "property": { "type": "Identifier", "start": 1429, "end": 1449, "loc": { "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 41 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 1450, "end": 1454, "loc": { "start": { "line": 49, "column": 42 }, "end": { "line": 49, "column": 46 }, "identifierName": "hash" }, "name": "hash" }, "computed": true }, "right": { "type": "CallExpression", "start": 1458, "end": 1492, "loc": { "start": { "line": 49, "column": 50 }, "end": { "line": 49, "column": 84 } }, "callee": { "type": "MemberExpression", "start": 1458, "end": 1486, "loc": { "start": { "line": 49, "column": 50 }, "end": { "line": 49, "column": 78 } }, "object": { "type": "Identifier", "start": 1458, "end": 1473, "loc": { "start": { "line": 49, "column": 50 }, "end": { "line": 49, "column": 65 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "property": { "type": "Identifier", "start": 1474, "end": 1486, "loc": { "start": { "line": 49, "column": 66 }, "end": { "line": 49, "column": 78 }, "identifierName": "fromShortKey" }, "name": "fromShortKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1487, "end": 1491, "loc": { "start": { "line": 49, "column": 79 }, "end": { "line": 49, "column": 83 }, "identifierName": "hash" }, "name": "hash" } ] }, "extra": { "parenthesized": true, "parenStart": 1423 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a shape instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeDefinition}\r\n ", "start": 1121, "end": 1253, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 43, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a item instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeItem}\r\n ", "start": 1509, "end": 1634, "loc": { "start": { "line": 52, "column": 4 }, "end": { "line": 56, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 1640, "end": 1926, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 64, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1640, "end": 1664, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 28 }, "identifierName": "getShapeItemFromShortKey" }, "name": "getShapeItemFromShortKey", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1665, "end": 1669, "loc": { "start": { "line": 57, "column": 29 }, "end": { "line": 57, "column": 33 }, "identifierName": "hash" }, "name": "hash" } ], "body": { "type": "BlockStatement", "start": 1671, "end": 1926, "loc": { "start": { "line": 57, "column": 35 }, "end": { "line": 64, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 1682, "end": 1723, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 49 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1688, "end": 1722, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 48 } }, "id": { "type": "Identifier", "start": 1688, "end": 1694, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 20 }, "identifierName": "cached" }, "name": "cached" }, "init": { "type": "MemberExpression", "start": 1697, "end": 1722, "loc": { "start": { "line": 58, "column": 23 }, "end": { "line": 58, "column": 48 } }, "object": { "type": "MemberExpression", "start": 1697, "end": 1716, "loc": { "start": { "line": 58, "column": 23 }, "end": { "line": 58, "column": 42 } }, "object": { "type": "ThisExpression", "start": 1697, "end": 1701, "loc": { "start": { "line": 58, "column": 23 }, "end": { "line": 58, "column": 27 } } }, "property": { "type": "Identifier", "start": 1702, "end": 1716, "loc": { "start": { "line": 58, "column": 28 }, "end": { "line": 58, "column": 42 }, "identifierName": "shapeKeyToItem" }, "name": "shapeKeyToItem" }, "computed": false }, "property": { "type": "Identifier", "start": 1717, "end": 1721, "loc": { "start": { "line": 58, "column": 43 }, "end": { "line": 58, "column": 47 }, "identifierName": "hash" }, "name": "hash" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 1733, "end": 1785, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 61, "column": 9 } }, "test": { "type": "Identifier", "start": 1737, "end": 1743, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 59, "column": 18 }, "identifierName": "cached" }, "name": "cached" }, "consequent": { "type": "BlockStatement", "start": 1745, "end": 1785, "loc": { "start": { "line": 59, "column": 20 }, "end": { "line": 61, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 1760, "end": 1774, "loc": { "start": { "line": 60, "column": 12 }, "end": { "line": 60, "column": 26 } }, "argument": { "type": "Identifier", "start": 1767, "end": 1773, "loc": { "start": { "line": 60, "column": 19 }, "end": { "line": 60, "column": 25 }, "identifierName": "cached" }, "name": "cached" } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 1795, "end": 1846, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 59 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1801, "end": 1845, "loc": { "start": { "line": 62, "column": 14 }, "end": { "line": 62, "column": 58 } }, "id": { "type": "Identifier", "start": 1801, "end": 1811, "loc": { "start": { "line": 62, "column": 14 }, "end": { "line": 62, "column": 24 }, "identifierName": "definition" }, "name": "definition" }, "init": { "type": "CallExpression", "start": 1814, "end": 1845, "loc": { "start": { "line": 62, "column": 27 }, "end": { "line": 62, "column": 58 } }, "callee": { "type": "MemberExpression", "start": 1814, "end": 1839, "loc": { "start": { "line": 62, "column": 27 }, "end": { "line": 62, "column": 52 } }, "object": { "type": "ThisExpression", "start": 1814, "end": 1818, "loc": { "start": { "line": 62, "column": 27 }, "end": { "line": 62, "column": 31 } } }, "property": { "type": "Identifier", "start": 1819, "end": 1839, "loc": { "start": { "line": 62, "column": 32 }, "end": { "line": 62, "column": 52 }, "identifierName": "getShapeFromShortKey" }, "name": "getShapeFromShortKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1840, "end": 1844, "loc": { "start": { "line": 62, "column": 53 }, "end": { "line": 62, "column": 57 }, "identifierName": "hash" }, "name": "hash" } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 1856, "end": 1919, "loc": { "start": { "line": 63, "column": 8 }, "end": { "line": 63, "column": 71 } }, "argument": { "type": "AssignmentExpression", "start": 1864, "end": 1917, "loc": { "start": { "line": 63, "column": 16 }, "end": { "line": 63, "column": 69 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1864, "end": 1889, "loc": { "start": { "line": 63, "column": 16 }, "end": { "line": 63, "column": 41 } }, "object": { "type": "MemberExpression", "start": 1864, "end": 1883, "loc": { "start": { "line": 63, "column": 16 }, "end": { "line": 63, "column": 35 } }, "object": { "type": "ThisExpression", "start": 1864, "end": 1868, "loc": { "start": { "line": 63, "column": 16 }, "end": { "line": 63, "column": 20 } } }, "property": { "type": "Identifier", "start": 1869, "end": 1883, "loc": { "start": { "line": 63, "column": 21 }, "end": { "line": 63, "column": 35 }, "identifierName": "shapeKeyToItem" }, "name": "shapeKeyToItem" }, "computed": false }, "property": { "type": "Identifier", "start": 1884, "end": 1888, "loc": { "start": { "line": 63, "column": 36 }, "end": { "line": 63, "column": 40 }, "identifierName": "hash" }, "name": "hash" }, "computed": true }, "right": { "type": "NewExpression", "start": 1892, "end": 1917, "loc": { "start": { "line": 63, "column": 44 }, "end": { "line": 63, "column": 69 } }, "callee": { "type": "Identifier", "start": 1896, "end": 1905, "loc": { "start": { "line": 63, "column": 48 }, "end": { "line": 63, "column": 57 }, "identifierName": "ShapeItem" }, "name": "ShapeItem" }, "arguments": [ { "type": "Identifier", "start": 1906, "end": 1916, "loc": { "start": { "line": 63, "column": 58 }, "end": { "line": 63, "column": 68 }, "identifierName": "definition" }, "name": "definition" } ] }, "extra": { "parenthesized": true, "parenStart": 1863 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a item instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeItem}\r\n ", "start": 1509, "end": 1634, "loc": { "start": { "line": 52, "column": 4 }, "end": { "line": 56, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a shape item for a given definition\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeItem}\r\n ", "start": 1934, "end": 2071, "loc": { "start": { "line": 66, "column": 4 }, "end": { "line": 70, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2077, "end": 2193, "loc": { "start": { "line": 71, "column": 4 }, "end": { "line": 73, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2077, "end": 2103, "loc": { "start": { "line": 71, "column": 4 }, "end": { "line": 71, "column": 30 }, "identifierName": "getShapeItemFromDefinition" }, "name": "getShapeItemFromDefinition", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2104, "end": 2114, "loc": { "start": { "line": 71, "column": 31 }, "end": { "line": 71, "column": 41 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 2116, "end": 2193, "loc": { "start": { "line": 71, "column": 43 }, "end": { "line": 73, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 2127, "end": 2186, "loc": { "start": { "line": 72, "column": 8 }, "end": { "line": 72, "column": 67 } }, "argument": { "type": "CallExpression", "start": 2134, "end": 2185, "loc": { "start": { "line": 72, "column": 15 }, "end": { "line": 72, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 2134, "end": 2163, "loc": { "start": { "line": 72, "column": 15 }, "end": { "line": 72, "column": 44 } }, "object": { "type": "ThisExpression", "start": 2134, "end": 2138, "loc": { "start": { "line": 72, "column": 15 }, "end": { "line": 72, "column": 19 } } }, "property": { "type": "Identifier", "start": 2139, "end": 2163, "loc": { "start": { "line": 72, "column": 20 }, "end": { "line": 72, "column": 44 }, "identifierName": "getShapeItemFromShortKey" }, "name": "getShapeItemFromShortKey" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 2164, "end": 2184, "loc": { "start": { "line": 72, "column": 45 }, "end": { "line": 72, "column": 65 } }, "callee": { "type": "MemberExpression", "start": 2164, "end": 2182, "loc": { "start": { "line": 72, "column": 45 }, "end": { "line": 72, "column": 63 } }, "object": { "type": "Identifier", "start": 2164, "end": 2174, "loc": { "start": { "line": 72, "column": 45 }, "end": { "line": 72, "column": 55 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 2175, "end": 2182, "loc": { "start": { "line": 72, "column": 56 }, "end": { "line": 72, "column": 63 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a shape item for a given definition\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeItem}\r\n ", "start": 1934, "end": 2071, "loc": { "start": { "line": 66, "column": 4 }, "end": { "line": 70, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Registers a new shape definition\r\n * @param {ShapeDefinition} definition\r\n ", "start": 2201, "end": 2298, "loc": { "start": { "line": 75, "column": 4 }, "end": { "line": 78, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2304, "end": 2595, "loc": { "start": { "line": 79, "column": 4 }, "end": { "line": 84, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2304, "end": 2327, "loc": { "start": { "line": 79, "column": 4 }, "end": { "line": 79, "column": 27 }, "identifierName": "registerShapeDefinition" }, "name": "registerShapeDefinition", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2328, "end": 2338, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 38 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 2340, "end": 2595, "loc": { "start": { "line": 79, "column": 40 }, "end": { "line": 84, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 2351, "end": 2383, "loc": { "start": { "line": 80, "column": 8 }, "end": { "line": 80, "column": 40 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2357, "end": 2382, "loc": { "start": { "line": 80, "column": 14 }, "end": { "line": 80, "column": 39 } }, "id": { "type": "Identifier", "start": 2357, "end": 2359, "loc": { "start": { "line": 80, "column": 14 }, "end": { "line": 80, "column": 16 }, "identifierName": "id" }, "name": "id" }, "init": { "type": "CallExpression", "start": 2362, "end": 2382, "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 2362, "end": 2380, "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 37 } }, "object": { "type": "Identifier", "start": 2362, "end": 2372, "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 29 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 2373, "end": 2380, "loc": { "start": { "line": 80, "column": 30 }, "end": { "line": 80, "column": 37 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 2393, "end": 2478, "loc": { "start": { "line": 81, "column": 8 }, "end": { "line": 81, "column": 93 } }, "expression": { "type": "CallExpression", "start": 2393, "end": 2477, "loc": { "start": { "line": 81, "column": 8 }, "end": { "line": 81, "column": 92 } }, "callee": { "type": "Identifier", "start": 2393, "end": 2399, "loc": { "start": { "line": 81, "column": 8 }, "end": { "line": 81, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "UnaryExpression", "start": 2400, "end": 2430, "loc": { "start": { "line": 81, "column": 15 }, "end": { "line": 81, "column": 45 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 2401, "end": 2430, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 45 } }, "object": { "type": "MemberExpression", "start": 2401, "end": 2426, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 41 } }, "object": { "type": "ThisExpression", "start": 2401, "end": 2405, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 20 } } }, "property": { "type": "Identifier", "start": 2406, "end": 2426, "loc": { "start": { "line": 81, "column": 21 }, "end": { "line": 81, "column": 41 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 2427, "end": 2429, "loc": { "start": { "line": 81, "column": 42 }, "end": { "line": 81, "column": 44 }, "identifierName": "id" }, "name": "id" }, "computed": true }, "extra": { "parenthesizedArgument": false } }, { "type": "BinaryExpression", "start": 2432, "end": 2476, "loc": { "start": { "line": 81, "column": 47 }, "end": { "line": 81, "column": 91 } }, "left": { "type": "BinaryExpression", "start": 2432, "end": 2456, "loc": { "start": { "line": 81, "column": 47 }, "end": { "line": 81, "column": 71 } }, "left": { "type": "StringLiteral", "start": 2432, "end": 2451, "loc": { "start": { "line": 81, "column": 47 }, "end": { "line": 81, "column": 66 } }, "extra": { "rawValue": "Shape Definition ", "raw": "\"Shape Definition \"" }, "value": "Shape Definition " }, "operator": "+", "right": { "type": "Identifier", "start": 2454, "end": 2456, "loc": { "start": { "line": 81, "column": 69 }, "end": { "line": 81, "column": 71 }, "identifierName": "id" }, "name": "id" } }, "operator": "+", "right": { "type": "StringLiteral", "start": 2459, "end": 2476, "loc": { "start": { "line": 81, "column": 74 }, "end": { "line": 81, "column": 91 } }, "extra": { "rawValue": " already exists", "raw": "\" already exists\"" }, "value": " already exists" } } ] } }, { "type": "ExpressionStatement", "start": 2488, "end": 2531, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 51 } }, "expression": { "type": "AssignmentExpression", "start": 2488, "end": 2530, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 50 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2488, "end": 2517, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 37 } }, "object": { "type": "MemberExpression", "start": 2488, "end": 2513, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 33 } }, "object": { "type": "ThisExpression", "start": 2488, "end": 2492, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 12 } } }, "property": { "type": "Identifier", "start": 2493, "end": 2513, "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 33 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 2514, "end": 2516, "loc": { "start": { "line": 82, "column": 34 }, "end": { "line": 82, "column": 36 }, "identifierName": "id" }, "name": "id" }, "computed": true }, "right": { "type": "Identifier", "start": 2520, "end": 2530, "loc": { "start": { "line": 82, "column": 40 }, "end": { "line": 82, "column": 50 }, "identifierName": "definition" }, "name": "definition" } }, "trailingComments": [ { "type": "CommentLine", "value": " logger.log(\"Registered shape with key\", id);", "start": 2541, "end": 2588, "loc": { "start": { "line": 83, "column": 8 }, "end": { "line": 83, "column": 55 } } } ] } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Registers a new shape definition\r\n * @param {ShapeDefinition} definition\r\n ", "start": 2201, "end": 2298, "loc": { "start": { "line": 75, "column": 4 }, "end": { "line": 78, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in two halfs\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition]}\r\n ", "start": 2603, "end": 2790, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 90, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2796, "end": 3396, "loc": { "start": { "line": 91, "column": 4 }, "end": { "line": 103, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2796, "end": 2814, "loc": { "start": { "line": 91, "column": 4 }, "end": { "line": 91, "column": 22 }, "identifierName": "shapeActionCutHalf" }, "name": "shapeActionCutHalf", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2815, "end": 2825, "loc": { "start": { "line": 91, "column": 23 }, "end": { "line": 91, "column": 33 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 2827, "end": 3396, "loc": { "start": { "line": 91, "column": 35 }, "end": { "line": 103, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 2838, "end": 2880, "loc": { "start": { "line": 92, "column": 8 }, "end": { "line": 92, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2844, "end": 2879, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 49 } }, "id": { "type": "Identifier", "start": 2844, "end": 2847, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 2850, "end": 2879, "loc": { "start": { "line": 92, "column": 20 }, "end": { "line": 92, "column": 49 } }, "left": { "type": "StringLiteral", "start": 2850, "end": 2856, "loc": { "start": { "line": 92, "column": 20 }, "end": { "line": 92, "column": 26 } }, "extra": { "rawValue": "cut/", "raw": "\"cut/\"" }, "value": "cut/" }, "operator": "+", "right": { "type": "CallExpression", "start": 2859, "end": 2879, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 2859, "end": 2877, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 47 } }, "object": { "type": "Identifier", "start": 2859, "end": 2869, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 39 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 2870, "end": 2877, "loc": { "start": { "line": 92, "column": 40 }, "end": { "line": 92, "column": 47 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 2890, "end": 3030, "loc": { "start": { "line": 93, "column": 8 }, "end": { "line": 95, "column": 9 } }, "test": { "type": "MemberExpression", "start": 2894, "end": 2918, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 36 } }, "object": { "type": "MemberExpression", "start": 2894, "end": 2913, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 31 } }, "object": { "type": "ThisExpression", "start": 2894, "end": 2898, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 16 } } }, "property": { "type": "Identifier", "start": 2899, "end": 2913, "loc": { "start": { "line": 93, "column": 17 }, "end": { "line": 93, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 2914, "end": 2917, "loc": { "start": { "line": 93, "column": 32 }, "end": { "line": 93, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 2920, "end": 3030, "loc": { "start": { "line": 93, "column": 38 }, "end": { "line": 95, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 2935, "end": 3019, "loc": { "start": { "line": 94, "column": 12 }, "end": { "line": 94, "column": 96 } }, "argument": { "type": "MemberExpression", "start": 2993, "end": 3017, "loc": { "start": { "line": 94, "column": 70 }, "end": { "line": 94, "column": 94 } }, "object": { "type": "MemberExpression", "start": 2993, "end": 3012, "loc": { "start": { "line": 94, "column": 70 }, "end": { "line": 94, "column": 89 } }, "object": { "type": "ThisExpression", "start": 2993, "end": 2997, "loc": { "start": { "line": 94, "column": 70 }, "end": { "line": 94, "column": 74 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 2998, "end": 3012, "loc": { "start": { "line": 94, "column": 75 }, "end": { "line": 94, "column": 89 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 3013, "end": 3016, "loc": { "start": { "line": 94, "column": 90 }, "end": { "line": 94, "column": 93 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition]} ", "start": 2942, "end": 2991, "loc": { "start": { "line": 94, "column": 19 }, "end": { "line": 94, "column": 68 } } } ], "extra": { "parenthesized": true, "parenStart": 2992 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 3040, "end": 3102, "loc": { "start": { "line": 96, "column": 8 }, "end": { "line": 96, "column": 70 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3046, "end": 3101, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 69 } }, "id": { "type": "Identifier", "start": 3046, "end": 3055, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 23 }, "identifierName": "rightSide" }, "name": "rightSide" }, "init": { "type": "CallExpression", "start": 3058, "end": 3101, "loc": { "start": { "line": 96, "column": 26 }, "end": { "line": 96, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 3058, "end": 3093, "loc": { "start": { "line": 96, "column": 26 }, "end": { "line": 96, "column": 61 } }, "object": { "type": "Identifier", "start": 3058, "end": 3068, "loc": { "start": { "line": 96, "column": 26 }, "end": { "line": 96, "column": 36 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 3069, "end": 3093, "loc": { "start": { "line": 96, "column": 37 }, "end": { "line": 96, "column": 61 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 3094, "end": 3100, "loc": { "start": { "line": 96, "column": 62 }, "end": { "line": 96, "column": 68 } }, "elements": [ { "type": "NumericLiteral", "start": 3095, "end": 3096, "loc": { "start": { "line": 96, "column": 63 }, "end": { "line": 96, "column": 64 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 }, { "type": "NumericLiteral", "start": 3098, "end": 3099, "loc": { "start": { "line": 96, "column": 66 }, "end": { "line": 96, "column": 67 } }, "extra": { "rawValue": 3, "raw": "3" }, "value": 3 } ] } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 3112, "end": 3173, "loc": { "start": { "line": 97, "column": 8 }, "end": { "line": 97, "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3118, "end": 3172, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 68 } }, "id": { "type": "Identifier", "start": 3118, "end": 3126, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 22 }, "identifierName": "leftSide" }, "name": "leftSide" }, "init": { "type": "CallExpression", "start": 3129, "end": 3172, "loc": { "start": { "line": 97, "column": 25 }, "end": { "line": 97, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 3129, "end": 3164, "loc": { "start": { "line": 97, "column": 25 }, "end": { "line": 97, "column": 60 } }, "object": { "type": "Identifier", "start": 3129, "end": 3139, "loc": { "start": { "line": 97, "column": 25 }, "end": { "line": 97, "column": 35 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 3140, "end": 3164, "loc": { "start": { "line": 97, "column": 36 }, "end": { "line": 97, "column": 60 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 3165, "end": 3171, "loc": { "start": { "line": 97, "column": 61 }, "end": { "line": 97, "column": 67 } }, "elements": [ { "type": "NumericLiteral", "start": 3166, "end": 3167, "loc": { "start": { "line": 97, "column": 62 }, "end": { "line": 97, "column": 63 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 3169, "end": 3170, "loc": { "start": { "line": 97, "column": 65 }, "end": { "line": 97, "column": 66 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ] } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 3185, "end": 3389, "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 102, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 3243, "end": 3387, "loc": { "start": { "line": 99, "column": 66 }, "end": { "line": 102, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 3243, "end": 3267, "loc": { "start": { "line": 99, "column": 66 }, "end": { "line": 99, "column": 90 } }, "object": { "type": "MemberExpression", "start": 3243, "end": 3262, "loc": { "start": { "line": 99, "column": 66 }, "end": { "line": 99, "column": 85 } }, "object": { "type": "ThisExpression", "start": 3243, "end": 3247, "loc": { "start": { "line": 99, "column": 66 }, "end": { "line": 99, "column": 70 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 3248, "end": 3262, "loc": { "start": { "line": 99, "column": 71 }, "end": { "line": 99, "column": 85 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 3263, "end": 3266, "loc": { "start": { "line": 99, "column": 86 }, "end": { "line": 99, "column": 89 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 3270, "end": 3387, "loc": { "start": { "line": 99, "column": 93 }, "end": { "line": 102, "column": 9 } }, "elements": [ { "type": "CallExpression", "start": 3285, "end": 3323, "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 3285, "end": 3312, "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 39 } }, "object": { "type": "ThisExpression", "start": 3285, "end": 3289, "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 16 } } }, "property": { "type": "Identifier", "start": 3290, "end": 3312, "loc": { "start": { "line": 100, "column": 17 }, "end": { "line": 100, "column": 39 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3313, "end": 3322, "loc": { "start": { "line": 100, "column": 40 }, "end": { "line": 100, "column": 49 }, "identifierName": "rightSide" }, "name": "rightSide" } ] }, { "type": "CallExpression", "start": 3338, "end": 3375, "loc": { "start": { "line": 101, "column": 12 }, "end": { "line": 101, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 3338, "end": 3365, "loc": { "start": { "line": 101, "column": 12 }, "end": { "line": 101, "column": 39 } }, "object": { "type": "ThisExpression", "start": 3338, "end": 3342, "loc": { "start": { "line": 101, "column": 12 }, "end": { "line": 101, "column": 16 } } }, "property": { "type": "Identifier", "start": 3343, "end": 3365, "loc": { "start": { "line": 101, "column": 17 }, "end": { "line": 101, "column": 39 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3366, "end": 3374, "loc": { "start": { "line": 101, "column": 40 }, "end": { "line": 101, "column": 48 }, "identifierName": "leftSide" }, "name": "leftSide" } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition]} ", "start": 3192, "end": 3241, "loc": { "start": { "line": 99, "column": 15 }, "end": { "line": 99, "column": 64 } } } ], "extra": { "parenthesized": true, "parenStart": 3242 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in two halfs\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition]}\r\n ", "start": 2603, "end": 2790, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 90, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in four quads\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]}\r\n ", "start": 3404, "end": 3626, "loc": { "start": { "line": 105, "column": 4 }, "end": { "line": 109, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 3632, "end": 4435, "loc": { "start": { "line": 110, "column": 4 }, "end": { "line": 125, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3632, "end": 3650, "loc": { "start": { "line": 110, "column": 4 }, "end": { "line": 110, "column": 22 }, "identifierName": "shapeActionCutQuad" }, "name": "shapeActionCutQuad", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3651, "end": 3661, "loc": { "start": { "line": 110, "column": 23 }, "end": { "line": 110, "column": 33 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 3663, "end": 4435, "loc": { "start": { "line": 110, "column": 35 }, "end": { "line": 125, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 3674, "end": 3721, "loc": { "start": { "line": 111, "column": 8 }, "end": { "line": 111, "column": 55 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3680, "end": 3720, "loc": { "start": { "line": 111, "column": 14 }, "end": { "line": 111, "column": 54 } }, "id": { "type": "Identifier", "start": 3680, "end": 3683, "loc": { "start": { "line": 111, "column": 14 }, "end": { "line": 111, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 3686, "end": 3720, "loc": { "start": { "line": 111, "column": 20 }, "end": { "line": 111, "column": 54 } }, "left": { "type": "StringLiteral", "start": 3686, "end": 3697, "loc": { "start": { "line": 111, "column": 20 }, "end": { "line": 111, "column": 31 } }, "extra": { "rawValue": "cut-quad/", "raw": "\"cut-quad/\"" }, "value": "cut-quad/" }, "operator": "+", "right": { "type": "CallExpression", "start": 3700, "end": 3720, "loc": { "start": { "line": 111, "column": 34 }, "end": { "line": 111, "column": 54 } }, "callee": { "type": "MemberExpression", "start": 3700, "end": 3718, "loc": { "start": { "line": 111, "column": 34 }, "end": { "line": 111, "column": 52 } }, "object": { "type": "Identifier", "start": 3700, "end": 3710, "loc": { "start": { "line": 111, "column": 34 }, "end": { "line": 111, "column": 44 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 3711, "end": 3718, "loc": { "start": { "line": 111, "column": 45 }, "end": { "line": 111, "column": 52 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 3731, "end": 3923, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 115, "column": 9 } }, "test": { "type": "MemberExpression", "start": 3735, "end": 3759, "loc": { "start": { "line": 112, "column": 12 }, "end": { "line": 112, "column": 36 } }, "object": { "type": "MemberExpression", "start": 3735, "end": 3754, "loc": { "start": { "line": 112, "column": 12 }, "end": { "line": 112, "column": 31 } }, "object": { "type": "ThisExpression", "start": 3735, "end": 3739, "loc": { "start": { "line": 112, "column": 12 }, "end": { "line": 112, "column": 16 } } }, "property": { "type": "Identifier", "start": 3740, "end": 3754, "loc": { "start": { "line": 112, "column": 17 }, "end": { "line": 112, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 3755, "end": 3758, "loc": { "start": { "line": 112, "column": 32 }, "end": { "line": 112, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 3761, "end": 3923, "loc": { "start": { "line": 112, "column": 38 }, "end": { "line": 115, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 3776, "end": 3912, "loc": { "start": { "line": 113, "column": 12 }, "end": { "line": 114, "column": 38 } }, "argument": { "type": "MemberExpression", "start": 3868, "end": 3910, "loc": { "start": { "line": 113, "column": 104 }, "end": { "line": 114, "column": 36 } }, "object": { "type": "MemberExpression", "start": 3868, "end": 3905, "loc": { "start": { "line": 113, "column": 104 }, "end": { "line": 114, "column": 31 } }, "object": { "type": "ThisExpression", "start": 3868, "end": 3872, "loc": { "start": { "line": 113, "column": 104 }, "end": { "line": 113, "column": 108 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 3891, "end": 3905, "loc": { "start": { "line": 114, "column": 17 }, "end": { "line": 114, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 3906, "end": 3909, "loc": { "start": { "line": 114, "column": 32 }, "end": { "line": 114, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]} ", "start": 3783, "end": 3866, "loc": { "start": { "line": 113, "column": 19 }, "end": { "line": 113, "column": 102 } } } ], "extra": { "parenthesized": true, "parenStart": 3867 } } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 3935, "end": 4428, "loc": { "start": { "line": 117, "column": 8 }, "end": { "line": 124, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 4027, "end": 4426, "loc": { "start": { "line": 117, "column": 100 }, "end": { "line": 124, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 4027, "end": 4075, "loc": { "start": { "line": 117, "column": 100 }, "end": { "line": 119, "column": 9 } }, "object": { "type": "MemberExpression", "start": 4027, "end": 4046, "loc": { "start": { "line": 117, "column": 100 }, "end": { "line": 117, "column": 119 } }, "object": { "type": "ThisExpression", "start": 4027, "end": 4031, "loc": { "start": { "line": 117, "column": 100 }, "end": { "line": 117, "column": 104 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 4032, "end": 4046, "loc": { "start": { "line": 117, "column": 105 }, "end": { "line": 117, "column": 119 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 4061, "end": 4064, "loc": { "start": { "line": 118, "column": 12 }, "end": { "line": 118, "column": 15 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 4078, "end": 4426, "loc": { "start": { "line": 119, "column": 12 }, "end": { "line": 124, "column": 9 } }, "elements": [ { "type": "CallExpression", "start": 4093, "end": 4162, "loc": { "start": { "line": 120, "column": 12 }, "end": { "line": 120, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 4093, "end": 4120, "loc": { "start": { "line": 120, "column": 12 }, "end": { "line": 120, "column": 39 } }, "object": { "type": "ThisExpression", "start": 4093, "end": 4097, "loc": { "start": { "line": 120, "column": 12 }, "end": { "line": 120, "column": 16 } } }, "property": { "type": "Identifier", "start": 4098, "end": 4120, "loc": { "start": { "line": 120, "column": 17 }, "end": { "line": 120, "column": 39 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 4121, "end": 4161, "loc": { "start": { "line": 120, "column": 40 }, "end": { "line": 120, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 4121, "end": 4156, "loc": { "start": { "line": 120, "column": 40 }, "end": { "line": 120, "column": 75 } }, "object": { "type": "Identifier", "start": 4121, "end": 4131, "loc": { "start": { "line": 120, "column": 40 }, "end": { "line": 120, "column": 50 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 4132, "end": 4156, "loc": { "start": { "line": 120, "column": 51 }, "end": { "line": 120, "column": 75 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 4157, "end": 4160, "loc": { "start": { "line": 120, "column": 76 }, "end": { "line": 120, "column": 79 } }, "elements": [ { "type": "NumericLiteral", "start": 4158, "end": 4159, "loc": { "start": { "line": 120, "column": 77 }, "end": { "line": 120, "column": 78 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } ] } ] } ] }, { "type": "CallExpression", "start": 4177, "end": 4246, "loc": { "start": { "line": 121, "column": 12 }, "end": { "line": 121, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 4177, "end": 4204, "loc": { "start": { "line": 121, "column": 12 }, "end": { "line": 121, "column": 39 } }, "object": { "type": "ThisExpression", "start": 4177, "end": 4181, "loc": { "start": { "line": 121, "column": 12 }, "end": { "line": 121, "column": 16 } } }, "property": { "type": "Identifier", "start": 4182, "end": 4204, "loc": { "start": { "line": 121, "column": 17 }, "end": { "line": 121, "column": 39 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 4205, "end": 4245, "loc": { "start": { "line": 121, "column": 40 }, "end": { "line": 121, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 4205, "end": 4240, "loc": { "start": { "line": 121, "column": 40 }, "end": { "line": 121, "column": 75 } }, "object": { "type": "Identifier", "start": 4205, "end": 4215, "loc": { "start": { "line": 121, "column": 40 }, "end": { "line": 121, "column": 50 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 4216, "end": 4240, "loc": { "start": { "line": 121, "column": 51 }, "end": { "line": 121, "column": 75 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 4241, "end": 4244, "loc": { "start": { "line": 121, "column": 76 }, "end": { "line": 121, "column": 79 } }, "elements": [ { "type": "NumericLiteral", "start": 4242, "end": 4243, "loc": { "start": { "line": 121, "column": 77 }, "end": { "line": 121, "column": 78 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ] } ] } ] }, { "type": "CallExpression", "start": 4261, "end": 4330, "loc": { "start": { "line": 122, "column": 12 }, "end": { "line": 122, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 4261, "end": 4288, "loc": { "start": { "line": 122, "column": 12 }, "end": { "line": 122, "column": 39 } }, "object": { "type": "ThisExpression", "start": 4261, "end": 4265, "loc": { "start": { "line": 122, "column": 12 }, "end": { "line": 122, "column": 16 } } }, "property": { "type": "Identifier", "start": 4266, "end": 4288, "loc": { "start": { "line": 122, "column": 17 }, "end": { "line": 122, "column": 39 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 4289, "end": 4329, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 4289, "end": 4324, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 75 } }, "object": { "type": "Identifier", "start": 4289, "end": 4299, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 50 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 4300, "end": 4324, "loc": { "start": { "line": 122, "column": 51 }, "end": { "line": 122, "column": 75 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 4325, "end": 4328, "loc": { "start": { "line": 122, "column": 76 }, "end": { "line": 122, "column": 79 } }, "elements": [ { "type": "NumericLiteral", "start": 4326, "end": 4327, "loc": { "start": { "line": 122, "column": 77 }, "end": { "line": 122, "column": 78 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } ] } ] } ] }, { "type": "CallExpression", "start": 4345, "end": 4414, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 4345, "end": 4372, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 39 } }, "object": { "type": "ThisExpression", "start": 4345, "end": 4349, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 16 } } }, "property": { "type": "Identifier", "start": 4350, "end": 4372, "loc": { "start": { "line": 123, "column": 17 }, "end": { "line": 123, "column": 39 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 4373, "end": 4413, "loc": { "start": { "line": 123, "column": 40 }, "end": { "line": 123, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 4373, "end": 4408, "loc": { "start": { "line": 123, "column": 40 }, "end": { "line": 123, "column": 75 } }, "object": { "type": "Identifier", "start": 4373, "end": 4383, "loc": { "start": { "line": 123, "column": 40 }, "end": { "line": 123, "column": 50 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 4384, "end": 4408, "loc": { "start": { "line": 123, "column": 51 }, "end": { "line": 123, "column": 75 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 4409, "end": 4412, "loc": { "start": { "line": 123, "column": 76 }, "end": { "line": 123, "column": 79 } }, "elements": [ { "type": "NumericLiteral", "start": 4410, "end": 4411, "loc": { "start": { "line": 123, "column": 77 }, "end": { "line": 123, "column": 78 } }, "extra": { "rawValue": 3, "raw": "3" }, "value": 3 } ] } ] } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]} ", "start": 3942, "end": 4025, "loc": { "start": { "line": 117, "column": 15 }, "end": { "line": 117, "column": 98 } } } ], "extra": { "parenthesized": true, "parenStart": 4026 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in four quads\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]}\r\n ", "start": 3404, "end": 3626, "loc": { "start": { "line": 105, "column": 4 }, "end": { "line": 109, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 4443, "end": 4596, "loc": { "start": { "line": 127, "column": 4 }, "end": { "line": 131, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 4602, "end": 5026, "loc": { "start": { "line": 132, "column": 4 }, "end": { "line": 143, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 4602, "end": 4621, "loc": { "start": { "line": 132, "column": 4 }, "end": { "line": 132, "column": 23 }, "identifierName": "shapeActionRotateCW" }, "name": "shapeActionRotateCW", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 4622, "end": 4632, "loc": { "start": { "line": 132, "column": 24 }, "end": { "line": 132, "column": 34 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 4634, "end": 5026, "loc": { "start": { "line": 132, "column": 36 }, "end": { "line": 143, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 4645, "end": 4693, "loc": { "start": { "line": 133, "column": 8 }, "end": { "line": 133, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4651, "end": 4692, "loc": { "start": { "line": 133, "column": 14 }, "end": { "line": 133, "column": 55 } }, "id": { "type": "Identifier", "start": 4651, "end": 4654, "loc": { "start": { "line": 133, "column": 14 }, "end": { "line": 133, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 4657, "end": 4692, "loc": { "start": { "line": 133, "column": 20 }, "end": { "line": 133, "column": 55 } }, "left": { "type": "StringLiteral", "start": 4657, "end": 4669, "loc": { "start": { "line": 133, "column": 20 }, "end": { "line": 133, "column": 32 } }, "extra": { "rawValue": "rotate-cw/", "raw": "\"rotate-cw/\"" }, "value": "rotate-cw/" }, "operator": "+", "right": { "type": "CallExpression", "start": 4672, "end": 4692, "loc": { "start": { "line": 133, "column": 35 }, "end": { "line": 133, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 4672, "end": 4690, "loc": { "start": { "line": 133, "column": 35 }, "end": { "line": 133, "column": 53 } }, "object": { "type": "Identifier", "start": 4672, "end": 4682, "loc": { "start": { "line": 133, "column": 35 }, "end": { "line": 133, "column": 45 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 4683, "end": 4690, "loc": { "start": { "line": 133, "column": 46 }, "end": { "line": 133, "column": 53 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 4703, "end": 4824, "loc": { "start": { "line": 134, "column": 8 }, "end": { "line": 136, "column": 9 } }, "test": { "type": "MemberExpression", "start": 4707, "end": 4731, "loc": { "start": { "line": 134, "column": 12 }, "end": { "line": 134, "column": 36 } }, "object": { "type": "MemberExpression", "start": 4707, "end": 4726, "loc": { "start": { "line": 134, "column": 12 }, "end": { "line": 134, "column": 31 } }, "object": { "type": "ThisExpression", "start": 4707, "end": 4711, "loc": { "start": { "line": 134, "column": 12 }, "end": { "line": 134, "column": 16 } } }, "property": { "type": "Identifier", "start": 4712, "end": 4726, "loc": { "start": { "line": 134, "column": 17 }, "end": { "line": 134, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 4727, "end": 4730, "loc": { "start": { "line": 134, "column": 32 }, "end": { "line": 134, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 4733, "end": 4824, "loc": { "start": { "line": 134, "column": 38 }, "end": { "line": 136, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 4748, "end": 4813, "loc": { "start": { "line": 135, "column": 12 }, "end": { "line": 135, "column": 77 } }, "argument": { "type": "MemberExpression", "start": 4787, "end": 4811, "loc": { "start": { "line": 135, "column": 51 }, "end": { "line": 135, "column": 75 } }, "object": { "type": "MemberExpression", "start": 4787, "end": 4806, "loc": { "start": { "line": 135, "column": 51 }, "end": { "line": 135, "column": 70 } }, "object": { "type": "ThisExpression", "start": 4787, "end": 4791, "loc": { "start": { "line": 135, "column": 51 }, "end": { "line": 135, "column": 55 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 4792, "end": 4806, "loc": { "start": { "line": 135, "column": 56 }, "end": { "line": 135, "column": 70 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 4807, "end": 4810, "loc": { "start": { "line": 135, "column": 71 }, "end": { "line": 135, "column": 74 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 4755, "end": 4785, "loc": { "start": { "line": 135, "column": 19 }, "end": { "line": 135, "column": 49 } } } ], "extra": { "parenthesized": true, "parenStart": 4786 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 4836, "end": 4879, "loc": { "start": { "line": 138, "column": 8 }, "end": { "line": 138, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4842, "end": 4878, "loc": { "start": { "line": 138, "column": 14 }, "end": { "line": 138, "column": 50 } }, "id": { "type": "Identifier", "start": 4842, "end": 4849, "loc": { "start": { "line": 138, "column": 14 }, "end": { "line": 138, "column": 21 }, "identifierName": "rotated" }, "name": "rotated" }, "init": { "type": "CallExpression", "start": 4852, "end": 4878, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 4852, "end": 4876, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 48 } }, "object": { "type": "Identifier", "start": 4852, "end": 4862, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 34 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 4863, "end": 4876, "loc": { "start": { "line": 138, "column": 35 }, "end": { "line": 138, "column": 48 }, "identifierName": "cloneRotateCW" }, "name": "cloneRotateCW" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 4891, "end": 5019, "loc": { "start": { "line": 140, "column": 8 }, "end": { "line": 142, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 4930, "end": 5017, "loc": { "start": { "line": 140, "column": 47 }, "end": { "line": 142, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 4930, "end": 4954, "loc": { "start": { "line": 140, "column": 47 }, "end": { "line": 140, "column": 71 } }, "object": { "type": "MemberExpression", "start": 4930, "end": 4949, "loc": { "start": { "line": 140, "column": 47 }, "end": { "line": 140, "column": 66 } }, "object": { "type": "ThisExpression", "start": 4930, "end": 4934, "loc": { "start": { "line": 140, "column": 47 }, "end": { "line": 140, "column": 51 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 4935, "end": 4949, "loc": { "start": { "line": 140, "column": 52 }, "end": { "line": 140, "column": 66 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 4950, "end": 4953, "loc": { "start": { "line": 140, "column": 67 }, "end": { "line": 140, "column": 70 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "CallExpression", "start": 4957, "end": 5017, "loc": { "start": { "line": 140, "column": 74 }, "end": { "line": 142, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 4957, "end": 4984, "loc": { "start": { "line": 140, "column": 74 }, "end": { "line": 140, "column": 101 } }, "object": { "type": "ThisExpression", "start": 4957, "end": 4961, "loc": { "start": { "line": 140, "column": 74 }, "end": { "line": 140, "column": 78 } } }, "property": { "type": "Identifier", "start": 4962, "end": 4984, "loc": { "start": { "line": 140, "column": 79 }, "end": { "line": 140, "column": 101 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4999, "end": 5006, "loc": { "start": { "line": 141, "column": 12 }, "end": { "line": 141, "column": 19 }, "identifierName": "rotated" }, "name": "rotated" } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 4898, "end": 4928, "loc": { "start": { "line": 140, "column": 15 }, "end": { "line": 140, "column": 45 } } } ], "extra": { "parenthesized": true, "parenStart": 4929 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 4443, "end": 4596, "loc": { "start": { "line": 127, "column": 4 }, "end": { "line": 131, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape counter clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5034, "end": 5195, "loc": { "start": { "line": 145, "column": 4 }, "end": { "line": 149, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 5201, "end": 5628, "loc": { "start": { "line": 150, "column": 4 }, "end": { "line": 161, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 5201, "end": 5221, "loc": { "start": { "line": 150, "column": 4 }, "end": { "line": 150, "column": 24 }, "identifierName": "shapeActionRotateCCW" }, "name": "shapeActionRotateCCW", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 5222, "end": 5232, "loc": { "start": { "line": 150, "column": 25 }, "end": { "line": 150, "column": 35 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 5234, "end": 5628, "loc": { "start": { "line": 150, "column": 37 }, "end": { "line": 161, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 5245, "end": 5294, "loc": { "start": { "line": 151, "column": 8 }, "end": { "line": 151, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5251, "end": 5293, "loc": { "start": { "line": 151, "column": 14 }, "end": { "line": 151, "column": 56 } }, "id": { "type": "Identifier", "start": 5251, "end": 5254, "loc": { "start": { "line": 151, "column": 14 }, "end": { "line": 151, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 5257, "end": 5293, "loc": { "start": { "line": 151, "column": 20 }, "end": { "line": 151, "column": 56 } }, "left": { "type": "StringLiteral", "start": 5257, "end": 5270, "loc": { "start": { "line": 151, "column": 20 }, "end": { "line": 151, "column": 33 } }, "extra": { "rawValue": "rotate-ccw/", "raw": "\"rotate-ccw/\"" }, "value": "rotate-ccw/" }, "operator": "+", "right": { "type": "CallExpression", "start": 5273, "end": 5293, "loc": { "start": { "line": 151, "column": 36 }, "end": { "line": 151, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 5273, "end": 5291, "loc": { "start": { "line": 151, "column": 36 }, "end": { "line": 151, "column": 54 } }, "object": { "type": "Identifier", "start": 5273, "end": 5283, "loc": { "start": { "line": 151, "column": 36 }, "end": { "line": 151, "column": 46 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 5284, "end": 5291, "loc": { "start": { "line": 151, "column": 47 }, "end": { "line": 151, "column": 54 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 5304, "end": 5425, "loc": { "start": { "line": 152, "column": 8 }, "end": { "line": 154, "column": 9 } }, "test": { "type": "MemberExpression", "start": 5308, "end": 5332, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 36 } }, "object": { "type": "MemberExpression", "start": 5308, "end": 5327, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 31 } }, "object": { "type": "ThisExpression", "start": 5308, "end": 5312, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 16 } } }, "property": { "type": "Identifier", "start": 5313, "end": 5327, "loc": { "start": { "line": 152, "column": 17 }, "end": { "line": 152, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 5328, "end": 5331, "loc": { "start": { "line": 152, "column": 32 }, "end": { "line": 152, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 5334, "end": 5425, "loc": { "start": { "line": 152, "column": 38 }, "end": { "line": 154, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 5349, "end": 5414, "loc": { "start": { "line": 153, "column": 12 }, "end": { "line": 153, "column": 77 } }, "argument": { "type": "MemberExpression", "start": 5388, "end": 5412, "loc": { "start": { "line": 153, "column": 51 }, "end": { "line": 153, "column": 75 } }, "object": { "type": "MemberExpression", "start": 5388, "end": 5407, "loc": { "start": { "line": 153, "column": 51 }, "end": { "line": 153, "column": 70 } }, "object": { "type": "ThisExpression", "start": 5388, "end": 5392, "loc": { "start": { "line": 153, "column": 51 }, "end": { "line": 153, "column": 55 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 5393, "end": 5407, "loc": { "start": { "line": 153, "column": 56 }, "end": { "line": 153, "column": 70 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 5408, "end": 5411, "loc": { "start": { "line": 153, "column": 71 }, "end": { "line": 153, "column": 74 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5356, "end": 5386, "loc": { "start": { "line": 153, "column": 19 }, "end": { "line": 153, "column": 49 } } } ], "extra": { "parenthesized": true, "parenStart": 5387 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 5437, "end": 5481, "loc": { "start": { "line": 156, "column": 8 }, "end": { "line": 156, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5443, "end": 5480, "loc": { "start": { "line": 156, "column": 14 }, "end": { "line": 156, "column": 51 } }, "id": { "type": "Identifier", "start": 5443, "end": 5450, "loc": { "start": { "line": 156, "column": 14 }, "end": { "line": 156, "column": 21 }, "identifierName": "rotated" }, "name": "rotated" }, "init": { "type": "CallExpression", "start": 5453, "end": 5480, "loc": { "start": { "line": 156, "column": 24 }, "end": { "line": 156, "column": 51 } }, "callee": { "type": "MemberExpression", "start": 5453, "end": 5478, "loc": { "start": { "line": 156, "column": 24 }, "end": { "line": 156, "column": 49 } }, "object": { "type": "Identifier", "start": 5453, "end": 5463, "loc": { "start": { "line": 156, "column": 24 }, "end": { "line": 156, "column": 34 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 5464, "end": 5478, "loc": { "start": { "line": 156, "column": 35 }, "end": { "line": 156, "column": 49 }, "identifierName": "cloneRotateCCW" }, "name": "cloneRotateCCW" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 5493, "end": 5621, "loc": { "start": { "line": 158, "column": 8 }, "end": { "line": 160, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 5532, "end": 5619, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 160, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 5532, "end": 5556, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 158, "column": 71 } }, "object": { "type": "MemberExpression", "start": 5532, "end": 5551, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 158, "column": 66 } }, "object": { "type": "ThisExpression", "start": 5532, "end": 5536, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 158, "column": 51 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 5537, "end": 5551, "loc": { "start": { "line": 158, "column": 52 }, "end": { "line": 158, "column": 66 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 5552, "end": 5555, "loc": { "start": { "line": 158, "column": 67 }, "end": { "line": 158, "column": 70 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "CallExpression", "start": 5559, "end": 5619, "loc": { "start": { "line": 158, "column": 74 }, "end": { "line": 160, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 5559, "end": 5586, "loc": { "start": { "line": 158, "column": 74 }, "end": { "line": 158, "column": 101 } }, "object": { "type": "ThisExpression", "start": 5559, "end": 5563, "loc": { "start": { "line": 158, "column": 74 }, "end": { "line": 158, "column": 78 } } }, "property": { "type": "Identifier", "start": 5564, "end": 5586, "loc": { "start": { "line": 158, "column": 79 }, "end": { "line": 158, "column": 101 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 5601, "end": 5608, "loc": { "start": { "line": 159, "column": 12 }, "end": { "line": 159, "column": 19 }, "identifierName": "rotated" }, "name": "rotated" } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5500, "end": 5530, "loc": { "start": { "line": 158, "column": 15 }, "end": { "line": 158, "column": 45 } } } ], "extra": { "parenthesized": true, "parenStart": 5531 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape counter clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5034, "end": 5195, "loc": { "start": { "line": 145, "column": 4 }, "end": { "line": 149, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape FL\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5636, "end": 5782, "loc": { "start": { "line": 163, "column": 4 }, "end": { "line": 167, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 5788, "end": 6214, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 179, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 5788, "end": 5808, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 168, "column": 24 }, "identifierName": "shapeActionRotate180" }, "name": "shapeActionRotate180", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 5809, "end": 5819, "loc": { "start": { "line": 168, "column": 25 }, "end": { "line": 168, "column": 35 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 5821, "end": 6214, "loc": { "start": { "line": 168, "column": 37 }, "end": { "line": 179, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 5832, "end": 5880, "loc": { "start": { "line": 169, "column": 8 }, "end": { "line": 169, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5838, "end": 5879, "loc": { "start": { "line": 169, "column": 14 }, "end": { "line": 169, "column": 55 } }, "id": { "type": "Identifier", "start": 5838, "end": 5841, "loc": { "start": { "line": 169, "column": 14 }, "end": { "line": 169, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 5844, "end": 5879, "loc": { "start": { "line": 169, "column": 20 }, "end": { "line": 169, "column": 55 } }, "left": { "type": "StringLiteral", "start": 5844, "end": 5856, "loc": { "start": { "line": 169, "column": 20 }, "end": { "line": 169, "column": 32 } }, "extra": { "rawValue": "rotate-fl/", "raw": "\"rotate-fl/\"" }, "value": "rotate-fl/" }, "operator": "+", "right": { "type": "CallExpression", "start": 5859, "end": 5879, "loc": { "start": { "line": 169, "column": 35 }, "end": { "line": 169, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 5859, "end": 5877, "loc": { "start": { "line": 169, "column": 35 }, "end": { "line": 169, "column": 53 } }, "object": { "type": "Identifier", "start": 5859, "end": 5869, "loc": { "start": { "line": 169, "column": 35 }, "end": { "line": 169, "column": 45 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 5870, "end": 5877, "loc": { "start": { "line": 169, "column": 46 }, "end": { "line": 169, "column": 53 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 5890, "end": 6011, "loc": { "start": { "line": 170, "column": 8 }, "end": { "line": 172, "column": 9 } }, "test": { "type": "MemberExpression", "start": 5894, "end": 5918, "loc": { "start": { "line": 170, "column": 12 }, "end": { "line": 170, "column": 36 } }, "object": { "type": "MemberExpression", "start": 5894, "end": 5913, "loc": { "start": { "line": 170, "column": 12 }, "end": { "line": 170, "column": 31 } }, "object": { "type": "ThisExpression", "start": 5894, "end": 5898, "loc": { "start": { "line": 170, "column": 12 }, "end": { "line": 170, "column": 16 } } }, "property": { "type": "Identifier", "start": 5899, "end": 5913, "loc": { "start": { "line": 170, "column": 17 }, "end": { "line": 170, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 5914, "end": 5917, "loc": { "start": { "line": 170, "column": 32 }, "end": { "line": 170, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 5920, "end": 6011, "loc": { "start": { "line": 170, "column": 38 }, "end": { "line": 172, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 5935, "end": 6000, "loc": { "start": { "line": 171, "column": 12 }, "end": { "line": 171, "column": 77 } }, "argument": { "type": "MemberExpression", "start": 5974, "end": 5998, "loc": { "start": { "line": 171, "column": 51 }, "end": { "line": 171, "column": 75 } }, "object": { "type": "MemberExpression", "start": 5974, "end": 5993, "loc": { "start": { "line": 171, "column": 51 }, "end": { "line": 171, "column": 70 } }, "object": { "type": "ThisExpression", "start": 5974, "end": 5978, "loc": { "start": { "line": 171, "column": 51 }, "end": { "line": 171, "column": 55 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 5979, "end": 5993, "loc": { "start": { "line": 171, "column": 56 }, "end": { "line": 171, "column": 70 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 5994, "end": 5997, "loc": { "start": { "line": 171, "column": 71 }, "end": { "line": 171, "column": 74 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5942, "end": 5972, "loc": { "start": { "line": 171, "column": 19 }, "end": { "line": 171, "column": 49 } } } ], "extra": { "parenthesized": true, "parenStart": 5973 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 6023, "end": 6067, "loc": { "start": { "line": 174, "column": 8 }, "end": { "line": 174, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6029, "end": 6066, "loc": { "start": { "line": 174, "column": 14 }, "end": { "line": 174, "column": 51 } }, "id": { "type": "Identifier", "start": 6029, "end": 6036, "loc": { "start": { "line": 174, "column": 14 }, "end": { "line": 174, "column": 21 }, "identifierName": "rotated" }, "name": "rotated" }, "init": { "type": "CallExpression", "start": 6039, "end": 6066, "loc": { "start": { "line": 174, "column": 24 }, "end": { "line": 174, "column": 51 } }, "callee": { "type": "MemberExpression", "start": 6039, "end": 6064, "loc": { "start": { "line": 174, "column": 24 }, "end": { "line": 174, "column": 49 } }, "object": { "type": "Identifier", "start": 6039, "end": 6049, "loc": { "start": { "line": 174, "column": 24 }, "end": { "line": 174, "column": 34 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 6050, "end": 6064, "loc": { "start": { "line": 174, "column": 35 }, "end": { "line": 174, "column": 49 }, "identifierName": "cloneRotate180" }, "name": "cloneRotate180" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 6079, "end": 6207, "loc": { "start": { "line": 176, "column": 8 }, "end": { "line": 178, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 6118, "end": 6205, "loc": { "start": { "line": 176, "column": 47 }, "end": { "line": 178, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 6118, "end": 6142, "loc": { "start": { "line": 176, "column": 47 }, "end": { "line": 176, "column": 71 } }, "object": { "type": "MemberExpression", "start": 6118, "end": 6137, "loc": { "start": { "line": 176, "column": 47 }, "end": { "line": 176, "column": 66 } }, "object": { "type": "ThisExpression", "start": 6118, "end": 6122, "loc": { "start": { "line": 176, "column": 47 }, "end": { "line": 176, "column": 51 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 6123, "end": 6137, "loc": { "start": { "line": 176, "column": 52 }, "end": { "line": 176, "column": 66 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 6138, "end": 6141, "loc": { "start": { "line": 176, "column": 67 }, "end": { "line": 176, "column": 70 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "CallExpression", "start": 6145, "end": 6205, "loc": { "start": { "line": 176, "column": 74 }, "end": { "line": 178, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 6145, "end": 6172, "loc": { "start": { "line": 176, "column": 74 }, "end": { "line": 176, "column": 101 } }, "object": { "type": "ThisExpression", "start": 6145, "end": 6149, "loc": { "start": { "line": 176, "column": 74 }, "end": { "line": 176, "column": 78 } } }, "property": { "type": "Identifier", "start": 6150, "end": 6172, "loc": { "start": { "line": 176, "column": 79 }, "end": { "line": 176, "column": 101 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6187, "end": 6194, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 19 }, "identifierName": "rotated" }, "name": "rotated" } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6086, "end": 6116, "loc": { "start": { "line": 176, "column": 15 }, "end": { "line": 176, "column": 45 } } } ], "extra": { "parenthesized": true, "parenStart": 6117 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape FL\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5636, "end": 5782, "loc": { "start": { "line": 163, "column": 4 }, "end": { "line": 167, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for stacking the upper definition onto the lower one\r\n * @param {ShapeDefinition} lowerDefinition\r\n * @param {ShapeDefinition} upperDefinition\r\n * @returns {ShapeDefinition}\r\n ", "start": 6222, "end": 6451, "loc": { "start": { "line": 181, "column": 4 }, "end": { "line": 186, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 6457, "end": 6955, "loc": { "start": { "line": 187, "column": 4 }, "end": { "line": 196, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 6457, "end": 6473, "loc": { "start": { "line": 187, "column": 4 }, "end": { "line": 187, "column": 20 }, "identifierName": "shapeActionStack" }, "name": "shapeActionStack", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 6474, "end": 6489, "loc": { "start": { "line": 187, "column": 21 }, "end": { "line": 187, "column": 36 }, "identifierName": "lowerDefinition" }, "name": "lowerDefinition" }, { "type": "Identifier", "start": 6491, "end": 6506, "loc": { "start": { "line": 187, "column": 38 }, "end": { "line": 187, "column": 53 }, "identifierName": "upperDefinition" }, "name": "upperDefinition" } ], "body": { "type": "BlockStatement", "start": 6508, "end": 6955, "loc": { "start": { "line": 187, "column": 55 }, "end": { "line": 196, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 6519, "end": 6602, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 91 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6525, "end": 6601, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 90 } }, "id": { "type": "Identifier", "start": 6525, "end": 6528, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 6531, "end": 6601, "loc": { "start": { "line": 188, "column": 20 }, "end": { "line": 188, "column": 90 } }, "left": { "type": "BinaryExpression", "start": 6531, "end": 6573, "loc": { "start": { "line": 188, "column": 20 }, "end": { "line": 188, "column": 62 } }, "left": { "type": "BinaryExpression", "start": 6531, "end": 6567, "loc": { "start": { "line": 188, "column": 20 }, "end": { "line": 188, "column": 56 } }, "left": { "type": "StringLiteral", "start": 6531, "end": 6539, "loc": { "start": { "line": 188, "column": 20 }, "end": { "line": 188, "column": 28 } }, "extra": { "rawValue": "stack/", "raw": "\"stack/\"" }, "value": "stack/" }, "operator": "+", "right": { "type": "CallExpression", "start": 6542, "end": 6567, "loc": { "start": { "line": 188, "column": 31 }, "end": { "line": 188, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 6542, "end": 6565, "loc": { "start": { "line": 188, "column": 31 }, "end": { "line": 188, "column": 54 } }, "object": { "type": "Identifier", "start": 6542, "end": 6557, "loc": { "start": { "line": 188, "column": 31 }, "end": { "line": 188, "column": 46 }, "identifierName": "lowerDefinition" }, "name": "lowerDefinition" }, "property": { "type": "Identifier", "start": 6558, "end": 6565, "loc": { "start": { "line": 188, "column": 47 }, "end": { "line": 188, "column": 54 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } }, "operator": "+", "right": { "type": "StringLiteral", "start": 6570, "end": 6573, "loc": { "start": { "line": 188, "column": 59 }, "end": { "line": 188, "column": 62 } }, "extra": { "rawValue": "/", "raw": "\"/\"" }, "value": "/" } }, "operator": "+", "right": { "type": "CallExpression", "start": 6576, "end": 6601, "loc": { "start": { "line": 188, "column": 65 }, "end": { "line": 188, "column": 90 } }, "callee": { "type": "MemberExpression", "start": 6576, "end": 6599, "loc": { "start": { "line": 188, "column": 65 }, "end": { "line": 188, "column": 88 } }, "object": { "type": "Identifier", "start": 6576, "end": 6591, "loc": { "start": { "line": 188, "column": 65 }, "end": { "line": 188, "column": 80 }, "identifierName": "upperDefinition" }, "name": "upperDefinition" }, "property": { "type": "Identifier", "start": 6592, "end": 6599, "loc": { "start": { "line": 188, "column": 81 }, "end": { "line": 188, "column": 88 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 6612, "end": 6733, "loc": { "start": { "line": 189, "column": 8 }, "end": { "line": 191, "column": 9 } }, "test": { "type": "MemberExpression", "start": 6616, "end": 6640, "loc": { "start": { "line": 189, "column": 12 }, "end": { "line": 189, "column": 36 } }, "object": { "type": "MemberExpression", "start": 6616, "end": 6635, "loc": { "start": { "line": 189, "column": 12 }, "end": { "line": 189, "column": 31 } }, "object": { "type": "ThisExpression", "start": 6616, "end": 6620, "loc": { "start": { "line": 189, "column": 12 }, "end": { "line": 189, "column": 16 } } }, "property": { "type": "Identifier", "start": 6621, "end": 6635, "loc": { "start": { "line": 189, "column": 17 }, "end": { "line": 189, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 6636, "end": 6639, "loc": { "start": { "line": 189, "column": 32 }, "end": { "line": 189, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 6642, "end": 6733, "loc": { "start": { "line": 189, "column": 38 }, "end": { "line": 191, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 6657, "end": 6722, "loc": { "start": { "line": 190, "column": 12 }, "end": { "line": 190, "column": 77 } }, "argument": { "type": "MemberExpression", "start": 6696, "end": 6720, "loc": { "start": { "line": 190, "column": 51 }, "end": { "line": 190, "column": 75 } }, "object": { "type": "MemberExpression", "start": 6696, "end": 6715, "loc": { "start": { "line": 190, "column": 51 }, "end": { "line": 190, "column": 70 } }, "object": { "type": "ThisExpression", "start": 6696, "end": 6700, "loc": { "start": { "line": 190, "column": 51 }, "end": { "line": 190, "column": 55 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 6701, "end": 6715, "loc": { "start": { "line": 190, "column": 56 }, "end": { "line": 190, "column": 70 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 6716, "end": 6719, "loc": { "start": { "line": 190, "column": 71 }, "end": { "line": 190, "column": 74 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6664, "end": 6694, "loc": { "start": { "line": 190, "column": 19 }, "end": { "line": 190, "column": 49 } } } ], "extra": { "parenthesized": true, "parenStart": 6695 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 6743, "end": 6810, "loc": { "start": { "line": 192, "column": 8 }, "end": { "line": 192, "column": 75 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6749, "end": 6809, "loc": { "start": { "line": 192, "column": 14 }, "end": { "line": 192, "column": 74 } }, "id": { "type": "Identifier", "start": 6749, "end": 6756, "loc": { "start": { "line": 192, "column": 14 }, "end": { "line": 192, "column": 21 }, "identifierName": "stacked" }, "name": "stacked" }, "init": { "type": "CallExpression", "start": 6759, "end": 6809, "loc": { "start": { "line": 192, "column": 24 }, "end": { "line": 192, "column": 74 } }, "callee": { "type": "MemberExpression", "start": 6759, "end": 6792, "loc": { "start": { "line": 192, "column": 24 }, "end": { "line": 192, "column": 57 } }, "object": { "type": "Identifier", "start": 6759, "end": 6774, "loc": { "start": { "line": 192, "column": 24 }, "end": { "line": 192, "column": 39 }, "identifierName": "lowerDefinition" }, "name": "lowerDefinition" }, "property": { "type": "Identifier", "start": 6775, "end": 6792, "loc": { "start": { "line": 192, "column": 40 }, "end": { "line": 192, "column": 57 }, "identifierName": "cloneAndStackWith" }, "name": "cloneAndStackWith" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6793, "end": 6808, "loc": { "start": { "line": 192, "column": 58 }, "end": { "line": 192, "column": 73 }, "identifierName": "upperDefinition" }, "name": "upperDefinition" } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 6820, "end": 6948, "loc": { "start": { "line": 193, "column": 8 }, "end": { "line": 195, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 6859, "end": 6946, "loc": { "start": { "line": 193, "column": 47 }, "end": { "line": 195, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 6859, "end": 6883, "loc": { "start": { "line": 193, "column": 47 }, "end": { "line": 193, "column": 71 } }, "object": { "type": "MemberExpression", "start": 6859, "end": 6878, "loc": { "start": { "line": 193, "column": 47 }, "end": { "line": 193, "column": 66 } }, "object": { "type": "ThisExpression", "start": 6859, "end": 6863, "loc": { "start": { "line": 193, "column": 47 }, "end": { "line": 193, "column": 51 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 6864, "end": 6878, "loc": { "start": { "line": 193, "column": 52 }, "end": { "line": 193, "column": 66 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 6879, "end": 6882, "loc": { "start": { "line": 193, "column": 67 }, "end": { "line": 193, "column": 70 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "CallExpression", "start": 6886, "end": 6946, "loc": { "start": { "line": 193, "column": 74 }, "end": { "line": 195, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 6886, "end": 6913, "loc": { "start": { "line": 193, "column": 74 }, "end": { "line": 193, "column": 101 } }, "object": { "type": "ThisExpression", "start": 6886, "end": 6890, "loc": { "start": { "line": 193, "column": 74 }, "end": { "line": 193, "column": 78 } } }, "property": { "type": "Identifier", "start": 6891, "end": 6913, "loc": { "start": { "line": 193, "column": 79 }, "end": { "line": 193, "column": 101 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6928, "end": 6935, "loc": { "start": { "line": 194, "column": 12 }, "end": { "line": 194, "column": 19 }, "identifierName": "stacked" }, "name": "stacked" } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6827, "end": 6857, "loc": { "start": { "line": 193, "column": 15 }, "end": { "line": 193, "column": 45 } } } ], "extra": { "parenthesized": true, "parenStart": 6858 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for stacking the upper definition onto the lower one\r\n * @param {ShapeDefinition} lowerDefinition\r\n * @param {ShapeDefinition} upperDefinition\r\n * @returns {ShapeDefinition}\r\n ", "start": 6222, "end": 6451, "loc": { "start": { "line": 181, "column": 4 }, "end": { "line": 186, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the given color\r\n * @param {ShapeDefinition} definition\r\n * @param {enumColors} color\r\n * @returns {ShapeDefinition}\r\n ", "start": 6963, "end": 7156, "loc": { "start": { "line": 198, "column": 4 }, "end": { "line": 203, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 7162, "end": 7613, "loc": { "start": { "line": 204, "column": 4 }, "end": { "line": 213, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 7162, "end": 7182, "loc": { "start": { "line": 204, "column": 4 }, "end": { "line": 204, "column": 24 }, "identifierName": "shapeActionPaintWith" }, "name": "shapeActionPaintWith", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 7183, "end": 7193, "loc": { "start": { "line": 204, "column": 25 }, "end": { "line": 204, "column": 35 }, "identifierName": "definition" }, "name": "definition" }, { "type": "Identifier", "start": 7195, "end": 7200, "loc": { "start": { "line": 204, "column": 37 }, "end": { "line": 204, "column": 42 }, "identifierName": "color" }, "name": "color" } ], "body": { "type": "BlockStatement", "start": 7202, "end": 7613, "loc": { "start": { "line": 204, "column": 44 }, "end": { "line": 213, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 7213, "end": 7271, "loc": { "start": { "line": 205, "column": 8 }, "end": { "line": 205, "column": 66 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7219, "end": 7270, "loc": { "start": { "line": 205, "column": 14 }, "end": { "line": 205, "column": 65 } }, "id": { "type": "Identifier", "start": 7219, "end": 7222, "loc": { "start": { "line": 205, "column": 14 }, "end": { "line": 205, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 7225, "end": 7270, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 205, "column": 65 } }, "left": { "type": "BinaryExpression", "start": 7225, "end": 7262, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 205, "column": 57 } }, "left": { "type": "BinaryExpression", "start": 7225, "end": 7256, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 205, "column": 51 } }, "left": { "type": "StringLiteral", "start": 7225, "end": 7233, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 205, "column": 28 } }, "extra": { "rawValue": "paint/", "raw": "\"paint/\"" }, "value": "paint/" }, "operator": "+", "right": { "type": "CallExpression", "start": 7236, "end": 7256, "loc": { "start": { "line": 205, "column": 31 }, "end": { "line": 205, "column": 51 } }, "callee": { "type": "MemberExpression", "start": 7236, "end": 7254, "loc": { "start": { "line": 205, "column": 31 }, "end": { "line": 205, "column": 49 } }, "object": { "type": "Identifier", "start": 7236, "end": 7246, "loc": { "start": { "line": 205, "column": 31 }, "end": { "line": 205, "column": 41 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 7247, "end": 7254, "loc": { "start": { "line": 205, "column": 42 }, "end": { "line": 205, "column": 49 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } }, "operator": "+", "right": { "type": "StringLiteral", "start": 7259, "end": 7262, "loc": { "start": { "line": 205, "column": 54 }, "end": { "line": 205, "column": 57 } }, "extra": { "rawValue": "/", "raw": "\"/\"" }, "value": "/" } }, "operator": "+", "right": { "type": "Identifier", "start": 7265, "end": 7270, "loc": { "start": { "line": 205, "column": 60 }, "end": { "line": 205, "column": 65 }, "identifierName": "color" }, "name": "color" } } } ], "kind": "const" }, { "type": "IfStatement", "start": 7281, "end": 7402, "loc": { "start": { "line": 206, "column": 8 }, "end": { "line": 208, "column": 9 } }, "test": { "type": "MemberExpression", "start": 7285, "end": 7309, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 36 } }, "object": { "type": "MemberExpression", "start": 7285, "end": 7304, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 31 } }, "object": { "type": "ThisExpression", "start": 7285, "end": 7289, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 16 } } }, "property": { "type": "Identifier", "start": 7290, "end": 7304, "loc": { "start": { "line": 206, "column": 17 }, "end": { "line": 206, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 7305, "end": 7308, "loc": { "start": { "line": 206, "column": 32 }, "end": { "line": 206, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 7311, "end": 7402, "loc": { "start": { "line": 206, "column": 38 }, "end": { "line": 208, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 7326, "end": 7391, "loc": { "start": { "line": 207, "column": 12 }, "end": { "line": 207, "column": 77 } }, "argument": { "type": "MemberExpression", "start": 7365, "end": 7389, "loc": { "start": { "line": 207, "column": 51 }, "end": { "line": 207, "column": 75 } }, "object": { "type": "MemberExpression", "start": 7365, "end": 7384, "loc": { "start": { "line": 207, "column": 51 }, "end": { "line": 207, "column": 70 } }, "object": { "type": "ThisExpression", "start": 7365, "end": 7369, "loc": { "start": { "line": 207, "column": 51 }, "end": { "line": 207, "column": 55 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 7370, "end": 7384, "loc": { "start": { "line": 207, "column": 56 }, "end": { "line": 207, "column": 70 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 7385, "end": 7388, "loc": { "start": { "line": 207, "column": 71 }, "end": { "line": 207, "column": 74 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 7333, "end": 7363, "loc": { "start": { "line": 207, "column": 19 }, "end": { "line": 207, "column": 49 } } } ], "extra": { "parenthesized": true, "parenStart": 7364 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 7412, "end": 7466, "loc": { "start": { "line": 209, "column": 8 }, "end": { "line": 209, "column": 62 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7418, "end": 7465, "loc": { "start": { "line": 209, "column": 14 }, "end": { "line": 209, "column": 61 } }, "id": { "type": "Identifier", "start": 7418, "end": 7427, "loc": { "start": { "line": 209, "column": 14 }, "end": { "line": 209, "column": 23 }, "identifierName": "colorized" }, "name": "colorized" }, "init": { "type": "CallExpression", "start": 7430, "end": 7465, "loc": { "start": { "line": 209, "column": 26 }, "end": { "line": 209, "column": 61 } }, "callee": { "type": "MemberExpression", "start": 7430, "end": 7458, "loc": { "start": { "line": 209, "column": 26 }, "end": { "line": 209, "column": 54 } }, "object": { "type": "Identifier", "start": 7430, "end": 7440, "loc": { "start": { "line": 209, "column": 26 }, "end": { "line": 209, "column": 36 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 7441, "end": 7458, "loc": { "start": { "line": 209, "column": 37 }, "end": { "line": 209, "column": 54 }, "identifierName": "cloneAndPaintWith" }, "name": "cloneAndPaintWith" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 7459, "end": 7464, "loc": { "start": { "line": 209, "column": 55 }, "end": { "line": 209, "column": 60 }, "identifierName": "color" }, "name": "color" } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 7476, "end": 7606, "loc": { "start": { "line": 210, "column": 8 }, "end": { "line": 212, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 7515, "end": 7604, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 212, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 7515, "end": 7539, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 210, "column": 71 } }, "object": { "type": "MemberExpression", "start": 7515, "end": 7534, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 210, "column": 66 } }, "object": { "type": "ThisExpression", "start": 7515, "end": 7519, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 210, "column": 51 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 7520, "end": 7534, "loc": { "start": { "line": 210, "column": 52 }, "end": { "line": 210, "column": 66 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 7535, "end": 7538, "loc": { "start": { "line": 210, "column": 67 }, "end": { "line": 210, "column": 70 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "CallExpression", "start": 7542, "end": 7604, "loc": { "start": { "line": 210, "column": 74 }, "end": { "line": 212, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 7542, "end": 7569, "loc": { "start": { "line": 210, "column": 74 }, "end": { "line": 210, "column": 101 } }, "object": { "type": "ThisExpression", "start": 7542, "end": 7546, "loc": { "start": { "line": 210, "column": 74 }, "end": { "line": 210, "column": 78 } } }, "property": { "type": "Identifier", "start": 7547, "end": 7569, "loc": { "start": { "line": 210, "column": 79 }, "end": { "line": 210, "column": 101 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 7584, "end": 7593, "loc": { "start": { "line": 211, "column": 12 }, "end": { "line": 211, "column": 21 }, "identifierName": "colorized" }, "name": "colorized" } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 7483, "end": 7513, "loc": { "start": { "line": 210, "column": 15 }, "end": { "line": 210, "column": 45 } } } ], "extra": { "parenthesized": true, "parenStart": 7514 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the given color\r\n * @param {ShapeDefinition} definition\r\n * @param {enumColors} color\r\n * @returns {ShapeDefinition}\r\n ", "start": 6963, "end": 7156, "loc": { "start": { "line": 198, "column": 4 }, "end": { "line": 203, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the 4 colors\r\n * @param {ShapeDefinition} definition\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n * @returns {ShapeDefinition}\r\n ", "start": 7621, "end": 7850, "loc": { "start": { "line": 215, "column": 4 }, "end": { "line": 220, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 7856, "end": 8335, "loc": { "start": { "line": 221, "column": 4 }, "end": { "line": 230, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 7856, "end": 7883, "loc": { "start": { "line": 221, "column": 4 }, "end": { "line": 221, "column": 31 }, "identifierName": "shapeActionPaintWith4Colors" }, "name": "shapeActionPaintWith4Colors", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 7884, "end": 7894, "loc": { "start": { "line": 221, "column": 32 }, "end": { "line": 221, "column": 42 }, "identifierName": "definition" }, "name": "definition" }, { "type": "Identifier", "start": 7896, "end": 7902, "loc": { "start": { "line": 221, "column": 44 }, "end": { "line": 221, "column": 50 }, "identifierName": "colors" }, "name": "colors" } ], "body": { "type": "BlockStatement", "start": 7904, "end": 8335, "loc": { "start": { "line": 221, "column": 52 }, "end": { "line": 230, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 7915, "end": 7985, "loc": { "start": { "line": 222, "column": 8 }, "end": { "line": 222, "column": 78 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7921, "end": 7984, "loc": { "start": { "line": 222, "column": 14 }, "end": { "line": 222, "column": 77 } }, "id": { "type": "Identifier", "start": 7921, "end": 7924, "loc": { "start": { "line": 222, "column": 14 }, "end": { "line": 222, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 7927, "end": 7984, "loc": { "start": { "line": 222, "column": 20 }, "end": { "line": 222, "column": 77 } }, "left": { "type": "BinaryExpression", "start": 7927, "end": 7965, "loc": { "start": { "line": 222, "column": 20 }, "end": { "line": 222, "column": 58 } }, "left": { "type": "BinaryExpression", "start": 7927, "end": 7959, "loc": { "start": { "line": 222, "column": 20 }, "end": { "line": 222, "column": 52 } }, "left": { "type": "StringLiteral", "start": 7927, "end": 7936, "loc": { "start": { "line": 222, "column": 20 }, "end": { "line": 222, "column": 29 } }, "extra": { "rawValue": "paint4/", "raw": "\"paint4/\"" }, "value": "paint4/" }, "operator": "+", "right": { "type": "CallExpression", "start": 7939, "end": 7959, "loc": { "start": { "line": 222, "column": 32 }, "end": { "line": 222, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 7939, "end": 7957, "loc": { "start": { "line": 222, "column": 32 }, "end": { "line": 222, "column": 50 } }, "object": { "type": "Identifier", "start": 7939, "end": 7949, "loc": { "start": { "line": 222, "column": 32 }, "end": { "line": 222, "column": 42 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 7950, "end": 7957, "loc": { "start": { "line": 222, "column": 43 }, "end": { "line": 222, "column": 50 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } }, "operator": "+", "right": { "type": "StringLiteral", "start": 7962, "end": 7965, "loc": { "start": { "line": 222, "column": 55 }, "end": { "line": 222, "column": 58 } }, "extra": { "rawValue": "/", "raw": "\"/\"" }, "value": "/" } }, "operator": "+", "right": { "type": "CallExpression", "start": 7968, "end": 7984, "loc": { "start": { "line": 222, "column": 61 }, "end": { "line": 222, "column": 77 } }, "callee": { "type": "MemberExpression", "start": 7968, "end": 7979, "loc": { "start": { "line": 222, "column": 61 }, "end": { "line": 222, "column": 72 } }, "object": { "type": "Identifier", "start": 7968, "end": 7974, "loc": { "start": { "line": 222, "column": 61 }, "end": { "line": 222, "column": 67 }, "identifierName": "colors" }, "name": "colors" }, "property": { "type": "Identifier", "start": 7975, "end": 7979, "loc": { "start": { "line": 222, "column": 68 }, "end": { "line": 222, "column": 72 }, "identifierName": "join" }, "name": "join" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 7980, "end": 7983, "loc": { "start": { "line": 222, "column": 73 }, "end": { "line": 222, "column": 76 } }, "extra": { "rawValue": ",", "raw": "\",\"" }, "value": "," } ] } } } ], "kind": "const" }, { "type": "IfStatement", "start": 7995, "end": 8116, "loc": { "start": { "line": 223, "column": 8 }, "end": { "line": 225, "column": 9 } }, "test": { "type": "MemberExpression", "start": 7999, "end": 8023, "loc": { "start": { "line": 223, "column": 12 }, "end": { "line": 223, "column": 36 } }, "object": { "type": "MemberExpression", "start": 7999, "end": 8018, "loc": { "start": { "line": 223, "column": 12 }, "end": { "line": 223, "column": 31 } }, "object": { "type": "ThisExpression", "start": 7999, "end": 8003, "loc": { "start": { "line": 223, "column": 12 }, "end": { "line": 223, "column": 16 } } }, "property": { "type": "Identifier", "start": 8004, "end": 8018, "loc": { "start": { "line": 223, "column": 17 }, "end": { "line": 223, "column": 31 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false }, "property": { "type": "Identifier", "start": 8019, "end": 8022, "loc": { "start": { "line": 223, "column": 32 }, "end": { "line": 223, "column": 35 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 8025, "end": 8116, "loc": { "start": { "line": 223, "column": 38 }, "end": { "line": 225, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 8040, "end": 8105, "loc": { "start": { "line": 224, "column": 12 }, "end": { "line": 224, "column": 77 } }, "argument": { "type": "MemberExpression", "start": 8079, "end": 8103, "loc": { "start": { "line": 224, "column": 51 }, "end": { "line": 224, "column": 75 } }, "object": { "type": "MemberExpression", "start": 8079, "end": 8098, "loc": { "start": { "line": 224, "column": 51 }, "end": { "line": 224, "column": 70 } }, "object": { "type": "ThisExpression", "start": 8079, "end": 8083, "loc": { "start": { "line": 224, "column": 51 }, "end": { "line": 224, "column": 55 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 8084, "end": 8098, "loc": { "start": { "line": 224, "column": 56 }, "end": { "line": 224, "column": 70 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 8099, "end": 8102, "loc": { "start": { "line": 224, "column": 71 }, "end": { "line": 224, "column": 74 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 8047, "end": 8077, "loc": { "start": { "line": 224, "column": 19 }, "end": { "line": 224, "column": 49 } } } ], "extra": { "parenthesized": true, "parenStart": 8078 } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 8126, "end": 8188, "loc": { "start": { "line": 226, "column": 8 }, "end": { "line": 226, "column": 70 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8132, "end": 8187, "loc": { "start": { "line": 226, "column": 14 }, "end": { "line": 226, "column": 69 } }, "id": { "type": "Identifier", "start": 8132, "end": 8141, "loc": { "start": { "line": 226, "column": 14 }, "end": { "line": 226, "column": 23 }, "identifierName": "colorized" }, "name": "colorized" }, "init": { "type": "CallExpression", "start": 8144, "end": 8187, "loc": { "start": { "line": 226, "column": 26 }, "end": { "line": 226, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 8144, "end": 8179, "loc": { "start": { "line": 226, "column": 26 }, "end": { "line": 226, "column": 61 } }, "object": { "type": "Identifier", "start": 8144, "end": 8154, "loc": { "start": { "line": 226, "column": 26 }, "end": { "line": 226, "column": 36 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 8155, "end": 8179, "loc": { "start": { "line": 226, "column": 37 }, "end": { "line": 226, "column": 61 }, "identifierName": "cloneAndPaintWith4Colors" }, "name": "cloneAndPaintWith4Colors" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 8180, "end": 8186, "loc": { "start": { "line": 226, "column": 62 }, "end": { "line": 226, "column": 68 }, "identifierName": "colors" }, "name": "colors" } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 8198, "end": 8328, "loc": { "start": { "line": 227, "column": 8 }, "end": { "line": 229, "column": 11 } }, "argument": { "type": "AssignmentExpression", "start": 8237, "end": 8326, "loc": { "start": { "line": 227, "column": 47 }, "end": { "line": 229, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 8237, "end": 8261, "loc": { "start": { "line": 227, "column": 47 }, "end": { "line": 227, "column": 71 } }, "object": { "type": "MemberExpression", "start": 8237, "end": 8256, "loc": { "start": { "line": 227, "column": 47 }, "end": { "line": 227, "column": 66 } }, "object": { "type": "ThisExpression", "start": 8237, "end": 8241, "loc": { "start": { "line": 227, "column": 47 }, "end": { "line": 227, "column": 51 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 8242, "end": 8256, "loc": { "start": { "line": 227, "column": 52 }, "end": { "line": 227, "column": 66 }, "identifierName": "operationCache" }, "name": "operationCache" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 8257, "end": 8260, "loc": { "start": { "line": 227, "column": 67 }, "end": { "line": 227, "column": 70 }, "identifierName": "key" }, "name": "key" }, "computed": true, "leadingComments": null }, "right": { "type": "CallExpression", "start": 8264, "end": 8326, "loc": { "start": { "line": 227, "column": 74 }, "end": { "line": 229, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 8264, "end": 8291, "loc": { "start": { "line": 227, "column": 74 }, "end": { "line": 227, "column": 101 } }, "object": { "type": "ThisExpression", "start": 8264, "end": 8268, "loc": { "start": { "line": 227, "column": 74 }, "end": { "line": 227, "column": 78 } } }, "property": { "type": "Identifier", "start": 8269, "end": 8291, "loc": { "start": { "line": 227, "column": 79 }, "end": { "line": 227, "column": 101 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 8306, "end": 8315, "loc": { "start": { "line": 228, "column": 12 }, "end": { "line": 228, "column": 21 }, "identifierName": "colorized" }, "name": "colorized" } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 8205, "end": 8235, "loc": { "start": { "line": 227, "column": 15 }, "end": { "line": 227, "column": 45 } } } ], "extra": { "parenthesized": true, "parenStart": 8236 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the 4 colors\r\n * @param {ShapeDefinition} definition\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n * @returns {ShapeDefinition}\r\n ", "start": 7621, "end": 7850, "loc": { "start": { "line": 215, "column": 4 }, "end": { "line": 220, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if we already have cached this definition, and if so throws it away and returns the already\r\n * cached variant\r\n * @param {ShapeDefinition} definition\r\n ", "start": 8343, "end": 8529, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 236, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 8535, "end": 8870, "loc": { "start": { "line": 237, "column": 4 }, "end": { "line": 245, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 8535, "end": 8557, "loc": { "start": { "line": 237, "column": 4 }, "end": { "line": 237, "column": 26 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 8558, "end": 8568, "loc": { "start": { "line": 237, "column": 27 }, "end": { "line": 237, "column": 37 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 8570, "end": 8870, "loc": { "start": { "line": 237, "column": 39 }, "end": { "line": 245, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 8581, "end": 8613, "loc": { "start": { "line": 238, "column": 8 }, "end": { "line": 238, "column": 40 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8587, "end": 8612, "loc": { "start": { "line": 238, "column": 14 }, "end": { "line": 238, "column": 39 } }, "id": { "type": "Identifier", "start": 8587, "end": 8589, "loc": { "start": { "line": 238, "column": 14 }, "end": { "line": 238, "column": 16 }, "identifierName": "id" }, "name": "id" }, "init": { "type": "CallExpression", "start": 8592, "end": 8612, "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 8592, "end": 8610, "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 37 } }, "object": { "type": "Identifier", "start": 8592, "end": 8602, "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 29 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 8603, "end": 8610, "loc": { "start": { "line": 238, "column": 30 }, "end": { "line": 238, "column": 37 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "IfStatement", "start": 8623, "end": 8721, "loc": { "start": { "line": 239, "column": 8 }, "end": { "line": 241, "column": 9 } }, "test": { "type": "MemberExpression", "start": 8627, "end": 8656, "loc": { "start": { "line": 239, "column": 12 }, "end": { "line": 239, "column": 41 } }, "object": { "type": "MemberExpression", "start": 8627, "end": 8652, "loc": { "start": { "line": 239, "column": 12 }, "end": { "line": 239, "column": 37 } }, "object": { "type": "ThisExpression", "start": 8627, "end": 8631, "loc": { "start": { "line": 239, "column": 12 }, "end": { "line": 239, "column": 16 } } }, "property": { "type": "Identifier", "start": 8632, "end": 8652, "loc": { "start": { "line": 239, "column": 17 }, "end": { "line": 239, "column": 37 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 8653, "end": 8655, "loc": { "start": { "line": 239, "column": 38 }, "end": { "line": 239, "column": 40 }, "identifierName": "id" }, "name": "id" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 8658, "end": 8721, "loc": { "start": { "line": 239, "column": 43 }, "end": { "line": 241, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 8673, "end": 8710, "loc": { "start": { "line": 240, "column": 12 }, "end": { "line": 240, "column": 49 } }, "argument": { "type": "MemberExpression", "start": 8680, "end": 8709, "loc": { "start": { "line": 240, "column": 19 }, "end": { "line": 240, "column": 48 } }, "object": { "type": "MemberExpression", "start": 8680, "end": 8705, "loc": { "start": { "line": 240, "column": 19 }, "end": { "line": 240, "column": 44 } }, "object": { "type": "ThisExpression", "start": 8680, "end": 8684, "loc": { "start": { "line": 240, "column": 19 }, "end": { "line": 240, "column": 23 } } }, "property": { "type": "Identifier", "start": 8685, "end": 8705, "loc": { "start": { "line": 240, "column": 24 }, "end": { "line": 240, "column": 44 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 8706, "end": 8708, "loc": { "start": { "line": 240, "column": 45 }, "end": { "line": 240, "column": 47 }, "identifierName": "id" }, "name": "id" }, "computed": true } } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 8731, "end": 8774, "loc": { "start": { "line": 242, "column": 8 }, "end": { "line": 242, "column": 51 } }, "expression": { "type": "AssignmentExpression", "start": 8731, "end": 8773, "loc": { "start": { "line": 242, "column": 8 }, "end": { "line": 242, "column": 50 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 8731, "end": 8760, "loc": { "start": { "line": 242, "column": 8 }, "end": { "line": 242, "column": 37 } }, "object": { "type": "MemberExpression", "start": 8731, "end": 8756, "loc": { "start": { "line": 242, "column": 8 }, "end": { "line": 242, "column": 33 } }, "object": { "type": "ThisExpression", "start": 8731, "end": 8735, "loc": { "start": { "line": 242, "column": 8 }, "end": { "line": 242, "column": 12 } } }, "property": { "type": "Identifier", "start": 8736, "end": 8756, "loc": { "start": { "line": 242, "column": 13 }, "end": { "line": 242, "column": 33 }, "identifierName": "shapeKeyToDefinition" }, "name": "shapeKeyToDefinition" }, "computed": false }, "property": { "type": "Identifier", "start": 8757, "end": 8759, "loc": { "start": { "line": 242, "column": 34 }, "end": { "line": 242, "column": 36 }, "identifierName": "id" }, "name": "id" }, "computed": true }, "right": { "type": "Identifier", "start": 8763, "end": 8773, "loc": { "start": { "line": 242, "column": 40 }, "end": { "line": 242, "column": 50 }, "identifierName": "definition" }, "name": "definition" } }, "trailingComments": [ { "type": "CommentLine", "value": " logger.log(\"Registered shape with key (2)\", id);", "start": 8784, "end": 8835, "loc": { "start": { "line": 243, "column": 8 }, "end": { "line": 243, "column": 59 } } } ] }, { "type": "ReturnStatement", "start": 8845, "end": 8863, "loc": { "start": { "line": 244, "column": 8 }, "end": { "line": 244, "column": 26 } }, "argument": { "type": "Identifier", "start": 8852, "end": 8862, "loc": { "start": { "line": 244, "column": 15 }, "end": { "line": 244, "column": 25 }, "identifierName": "definition" }, "name": "definition", "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " logger.log(\"Registered shape with key (2)\", id);", "start": 8784, "end": 8835, "loc": { "start": { "line": 243, "column": 8 }, "end": { "line": 243, "column": 59 } } } ] } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if we already have cached this definition, and if so throws it away and returns the already\r\n * cached variant\r\n * @param {ShapeDefinition} definition\r\n ", "start": 8343, "end": 8529, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 236, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {[enumSubShape, enumSubShape, enumSubShape, enumSubShape]} subShapes\r\n * @returns {ShapeDefinition}\r\n ", "start": 8878, "end": 9017, "loc": { "start": { "line": 247, "column": 4 }, "end": { "line": 251, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 9023, "end": 9355, "loc": { "start": { "line": 252, "column": 4 }, "end": { "line": 258, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 9023, "end": 9052, "loc": { "start": { "line": 252, "column": 4 }, "end": { "line": 252, "column": 33 }, "identifierName": "getDefinitionFromSimpleShapes" }, "name": "getDefinitionFromSimpleShapes", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 9053, "end": 9062, "loc": { "start": { "line": 252, "column": 34 }, "end": { "line": 252, "column": 43 }, "identifierName": "subShapes" }, "name": "subShapes" }, { "type": "AssignmentPattern", "start": 9064, "end": 9092, "loc": { "start": { "line": 252, "column": 45 }, "end": { "line": 252, "column": 73 } }, "left": { "type": "Identifier", "start": 9064, "end": 9069, "loc": { "start": { "line": 252, "column": 45 }, "end": { "line": 252, "column": 50 }, "identifierName": "color" }, "name": "color" }, "right": { "type": "MemberExpression", "start": 9072, "end": 9092, "loc": { "start": { "line": 252, "column": 53 }, "end": { "line": 252, "column": 73 } }, "object": { "type": "Identifier", "start": 9072, "end": 9082, "loc": { "start": { "line": 252, "column": 53 }, "end": { "line": 252, "column": 63 }, "identifierName": "enumColors" }, "name": "enumColors" }, "property": { "type": "Identifier", "start": 9083, "end": 9092, "loc": { "start": { "line": 252, "column": 64 }, "end": { "line": 252, "column": 73 }, "identifierName": "uncolored" }, "name": "uncolored" }, "computed": false } } ], "body": { "type": "BlockStatement", "start": 9094, "end": 9355, "loc": { "start": { "line": 252, "column": 75 }, "end": { "line": 258, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 9105, "end": 9254, "loc": { "start": { "line": 253, "column": 8 }, "end": { "line": 255, "column": 11 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9111, "end": 9253, "loc": { "start": { "line": 253, "column": 14 }, "end": { "line": 255, "column": 10 } }, "id": { "type": "Identifier", "start": 9111, "end": 9121, "loc": { "start": { "line": 253, "column": 14 }, "end": { "line": 253, "column": 24 }, "identifierName": "shapeLayer" }, "name": "shapeLayer" }, "init": { "type": "CallExpression", "start": 9180, "end": 9252, "loc": { "start": { "line": 253, "column": 83 }, "end": { "line": 255, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 9180, "end": 9193, "loc": { "start": { "line": 253, "column": 83 }, "end": { "line": 253, "column": 96 } }, "object": { "type": "Identifier", "start": 9180, "end": 9189, "loc": { "start": { "line": 253, "column": 83 }, "end": { "line": 253, "column": 92 }, "identifierName": "subShapes" }, "name": "subShapes", "leadingComments": null }, "property": { "type": "Identifier", "start": 9190, "end": 9193, "loc": { "start": { "line": 253, "column": 93 }, "end": { "line": 253, "column": 96 }, "identifierName": "map" }, "name": "map" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 9208, "end": 9241, "loc": { "start": { "line": 254, "column": 12 }, "end": { "line": 254, "column": 45 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 9208, "end": 9216, "loc": { "start": { "line": 254, "column": 12 }, "end": { "line": 254, "column": 20 }, "identifierName": "subShape" }, "name": "subShape" } ], "body": { "type": "ObjectExpression", "start": 9221, "end": 9240, "loc": { "start": { "line": 254, "column": 25 }, "end": { "line": 254, "column": 44 } }, "properties": [ { "type": "ObjectProperty", "start": 9223, "end": 9231, "loc": { "start": { "line": 254, "column": 27 }, "end": { "line": 254, "column": 35 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 9223, "end": 9231, "loc": { "start": { "line": 254, "column": 27 }, "end": { "line": 254, "column": 35 }, "identifierName": "subShape" }, "name": "subShape" }, "value": { "type": "Identifier", "start": 9223, "end": 9231, "loc": { "start": { "line": 254, "column": 27 }, "end": { "line": 254, "column": 35 }, "identifierName": "subShape" }, "name": "subShape" }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 9233, "end": 9238, "loc": { "start": { "line": 254, "column": 37 }, "end": { "line": 254, "column": 42 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 9233, "end": 9238, "loc": { "start": { "line": 254, "column": 37 }, "end": { "line": 254, "column": 42 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "Identifier", "start": 9233, "end": 9238, "loc": { "start": { "line": 254, "column": 37 }, "end": { "line": 254, "column": 42 }, "identifierName": "color" }, "name": "color" }, "extra": { "shorthand": true } } ], "extra": { "parenthesized": true, "parenStart": 9220 } } } ], "leadingComments": [ { "type": "CommentBlock", "value": "* @type {import(\"./shape_definition\").ShapeLayer} ", "start": 9124, "end": 9178, "loc": { "start": { "line": 253, "column": 27 }, "end": { "line": 253, "column": 81 } } } ], "extra": { "parenthesized": true, "parenStart": 9179 } } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 9266, "end": 9348, "loc": { "start": { "line": 257, "column": 8 }, "end": { "line": 257, "column": 90 } }, "argument": { "type": "CallExpression", "start": 9273, "end": 9347, "loc": { "start": { "line": 257, "column": 15 }, "end": { "line": 257, "column": 89 } }, "callee": { "type": "MemberExpression", "start": 9273, "end": 9300, "loc": { "start": { "line": 257, "column": 15 }, "end": { "line": 257, "column": 42 } }, "object": { "type": "ThisExpression", "start": 9273, "end": 9277, "loc": { "start": { "line": 257, "column": 15 }, "end": { "line": 257, "column": 19 } } }, "property": { "type": "Identifier", "start": 9278, "end": 9300, "loc": { "start": { "line": 257, "column": 20 }, "end": { "line": 257, "column": 42 }, "identifierName": "registerOrReturnHandle" }, "name": "registerOrReturnHandle" }, "computed": false }, "arguments": [ { "type": "NewExpression", "start": 9301, "end": 9346, "loc": { "start": { "line": 257, "column": 43 }, "end": { "line": 257, "column": 88 } }, "callee": { "type": "Identifier", "start": 9305, "end": 9320, "loc": { "start": { "line": 257, "column": 47 }, "end": { "line": 257, "column": 62 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 9321, "end": 9345, "loc": { "start": { "line": 257, "column": 63 }, "end": { "line": 257, "column": 87 } }, "properties": [ { "type": "ObjectProperty", "start": 9323, "end": 9343, "loc": { "start": { "line": 257, "column": 65 }, "end": { "line": 257, "column": 85 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 9323, "end": 9329, "loc": { "start": { "line": 257, "column": 65 }, "end": { "line": 257, "column": 71 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "ArrayExpression", "start": 9331, "end": 9343, "loc": { "start": { "line": 257, "column": 73 }, "end": { "line": 257, "column": 85 } }, "elements": [ { "type": "Identifier", "start": 9332, "end": 9342, "loc": { "start": { "line": 257, "column": 74 }, "end": { "line": 257, "column": 84 }, "identifierName": "shapeLayer" }, "name": "shapeLayer" } ] } } ] } ] } ] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {[enumSubShape, enumSubShape, enumSubShape, enumSubShape]} subShapes\r\n * @returns {ShapeDefinition}\r\n ", "start": 8878, "end": 9017, "loc": { "start": { "line": 247, "column": 4 }, "end": { "line": 251, "column": 7 } } } ] } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 523, "end": 574, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 18, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> definition\r\n * @type {Object}\r\n ", "start": 656, "end": 773, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 26, "column": 11 } } }, { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> item\r\n ", "start": 826, "end": 885, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 31, "column": 11 } } }, { "type": "CommentLine", "value": " Caches operations in the form of 'operation/def1[/def2]'", "start": 932, "end": 991, "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 34, "column": 67 } } }, { "type": "CommentBlock", "value": "* @type {Object.|ShapeDefinition>} ", "start": 1001, "end": 1071, "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 78 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a shape instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeDefinition}\r\n ", "start": 1121, "end": 1253, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 43, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a item instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeItem}\r\n ", "start": 1509, "end": 1634, "loc": { "start": { "line": 52, "column": 4 }, "end": { "line": 56, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a shape item for a given definition\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeItem}\r\n ", "start": 1934, "end": 2071, "loc": { "start": { "line": 66, "column": 4 }, "end": { "line": 70, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Registers a new shape definition\r\n * @param {ShapeDefinition} definition\r\n ", "start": 2201, "end": 2298, "loc": { "start": { "line": 75, "column": 4 }, "end": { "line": 78, "column": 7 } } }, { "type": "CommentLine", "value": " logger.log(\"Registered shape with key\", id);", "start": 2541, "end": 2588, "loc": { "start": { "line": 83, "column": 8 }, "end": { "line": 83, "column": 55 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in two halfs\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition]}\r\n ", "start": 2603, "end": 2790, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 90, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition]} ", "start": 2942, "end": 2991, "loc": { "start": { "line": 94, "column": 19 }, "end": { "line": 94, "column": 68 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition]} ", "start": 3192, "end": 3241, "loc": { "start": { "line": 99, "column": 15 }, "end": { "line": 99, "column": 64 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in four quads\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]}\r\n ", "start": 3404, "end": 3626, "loc": { "start": { "line": 105, "column": 4 }, "end": { "line": 109, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]} ", "start": 3783, "end": 3866, "loc": { "start": { "line": 113, "column": 19 }, "end": { "line": 113, "column": 102 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]} ", "start": 3942, "end": 4025, "loc": { "start": { "line": 117, "column": 15 }, "end": { "line": 117, "column": 98 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 4443, "end": 4596, "loc": { "start": { "line": 127, "column": 4 }, "end": { "line": 131, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 4755, "end": 4785, "loc": { "start": { "line": 135, "column": 19 }, "end": { "line": 135, "column": 49 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 4898, "end": 4928, "loc": { "start": { "line": 140, "column": 15 }, "end": { "line": 140, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape counter clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5034, "end": 5195, "loc": { "start": { "line": 145, "column": 4 }, "end": { "line": 149, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5356, "end": 5386, "loc": { "start": { "line": 153, "column": 19 }, "end": { "line": 153, "column": 49 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5500, "end": 5530, "loc": { "start": { "line": 158, "column": 15 }, "end": { "line": 158, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape FL\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5636, "end": 5782, "loc": { "start": { "line": 163, "column": 4 }, "end": { "line": 167, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5942, "end": 5972, "loc": { "start": { "line": 171, "column": 19 }, "end": { "line": 171, "column": 49 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6086, "end": 6116, "loc": { "start": { "line": 176, "column": 15 }, "end": { "line": 176, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for stacking the upper definition onto the lower one\r\n * @param {ShapeDefinition} lowerDefinition\r\n * @param {ShapeDefinition} upperDefinition\r\n * @returns {ShapeDefinition}\r\n ", "start": 6222, "end": 6451, "loc": { "start": { "line": 181, "column": 4 }, "end": { "line": 186, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6664, "end": 6694, "loc": { "start": { "line": 190, "column": 19 }, "end": { "line": 190, "column": 49 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6827, "end": 6857, "loc": { "start": { "line": 193, "column": 15 }, "end": { "line": 193, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the given color\r\n * @param {ShapeDefinition} definition\r\n * @param {enumColors} color\r\n * @returns {ShapeDefinition}\r\n ", "start": 6963, "end": 7156, "loc": { "start": { "line": 198, "column": 4 }, "end": { "line": 203, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 7333, "end": 7363, "loc": { "start": { "line": 207, "column": 19 }, "end": { "line": 207, "column": 49 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 7483, "end": 7513, "loc": { "start": { "line": 210, "column": 15 }, "end": { "line": 210, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the 4 colors\r\n * @param {ShapeDefinition} definition\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n * @returns {ShapeDefinition}\r\n ", "start": 7621, "end": 7850, "loc": { "start": { "line": 215, "column": 4 }, "end": { "line": 220, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 8047, "end": 8077, "loc": { "start": { "line": 224, "column": 19 }, "end": { "line": 224, "column": 49 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 8205, "end": 8235, "loc": { "start": { "line": 227, "column": 15 }, "end": { "line": 227, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if we already have cached this definition, and if so throws it away and returns the already\r\n * cached variant\r\n * @param {ShapeDefinition} definition\r\n ", "start": 8343, "end": 8529, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 236, "column": 7 } } }, { "type": "CommentLine", "value": " logger.log(\"Registered shape with key (2)\", id);", "start": 8784, "end": 8835, "loc": { "start": { "line": 243, "column": 8 }, "end": { "line": 243, "column": 59 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {[enumSubShape, enumSubShape, enumSubShape, enumSubShape]} subShapes\r\n * @returns {ShapeDefinition}\r\n ", "start": 8878, "end": 9017, "loc": { "start": { "line": 247, "column": 4 }, "end": { "line": 251, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {import(\"./shape_definition\").ShapeLayer} ", "start": 9124, "end": 9178, "loc": { "start": { "line": 253, "column": 27 }, "end": { "line": 253, "column": 81 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createLogger", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 22, "end": 23, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 24, "end": 28, "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/logging", "start": 29, "end": 46, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 46, "end": 47, "loc": { "start": { "line": 1, "column": 46 }, "end": { "line": 1, "column": 47 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 49, "end": 55, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 56, "end": 57, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BasicSerializableObject", "start": 58, "end": 81, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 82, "end": 83, "loc": { "start": { "line": 2, "column": 33 }, "end": { "line": 2, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 84, "end": 88, "loc": { "start": { "line": 2, "column": 35 }, "end": { "line": 2, "column": 39 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../savegame/serialization", "start": 89, "end": 116, "loc": { "start": { "line": 2, "column": 40 }, "end": { "line": 2, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 116, "end": 117, "loc": { "start": { "line": 2, "column": 67 }, "end": { "line": 2, "column": 68 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 119, "end": 125, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 126, "end": 127, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColors", "start": 128, "end": 138, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 19 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 139, "end": 140, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 141, "end": 145, "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 3, "column": 26 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./colors", "start": 146, "end": 156, "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 156, "end": 157, "loc": { "start": { "line": 3, "column": 37 }, "end": { "line": 3, "column": 38 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 159, "end": 165, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 166, "end": 167, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeItem", "start": 168, "end": 177, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 178, "end": 179, "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 4, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 180, "end": 184, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 25 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./items/shape_item", "start": 185, "end": 205, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 205, "end": 206, "loc": { "start": { "line": 4, "column": 46 }, "end": { "line": 4, "column": 47 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 208, "end": 214, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 215, "end": 216, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "GameRoot", "start": 217, "end": 225, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 226, "end": 227, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 228, "end": 232, "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./root", "start": 233, "end": 241, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 241, "end": 242, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 34 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 244, "end": 250, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 251, "end": 252, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 265, "end": 266, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 267, "end": 282, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 38 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 283, "end": 284, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 285, "end": 289, "loc": { "start": { "line": 6, "column": 41 }, "end": { "line": 6, "column": 45 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./shape_definition", "start": 290, "end": 310, "loc": { "start": { "line": 6, "column": 46 }, "end": { "line": 6, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 310, "end": 311, "loc": { "start": { "line": 6, "column": 66 }, "end": { "line": 6, "column": 67 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 315, "end": 320, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "logger", "start": 321, "end": 327, "loc": { "start": { "line": 8, "column": 6 }, "end": { "line": 8, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 328, "end": 329, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createLogger", "start": 330, "end": 342, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 342, "end": 343, "loc": { "start": { "line": 8, "column": 27 }, "end": { "line": 8, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "shape_definition_manager", "start": 343, "end": 369, "loc": { "start": { "line": 8, "column": 28 }, "end": { "line": 8, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 369, "end": 370, "loc": { "start": { "line": 8, "column": 54 }, "end": { "line": 8, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 370, "end": 371, "loc": { "start": { "line": 8, "column": 55 }, "end": { "line": 8, "column": 56 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 375, "end": 381, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 6 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 382, "end": 387, "loc": { "start": { "line": 10, "column": 7 }, "end": { "line": 10, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinitionManager", "start": 388, "end": 410, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 35 } } }, { "type": { "label": "extends", "keyword": "extends", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "extends", "start": 411, "end": 418, "loc": { "start": { "line": 10, "column": 36 }, "end": { "line": 10, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BasicSerializableObject", "start": 419, "end": 442, "loc": { "start": { "line": 10, "column": 44 }, "end": { "line": 10, "column": 67 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 443, "end": 444, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 450, "end": 456, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 457, "end": 462, "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 462, "end": 463, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 463, "end": 464, "loc": { "start": { "line": 11, "column": 17 }, "end": { "line": 11, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 465, "end": 466, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 20 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 476, "end": 482, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "ShapeDefinitionManager", "start": 483, "end": 507, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 507, "end": 508, "loc": { "start": { "line": 12, "column": 39 }, "end": { "line": 12, "column": 40 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 514, "end": 515, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 523, "end": 574, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 18, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 580, "end": 591, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 591, "end": 592, "loc": { "start": { "line": 19, "column": 15 }, "end": { "line": 19, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 592, "end": 596, "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 596, "end": 597, "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 598, "end": 599, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 23 } } }, { "type": { "label": "super", "keyword": "super", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "super", "start": 609, "end": 614, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 614, "end": 615, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 615, "end": 616, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 15 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 616, "end": 617, "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 627, "end": 631, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 631, "end": 632, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 632, "end": 636, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 637, "end": 638, "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 639, "end": 643, "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 643, "end": 644, "loc": { "start": { "line": 21, "column": 24 }, "end": { "line": 21, "column": 25 } } }, { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> definition\r\n * @type {Object}\r\n ", "start": 656, "end": 773, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 26, "column": 11 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 783, "end": 787, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 787, "end": 788, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 788, "end": 808, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 809, "end": 810, "loc": { "start": { "line": 27, "column": 34 }, "end": { "line": 27, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 811, "end": 812, "loc": { "start": { "line": 27, "column": 36 }, "end": { "line": 27, "column": 37 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 812, "end": 813, "loc": { "start": { "line": 27, "column": 37 }, "end": { "line": 27, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 813, "end": 814, "loc": { "start": { "line": 27, "column": 38 }, "end": { "line": 27, "column": 39 } } }, { "type": "CommentBlock", "value": "*\r\n * Store a cache from key -> item\r\n ", "start": 826, "end": 885, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 31, "column": 11 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 895, "end": 899, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 899, "end": 900, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToItem", "start": 900, "end": 914, "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 915, "end": 916, "loc": { "start": { "line": 32, "column": 28 }, "end": { "line": 32, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 917, "end": 918, "loc": { "start": { "line": 32, "column": 30 }, "end": { "line": 32, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 918, "end": 919, "loc": { "start": { "line": 32, "column": 31 }, "end": { "line": 32, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 919, "end": 920, "loc": { "start": { "line": 32, "column": 32 }, "end": { "line": 32, "column": 33 } } }, { "type": "CommentLine", "value": " Caches operations in the form of 'operation/def1[/def2]'", "start": 932, "end": 991, "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 34, "column": 67 } } }, { "type": "CommentBlock", "value": "* @type {Object.|ShapeDefinition>} ", "start": 1001, "end": 1071, "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 78 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1081, "end": 1085, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1085, "end": 1086, "loc": { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 1086, "end": 1100, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1101, "end": 1102, "loc": { "start": { "line": 36, "column": 28 }, "end": { "line": 36, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1103, "end": 1104, "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1104, "end": 1105, "loc": { "start": { "line": 36, "column": 31 }, "end": { "line": 36, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1105, "end": 1106, "loc": { "start": { "line": 36, "column": 32 }, "end": { "line": 36, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1112, "end": 1113, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a shape instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeDefinition}\r\n ", "start": 1121, "end": 1253, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 43, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getShapeFromShortKey", "start": 1259, "end": 1279, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1279, "end": 1280, "loc": { "start": { "line": 44, "column": 24 }, "end": { "line": 44, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1280, "end": 1284, "loc": { "start": { "line": 44, "column": 25 }, "end": { "line": 44, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1284, "end": 1285, "loc": { "start": { "line": 44, "column": 29 }, "end": { "line": 44, "column": 30 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1286, "end": 1287, "loc": { "start": { "line": 44, "column": 31 }, "end": { "line": 44, "column": 32 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 1297, "end": 1302, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cached", "start": 1303, "end": 1309, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1310, "end": 1311, "loc": { "start": { "line": 45, "column": 21 }, "end": { "line": 45, "column": 22 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1312, "end": 1316, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1316, "end": 1317, "loc": { "start": { "line": 45, "column": 27 }, "end": { "line": 45, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 1317, "end": 1337, "loc": { "start": { "line": 45, "column": 28 }, "end": { "line": 45, "column": 48 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1337, "end": 1338, "loc": { "start": { "line": 45, "column": 48 }, "end": { "line": 45, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1338, "end": 1342, "loc": { "start": { "line": 45, "column": 49 }, "end": { "line": 45, "column": 53 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1342, "end": 1343, "loc": { "start": { "line": 45, "column": 53 }, "end": { "line": 45, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1343, "end": 1344, "loc": { "start": { "line": 45, "column": 54 }, "end": { "line": 45, "column": 55 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1354, "end": 1356, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 46, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1357, "end": 1358, "loc": { "start": { "line": 46, "column": 11 }, "end": { "line": 46, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cached", "start": 1358, "end": 1364, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1364, "end": 1365, "loc": { "start": { "line": 46, "column": 18 }, "end": { "line": 46, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1366, "end": 1367, "loc": { "start": { "line": 46, "column": 20 }, "end": { "line": 46, "column": 21 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1381, "end": 1387, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cached", "start": 1388, "end": 1394, "loc": { "start": { "line": 47, "column": 19 }, "end": { "line": 47, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1394, "end": 1395, "loc": { "start": { "line": 47, "column": 25 }, "end": { "line": 47, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1405, "end": 1406, "loc": { "start": { "line": 48, "column": 8 }, "end": { "line": 48, "column": 9 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1416, "end": 1422, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1423, "end": 1424, "loc": { "start": { "line": 49, "column": 15 }, "end": { "line": 49, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1424, "end": 1428, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1428, "end": 1429, "loc": { "start": { "line": 49, "column": 20 }, "end": { "line": 49, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 1429, "end": 1449, "loc": { "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 41 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1449, "end": 1450, "loc": { "start": { "line": 49, "column": 41 }, "end": { "line": 49, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1450, "end": 1454, "loc": { "start": { "line": 49, "column": 42 }, "end": { "line": 49, "column": 46 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1454, "end": 1455, "loc": { "start": { "line": 49, "column": 46 }, "end": { "line": 49, "column": 47 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1456, "end": 1457, "loc": { "start": { "line": 49, "column": 48 }, "end": { "line": 49, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 1458, "end": 1473, "loc": { "start": { "line": 49, "column": 50 }, "end": { "line": 49, "column": 65 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1473, "end": 1474, "loc": { "start": { "line": 49, "column": 65 }, "end": { "line": 49, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromShortKey", "start": 1474, "end": 1486, "loc": { "start": { "line": 49, "column": 66 }, "end": { "line": 49, "column": 78 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1486, "end": 1487, "loc": { "start": { "line": 49, "column": 78 }, "end": { "line": 49, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1487, "end": 1491, "loc": { "start": { "line": 49, "column": 79 }, "end": { "line": 49, "column": 83 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1491, "end": 1492, "loc": { "start": { "line": 49, "column": 83 }, "end": { "line": 49, "column": 84 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1492, "end": 1493, "loc": { "start": { "line": 49, "column": 84 }, "end": { "line": 49, "column": 85 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1493, "end": 1494, "loc": { "start": { "line": 49, "column": 85 }, "end": { "line": 49, "column": 86 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1500, "end": 1501, "loc": { "start": { "line": 50, "column": 4 }, "end": { "line": 50, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a item instance from a given short key\r\n * @param {string} hash\r\n * @returns {ShapeItem}\r\n ", "start": 1509, "end": 1634, "loc": { "start": { "line": 52, "column": 4 }, "end": { "line": 56, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getShapeItemFromShortKey", "start": 1640, "end": 1664, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1664, "end": 1665, "loc": { "start": { "line": 57, "column": 28 }, "end": { "line": 57, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1665, "end": 1669, "loc": { "start": { "line": 57, "column": 29 }, "end": { "line": 57, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1669, "end": 1670, "loc": { "start": { "line": 57, "column": 33 }, "end": { "line": 57, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1671, "end": 1672, "loc": { "start": { "line": 57, "column": 35 }, "end": { "line": 57, "column": 36 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 1682, "end": 1687, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cached", "start": 1688, "end": 1694, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1695, "end": 1696, "loc": { "start": { "line": 58, "column": 21 }, "end": { "line": 58, "column": 22 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1697, "end": 1701, "loc": { "start": { "line": 58, "column": 23 }, "end": { "line": 58, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1701, "end": 1702, "loc": { "start": { "line": 58, "column": 27 }, "end": { "line": 58, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToItem", "start": 1702, "end": 1716, "loc": { "start": { "line": 58, "column": 28 }, "end": { "line": 58, "column": 42 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1716, "end": 1717, "loc": { "start": { "line": 58, "column": 42 }, "end": { "line": 58, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1717, "end": 1721, "loc": { "start": { "line": 58, "column": 43 }, "end": { "line": 58, "column": 47 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1721, "end": 1722, "loc": { "start": { "line": 58, "column": 47 }, "end": { "line": 58, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1722, "end": 1723, "loc": { "start": { "line": 58, "column": 48 }, "end": { "line": 58, "column": 49 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1733, "end": 1735, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 59, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1736, "end": 1737, "loc": { "start": { "line": 59, "column": 11 }, "end": { "line": 59, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cached", "start": 1737, "end": 1743, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 59, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1743, "end": 1744, "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 59, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1745, "end": 1746, "loc": { "start": { "line": 59, "column": 20 }, "end": { "line": 59, "column": 21 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1760, "end": 1766, "loc": { "start": { "line": 60, "column": 12 }, "end": { "line": 60, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cached", "start": 1767, "end": 1773, "loc": { "start": { "line": 60, "column": 19 }, "end": { "line": 60, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1773, "end": 1774, "loc": { "start": { "line": 60, "column": 25 }, "end": { "line": 60, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1784, "end": 1785, "loc": { "start": { "line": 61, "column": 8 }, "end": { "line": 61, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 1795, "end": 1800, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 1801, "end": 1811, "loc": { "start": { "line": 62, "column": 14 }, "end": { "line": 62, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1812, "end": 1813, "loc": { "start": { "line": 62, "column": 25 }, "end": { "line": 62, "column": 26 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1814, "end": 1818, "loc": { "start": { "line": 62, "column": 27 }, "end": { "line": 62, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1818, "end": 1819, "loc": { "start": { "line": 62, "column": 31 }, "end": { "line": 62, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getShapeFromShortKey", "start": 1819, "end": 1839, "loc": { "start": { "line": 62, "column": 32 }, "end": { "line": 62, "column": 52 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1839, "end": 1840, "loc": { "start": { "line": 62, "column": 52 }, "end": { "line": 62, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1840, "end": 1844, "loc": { "start": { "line": 62, "column": 53 }, "end": { "line": 62, "column": 57 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1844, "end": 1845, "loc": { "start": { "line": 62, "column": 57 }, "end": { "line": 62, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1845, "end": 1846, "loc": { "start": { "line": 62, "column": 58 }, "end": { "line": 62, "column": 59 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1856, "end": 1862, "loc": { "start": { "line": 63, "column": 8 }, "end": { "line": 63, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1863, "end": 1864, "loc": { "start": { "line": 63, "column": 15 }, "end": { "line": 63, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1864, "end": 1868, "loc": { "start": { "line": 63, "column": 16 }, "end": { "line": 63, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1868, "end": 1869, "loc": { "start": { "line": 63, "column": 20 }, "end": { "line": 63, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToItem", "start": 1869, "end": 1883, "loc": { "start": { "line": 63, "column": 21 }, "end": { "line": 63, "column": 35 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1883, "end": 1884, "loc": { "start": { "line": 63, "column": 35 }, "end": { "line": 63, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hash", "start": 1884, "end": 1888, "loc": { "start": { "line": 63, "column": 36 }, "end": { "line": 63, "column": 40 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1888, "end": 1889, "loc": { "start": { "line": 63, "column": 40 }, "end": { "line": 63, "column": 41 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1890, "end": 1891, "loc": { "start": { "line": 63, "column": 42 }, "end": { "line": 63, "column": 43 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 1892, "end": 1895, "loc": { "start": { "line": 63, "column": 44 }, "end": { "line": 63, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeItem", "start": 1896, "end": 1905, "loc": { "start": { "line": 63, "column": 48 }, "end": { "line": 63, "column": 57 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1905, "end": 1906, "loc": { "start": { "line": 63, "column": 57 }, "end": { "line": 63, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 1906, "end": 1916, "loc": { "start": { "line": 63, "column": 58 }, "end": { "line": 63, "column": 68 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1916, "end": 1917, "loc": { "start": { "line": 63, "column": 68 }, "end": { "line": 63, "column": 69 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1917, "end": 1918, "loc": { "start": { "line": 63, "column": 69 }, "end": { "line": 63, "column": 70 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1918, "end": 1919, "loc": { "start": { "line": 63, "column": 70 }, "end": { "line": 63, "column": 71 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1925, "end": 1926, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a shape item for a given definition\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeItem}\r\n ", "start": 1934, "end": 2071, "loc": { "start": { "line": 66, "column": 4 }, "end": { "line": 70, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getShapeItemFromDefinition", "start": 2077, "end": 2103, "loc": { "start": { "line": 71, "column": 4 }, "end": { "line": 71, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2103, "end": 2104, "loc": { "start": { "line": 71, "column": 30 }, "end": { "line": 71, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2104, "end": 2114, "loc": { "start": { "line": 71, "column": 31 }, "end": { "line": 71, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2114, "end": 2115, "loc": { "start": { "line": 71, "column": 41 }, "end": { "line": 71, "column": 42 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2116, "end": 2117, "loc": { "start": { "line": 71, "column": 43 }, "end": { "line": 71, "column": 44 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 2127, "end": 2133, "loc": { "start": { "line": 72, "column": 8 }, "end": { "line": 72, "column": 14 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2134, "end": 2138, "loc": { "start": { "line": 72, "column": 15 }, "end": { "line": 72, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2138, "end": 2139, "loc": { "start": { "line": 72, "column": 19 }, "end": { "line": 72, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getShapeItemFromShortKey", "start": 2139, "end": 2163, "loc": { "start": { "line": 72, "column": 20 }, "end": { "line": 72, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2163, "end": 2164, "loc": { "start": { "line": 72, "column": 44 }, "end": { "line": 72, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2164, "end": 2174, "loc": { "start": { "line": 72, "column": 45 }, "end": { "line": 72, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2174, "end": 2175, "loc": { "start": { "line": 72, "column": 55 }, "end": { "line": 72, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 2175, "end": 2182, "loc": { "start": { "line": 72, "column": 56 }, "end": { "line": 72, "column": 63 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2182, "end": 2183, "loc": { "start": { "line": 72, "column": 63 }, "end": { "line": 72, "column": 64 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2183, "end": 2184, "loc": { "start": { "line": 72, "column": 64 }, "end": { "line": 72, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2184, "end": 2185, "loc": { "start": { "line": 72, "column": 65 }, "end": { "line": 72, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2185, "end": 2186, "loc": { "start": { "line": 72, "column": 66 }, "end": { "line": 72, "column": 67 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2192, "end": 2193, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Registers a new shape definition\r\n * @param {ShapeDefinition} definition\r\n ", "start": 2201, "end": 2298, "loc": { "start": { "line": 75, "column": 4 }, "end": { "line": 78, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerShapeDefinition", "start": 2304, "end": 2327, "loc": { "start": { "line": 79, "column": 4 }, "end": { "line": 79, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2327, "end": 2328, "loc": { "start": { "line": 79, "column": 27 }, "end": { "line": 79, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2328, "end": 2338, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2338, "end": 2339, "loc": { "start": { "line": 79, "column": 38 }, "end": { "line": 79, "column": 39 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2340, "end": 2341, "loc": { "start": { "line": 79, "column": 40 }, "end": { "line": 79, "column": 41 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 2351, "end": 2356, "loc": { "start": { "line": 80, "column": 8 }, "end": { "line": 80, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 2357, "end": 2359, "loc": { "start": { "line": 80, "column": 14 }, "end": { "line": 80, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2360, "end": 2361, "loc": { "start": { "line": 80, "column": 17 }, "end": { "line": 80, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2362, "end": 2372, "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2372, "end": 2373, "loc": { "start": { "line": 80, "column": 29 }, "end": { "line": 80, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 2373, "end": 2380, "loc": { "start": { "line": 80, "column": 30 }, "end": { "line": 80, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2380, "end": 2381, "loc": { "start": { "line": 80, "column": 37 }, "end": { "line": 80, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2381, "end": 2382, "loc": { "start": { "line": 80, "column": 38 }, "end": { "line": 80, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2382, "end": 2383, "loc": { "start": { "line": 80, "column": 39 }, "end": { "line": 80, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 2393, "end": 2399, "loc": { "start": { "line": 81, "column": 8 }, "end": { "line": 81, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2399, "end": 2400, "loc": { "start": { "line": 81, "column": 14 }, "end": { "line": 81, "column": 15 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 2400, "end": 2401, "loc": { "start": { "line": 81, "column": 15 }, "end": { "line": 81, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2401, "end": 2405, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2405, "end": 2406, "loc": { "start": { "line": 81, "column": 20 }, "end": { "line": 81, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 2406, "end": 2426, "loc": { "start": { "line": 81, "column": 21 }, "end": { "line": 81, "column": 41 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2426, "end": 2427, "loc": { "start": { "line": 81, "column": 41 }, "end": { "line": 81, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 2427, "end": 2429, "loc": { "start": { "line": 81, "column": 42 }, "end": { "line": 81, "column": 44 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2429, "end": 2430, "loc": { "start": { "line": 81, "column": 44 }, "end": { "line": 81, "column": 45 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2430, "end": 2431, "loc": { "start": { "line": 81, "column": 45 }, "end": { "line": 81, "column": 46 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Shape Definition ", "start": 2432, "end": 2451, "loc": { "start": { "line": 81, "column": 47 }, "end": { "line": 81, "column": 66 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2452, "end": 2453, "loc": { "start": { "line": 81, "column": 67 }, "end": { "line": 81, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 2454, "end": 2456, "loc": { "start": { "line": 81, "column": 69 }, "end": { "line": 81, "column": 71 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2457, "end": 2458, "loc": { "start": { "line": 81, "column": 72 }, "end": { "line": 81, "column": 73 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": " already exists", "start": 2459, "end": 2476, "loc": { "start": { "line": 81, "column": 74 }, "end": { "line": 81, "column": 91 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2476, "end": 2477, "loc": { "start": { "line": 81, "column": 91 }, "end": { "line": 81, "column": 92 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2477, "end": 2478, "loc": { "start": { "line": 81, "column": 92 }, "end": { "line": 81, "column": 93 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2488, "end": 2492, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2492, "end": 2493, "loc": { "start": { "line": 82, "column": 12 }, "end": { "line": 82, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 2493, "end": 2513, "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 33 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2513, "end": 2514, "loc": { "start": { "line": 82, "column": 33 }, "end": { "line": 82, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 2514, "end": 2516, "loc": { "start": { "line": 82, "column": 34 }, "end": { "line": 82, "column": 36 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2516, "end": 2517, "loc": { "start": { "line": 82, "column": 36 }, "end": { "line": 82, "column": 37 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2518, "end": 2519, "loc": { "start": { "line": 82, "column": 38 }, "end": { "line": 82, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2520, "end": 2530, "loc": { "start": { "line": 82, "column": 40 }, "end": { "line": 82, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2530, "end": 2531, "loc": { "start": { "line": 82, "column": 50 }, "end": { "line": 82, "column": 51 } } }, { "type": "CommentLine", "value": " logger.log(\"Registered shape with key\", id);", "start": 2541, "end": 2588, "loc": { "start": { "line": 83, "column": 8 }, "end": { "line": 83, "column": 55 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2594, "end": 2595, "loc": { "start": { "line": 84, "column": 4 }, "end": { "line": 84, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in two halfs\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition]}\r\n ", "start": 2603, "end": 2790, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 90, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionCutHalf", "start": 2796, "end": 2814, "loc": { "start": { "line": 91, "column": 4 }, "end": { "line": 91, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2814, "end": 2815, "loc": { "start": { "line": 91, "column": 22 }, "end": { "line": 91, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2815, "end": 2825, "loc": { "start": { "line": 91, "column": 23 }, "end": { "line": 91, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2825, "end": 2826, "loc": { "start": { "line": 91, "column": 33 }, "end": { "line": 91, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2827, "end": 2828, "loc": { "start": { "line": 91, "column": 35 }, "end": { "line": 91, "column": 36 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 2838, "end": 2843, "loc": { "start": { "line": 92, "column": 8 }, "end": { "line": 92, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 2844, "end": 2847, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2848, "end": 2849, "loc": { "start": { "line": 92, "column": 18 }, "end": { "line": 92, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "cut/", "start": 2850, "end": 2856, "loc": { "start": { "line": 92, "column": 20 }, "end": { "line": 92, "column": 26 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2857, "end": 2858, "loc": { "start": { "line": 92, "column": 27 }, "end": { "line": 92, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2859, "end": 2869, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2869, "end": 2870, "loc": { "start": { "line": 92, "column": 39 }, "end": { "line": 92, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 2870, "end": 2877, "loc": { "start": { "line": 92, "column": 40 }, "end": { "line": 92, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2877, "end": 2878, "loc": { "start": { "line": 92, "column": 47 }, "end": { "line": 92, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2878, "end": 2879, "loc": { "start": { "line": 92, "column": 48 }, "end": { "line": 92, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2879, "end": 2880, "loc": { "start": { "line": 92, "column": 49 }, "end": { "line": 92, "column": 50 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2890, "end": 2892, "loc": { "start": { "line": 93, "column": 8 }, "end": { "line": 93, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2893, "end": 2894, "loc": { "start": { "line": 93, "column": 11 }, "end": { "line": 93, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2894, "end": 2898, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2898, "end": 2899, "loc": { "start": { "line": 93, "column": 16 }, "end": { "line": 93, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 2899, "end": 2913, "loc": { "start": { "line": 93, "column": 17 }, "end": { "line": 93, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2913, "end": 2914, "loc": { "start": { "line": 93, "column": 31 }, "end": { "line": 93, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 2914, "end": 2917, "loc": { "start": { "line": 93, "column": 32 }, "end": { "line": 93, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2917, "end": 2918, "loc": { "start": { "line": 93, "column": 35 }, "end": { "line": 93, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2918, "end": 2919, "loc": { "start": { "line": 93, "column": 36 }, "end": { "line": 93, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2920, "end": 2921, "loc": { "start": { "line": 93, "column": 38 }, "end": { "line": 93, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 2935, "end": 2941, "loc": { "start": { "line": 94, "column": 12 }, "end": { "line": 94, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition]} ", "start": 2942, "end": 2991, "loc": { "start": { "line": 94, "column": 19 }, "end": { "line": 94, "column": 68 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2992, "end": 2993, "loc": { "start": { "line": 94, "column": 69 }, "end": { "line": 94, "column": 70 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2993, "end": 2997, "loc": { "start": { "line": 94, "column": 70 }, "end": { "line": 94, "column": 74 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2997, "end": 2998, "loc": { "start": { "line": 94, "column": 74 }, "end": { "line": 94, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 2998, "end": 3012, "loc": { "start": { "line": 94, "column": 75 }, "end": { "line": 94, "column": 89 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3012, "end": 3013, "loc": { "start": { "line": 94, "column": 89 }, "end": { "line": 94, "column": 90 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3013, "end": 3016, "loc": { "start": { "line": 94, "column": 90 }, "end": { "line": 94, "column": 93 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3016, "end": 3017, "loc": { "start": { "line": 94, "column": 93 }, "end": { "line": 94, "column": 94 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3017, "end": 3018, "loc": { "start": { "line": 94, "column": 94 }, "end": { "line": 94, "column": 95 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3018, "end": 3019, "loc": { "start": { "line": 94, "column": 95 }, "end": { "line": 94, "column": 96 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3029, "end": 3030, "loc": { "start": { "line": 95, "column": 8 }, "end": { "line": 95, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 3040, "end": 3045, "loc": { "start": { "line": 96, "column": 8 }, "end": { "line": 96, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rightSide", "start": 3046, "end": 3055, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3056, "end": 3057, "loc": { "start": { "line": 96, "column": 24 }, "end": { "line": 96, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 3058, "end": 3068, "loc": { "start": { "line": 96, "column": 26 }, "end": { "line": 96, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3068, "end": 3069, "loc": { "start": { "line": 96, "column": 36 }, "end": { "line": 96, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 3069, "end": 3093, "loc": { "start": { "line": 96, "column": 37 }, "end": { "line": 96, "column": 61 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3093, "end": 3094, "loc": { "start": { "line": 96, "column": 61 }, "end": { "line": 96, "column": 62 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3094, "end": 3095, "loc": { "start": { "line": 96, "column": 62 }, "end": { "line": 96, "column": 63 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 3095, "end": 3096, "loc": { "start": { "line": 96, "column": 63 }, "end": { "line": 96, "column": 64 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3096, "end": 3097, "loc": { "start": { "line": 96, "column": 64 }, "end": { "line": 96, "column": 65 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 3, "start": 3098, "end": 3099, "loc": { "start": { "line": 96, "column": 66 }, "end": { "line": 96, "column": 67 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3099, "end": 3100, "loc": { "start": { "line": 96, "column": 67 }, "end": { "line": 96, "column": 68 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3100, "end": 3101, "loc": { "start": { "line": 96, "column": 68 }, "end": { "line": 96, "column": 69 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3101, "end": 3102, "loc": { "start": { "line": 96, "column": 69 }, "end": { "line": 96, "column": 70 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 3112, "end": 3117, "loc": { "start": { "line": 97, "column": 8 }, "end": { "line": 97, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "leftSide", "start": 3118, "end": 3126, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3127, "end": 3128, "loc": { "start": { "line": 97, "column": 23 }, "end": { "line": 97, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 3129, "end": 3139, "loc": { "start": { "line": 97, "column": 25 }, "end": { "line": 97, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3139, "end": 3140, "loc": { "start": { "line": 97, "column": 35 }, "end": { "line": 97, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 3140, "end": 3164, "loc": { "start": { "line": 97, "column": 36 }, "end": { "line": 97, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3164, "end": 3165, "loc": { "start": { "line": 97, "column": 60 }, "end": { "line": 97, "column": 61 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3165, "end": 3166, "loc": { "start": { "line": 97, "column": 61 }, "end": { "line": 97, "column": 62 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 3166, "end": 3167, "loc": { "start": { "line": 97, "column": 62 }, "end": { "line": 97, "column": 63 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3167, "end": 3168, "loc": { "start": { "line": 97, "column": 63 }, "end": { "line": 97, "column": 64 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 3169, "end": 3170, "loc": { "start": { "line": 97, "column": 65 }, "end": { "line": 97, "column": 66 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3170, "end": 3171, "loc": { "start": { "line": 97, "column": 66 }, "end": { "line": 97, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3171, "end": 3172, "loc": { "start": { "line": 97, "column": 67 }, "end": { "line": 97, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3172, "end": 3173, "loc": { "start": { "line": 97, "column": 68 }, "end": { "line": 97, "column": 69 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 3185, "end": 3191, "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 99, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition]} ", "start": 3192, "end": 3241, "loc": { "start": { "line": 99, "column": 15 }, "end": { "line": 99, "column": 64 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3242, "end": 3243, "loc": { "start": { "line": 99, "column": 65 }, "end": { "line": 99, "column": 66 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3243, "end": 3247, "loc": { "start": { "line": 99, "column": 66 }, "end": { "line": 99, "column": 70 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3247, "end": 3248, "loc": { "start": { "line": 99, "column": 70 }, "end": { "line": 99, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 3248, "end": 3262, "loc": { "start": { "line": 99, "column": 71 }, "end": { "line": 99, "column": 85 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3262, "end": 3263, "loc": { "start": { "line": 99, "column": 85 }, "end": { "line": 99, "column": 86 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3263, "end": 3266, "loc": { "start": { "line": 99, "column": 86 }, "end": { "line": 99, "column": 89 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3266, "end": 3267, "loc": { "start": { "line": 99, "column": 89 }, "end": { "line": 99, "column": 90 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3268, "end": 3269, "loc": { "start": { "line": 99, "column": 91 }, "end": { "line": 99, "column": 92 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3270, "end": 3271, "loc": { "start": { "line": 99, "column": 93 }, "end": { "line": 99, "column": 94 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3285, "end": 3289, "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3289, "end": 3290, "loc": { "start": { "line": 100, "column": 16 }, "end": { "line": 100, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 3290, "end": 3312, "loc": { "start": { "line": 100, "column": 17 }, "end": { "line": 100, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3312, "end": 3313, "loc": { "start": { "line": 100, "column": 39 }, "end": { "line": 100, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rightSide", "start": 3313, "end": 3322, "loc": { "start": { "line": 100, "column": 40 }, "end": { "line": 100, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3322, "end": 3323, "loc": { "start": { "line": 100, "column": 49 }, "end": { "line": 100, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3323, "end": 3324, "loc": { "start": { "line": 100, "column": 50 }, "end": { "line": 100, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3338, "end": 3342, "loc": { "start": { "line": 101, "column": 12 }, "end": { "line": 101, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3342, "end": 3343, "loc": { "start": { "line": 101, "column": 16 }, "end": { "line": 101, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 3343, "end": 3365, "loc": { "start": { "line": 101, "column": 17 }, "end": { "line": 101, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3365, "end": 3366, "loc": { "start": { "line": 101, "column": 39 }, "end": { "line": 101, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "leftSide", "start": 3366, "end": 3374, "loc": { "start": { "line": 101, "column": 40 }, "end": { "line": 101, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3374, "end": 3375, "loc": { "start": { "line": 101, "column": 48 }, "end": { "line": 101, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3375, "end": 3376, "loc": { "start": { "line": 101, "column": 49 }, "end": { "line": 101, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3386, "end": 3387, "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 102, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3387, "end": 3388, "loc": { "start": { "line": 102, "column": 9 }, "end": { "line": 102, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3388, "end": 3389, "loc": { "start": { "line": 102, "column": 10 }, "end": { "line": 102, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3395, "end": 3396, "loc": { "start": { "line": 103, "column": 4 }, "end": { "line": 103, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for splitting a shape definition in four quads\r\n * @param {ShapeDefinition} definition\r\n * @returns {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]}\r\n ", "start": 3404, "end": 3626, "loc": { "start": { "line": 105, "column": 4 }, "end": { "line": 109, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionCutQuad", "start": 3632, "end": 3650, "loc": { "start": { "line": 110, "column": 4 }, "end": { "line": 110, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3650, "end": 3651, "loc": { "start": { "line": 110, "column": 22 }, "end": { "line": 110, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 3651, "end": 3661, "loc": { "start": { "line": 110, "column": 23 }, "end": { "line": 110, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3661, "end": 3662, "loc": { "start": { "line": 110, "column": 33 }, "end": { "line": 110, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3663, "end": 3664, "loc": { "start": { "line": 110, "column": 35 }, "end": { "line": 110, "column": 36 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 3674, "end": 3679, "loc": { "start": { "line": 111, "column": 8 }, "end": { "line": 111, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3680, "end": 3683, "loc": { "start": { "line": 111, "column": 14 }, "end": { "line": 111, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3684, "end": 3685, "loc": { "start": { "line": 111, "column": 18 }, "end": { "line": 111, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "cut-quad/", "start": 3686, "end": 3697, "loc": { "start": { "line": 111, "column": 20 }, "end": { "line": 111, "column": 31 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3698, "end": 3699, "loc": { "start": { "line": 111, "column": 32 }, "end": { "line": 111, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 3700, "end": 3710, "loc": { "start": { "line": 111, "column": 34 }, "end": { "line": 111, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3710, "end": 3711, "loc": { "start": { "line": 111, "column": 44 }, "end": { "line": 111, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 3711, "end": 3718, "loc": { "start": { "line": 111, "column": 45 }, "end": { "line": 111, "column": 52 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3718, "end": 3719, "loc": { "start": { "line": 111, "column": 52 }, "end": { "line": 111, "column": 53 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3719, "end": 3720, "loc": { "start": { "line": 111, "column": 53 }, "end": { "line": 111, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3720, "end": 3721, "loc": { "start": { "line": 111, "column": 54 }, "end": { "line": 111, "column": 55 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 3731, "end": 3733, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 112, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3734, "end": 3735, "loc": { "start": { "line": 112, "column": 11 }, "end": { "line": 112, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3735, "end": 3739, "loc": { "start": { "line": 112, "column": 12 }, "end": { "line": 112, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3739, "end": 3740, "loc": { "start": { "line": 112, "column": 16 }, "end": { "line": 112, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 3740, "end": 3754, "loc": { "start": { "line": 112, "column": 17 }, "end": { "line": 112, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3754, "end": 3755, "loc": { "start": { "line": 112, "column": 31 }, "end": { "line": 112, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3755, "end": 3758, "loc": { "start": { "line": 112, "column": 32 }, "end": { "line": 112, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3758, "end": 3759, "loc": { "start": { "line": 112, "column": 35 }, "end": { "line": 112, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3759, "end": 3760, "loc": { "start": { "line": 112, "column": 36 }, "end": { "line": 112, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3761, "end": 3762, "loc": { "start": { "line": 112, "column": 38 }, "end": { "line": 112, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 3776, "end": 3782, "loc": { "start": { "line": 113, "column": 12 }, "end": { "line": 113, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]} ", "start": 3783, "end": 3866, "loc": { "start": { "line": 113, "column": 19 }, "end": { "line": 113, "column": 102 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3867, "end": 3868, "loc": { "start": { "line": 113, "column": 103 }, "end": { "line": 113, "column": 104 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3868, "end": 3872, "loc": { "start": { "line": 113, "column": 104 }, "end": { "line": 113, "column": 108 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3890, "end": 3891, "loc": { "start": { "line": 114, "column": 16 }, "end": { "line": 114, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 3891, "end": 3905, "loc": { "start": { "line": 114, "column": 17 }, "end": { "line": 114, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3905, "end": 3906, "loc": { "start": { "line": 114, "column": 31 }, "end": { "line": 114, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3906, "end": 3909, "loc": { "start": { "line": 114, "column": 32 }, "end": { "line": 114, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3909, "end": 3910, "loc": { "start": { "line": 114, "column": 35 }, "end": { "line": 114, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3910, "end": 3911, "loc": { "start": { "line": 114, "column": 36 }, "end": { "line": 114, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3911, "end": 3912, "loc": { "start": { "line": 114, "column": 37 }, "end": { "line": 114, "column": 38 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3922, "end": 3923, "loc": { "start": { "line": 115, "column": 8 }, "end": { "line": 115, "column": 9 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 3935, "end": 3941, "loc": { "start": { "line": 117, "column": 8 }, "end": { "line": 117, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {[ShapeDefinition, ShapeDefinition, ShapeDefinition, ShapeDefinition]} ", "start": 3942, "end": 4025, "loc": { "start": { "line": 117, "column": 15 }, "end": { "line": 117, "column": 98 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4026, "end": 4027, "loc": { "start": { "line": 117, "column": 99 }, "end": { "line": 117, "column": 100 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4027, "end": 4031, "loc": { "start": { "line": 117, "column": 100 }, "end": { "line": 117, "column": 104 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4031, "end": 4032, "loc": { "start": { "line": 117, "column": 104 }, "end": { "line": 117, "column": 105 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 4032, "end": 4046, "loc": { "start": { "line": 117, "column": 105 }, "end": { "line": 117, "column": 119 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4046, "end": 4047, "loc": { "start": { "line": 117, "column": 119 }, "end": { "line": 117, "column": 120 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4061, "end": 4064, "loc": { "start": { "line": 118, "column": 12 }, "end": { "line": 118, "column": 15 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4074, "end": 4075, "loc": { "start": { "line": 119, "column": 8 }, "end": { "line": 119, "column": 9 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4076, "end": 4077, "loc": { "start": { "line": 119, "column": 10 }, "end": { "line": 119, "column": 11 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4078, "end": 4079, "loc": { "start": { "line": 119, "column": 12 }, "end": { "line": 119, "column": 13 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4093, "end": 4097, "loc": { "start": { "line": 120, "column": 12 }, "end": { "line": 120, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4097, "end": 4098, "loc": { "start": { "line": 120, "column": 16 }, "end": { "line": 120, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 4098, "end": 4120, "loc": { "start": { "line": 120, "column": 17 }, "end": { "line": 120, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4120, "end": 4121, "loc": { "start": { "line": 120, "column": 39 }, "end": { "line": 120, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4121, "end": 4131, "loc": { "start": { "line": 120, "column": 40 }, "end": { "line": 120, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4131, "end": 4132, "loc": { "start": { "line": 120, "column": 50 }, "end": { "line": 120, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 4132, "end": 4156, "loc": { "start": { "line": 120, "column": 51 }, "end": { "line": 120, "column": 75 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4156, "end": 4157, "loc": { "start": { "line": 120, "column": 75 }, "end": { "line": 120, "column": 76 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4157, "end": 4158, "loc": { "start": { "line": 120, "column": 76 }, "end": { "line": 120, "column": 77 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 4158, "end": 4159, "loc": { "start": { "line": 120, "column": 77 }, "end": { "line": 120, "column": 78 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4159, "end": 4160, "loc": { "start": { "line": 120, "column": 78 }, "end": { "line": 120, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4160, "end": 4161, "loc": { "start": { "line": 120, "column": 79 }, "end": { "line": 120, "column": 80 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4161, "end": 4162, "loc": { "start": { "line": 120, "column": 80 }, "end": { "line": 120, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4162, "end": 4163, "loc": { "start": { "line": 120, "column": 81 }, "end": { "line": 120, "column": 82 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4177, "end": 4181, "loc": { "start": { "line": 121, "column": 12 }, "end": { "line": 121, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4181, "end": 4182, "loc": { "start": { "line": 121, "column": 16 }, "end": { "line": 121, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 4182, "end": 4204, "loc": { "start": { "line": 121, "column": 17 }, "end": { "line": 121, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4204, "end": 4205, "loc": { "start": { "line": 121, "column": 39 }, "end": { "line": 121, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4205, "end": 4215, "loc": { "start": { "line": 121, "column": 40 }, "end": { "line": 121, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4215, "end": 4216, "loc": { "start": { "line": 121, "column": 50 }, "end": { "line": 121, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 4216, "end": 4240, "loc": { "start": { "line": 121, "column": 51 }, "end": { "line": 121, "column": 75 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4240, "end": 4241, "loc": { "start": { "line": 121, "column": 75 }, "end": { "line": 121, "column": 76 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4241, "end": 4242, "loc": { "start": { "line": 121, "column": 76 }, "end": { "line": 121, "column": 77 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 4242, "end": 4243, "loc": { "start": { "line": 121, "column": 77 }, "end": { "line": 121, "column": 78 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4243, "end": 4244, "loc": { "start": { "line": 121, "column": 78 }, "end": { "line": 121, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4244, "end": 4245, "loc": { "start": { "line": 121, "column": 79 }, "end": { "line": 121, "column": 80 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4245, "end": 4246, "loc": { "start": { "line": 121, "column": 80 }, "end": { "line": 121, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4246, "end": 4247, "loc": { "start": { "line": 121, "column": 81 }, "end": { "line": 121, "column": 82 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4261, "end": 4265, "loc": { "start": { "line": 122, "column": 12 }, "end": { "line": 122, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4265, "end": 4266, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 4266, "end": 4288, "loc": { "start": { "line": 122, "column": 17 }, "end": { "line": 122, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4288, "end": 4289, "loc": { "start": { "line": 122, "column": 39 }, "end": { "line": 122, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4289, "end": 4299, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4299, "end": 4300, "loc": { "start": { "line": 122, "column": 50 }, "end": { "line": 122, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 4300, "end": 4324, "loc": { "start": { "line": 122, "column": 51 }, "end": { "line": 122, "column": 75 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4324, "end": 4325, "loc": { "start": { "line": 122, "column": 75 }, "end": { "line": 122, "column": 76 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4325, "end": 4326, "loc": { "start": { "line": 122, "column": 76 }, "end": { "line": 122, "column": 77 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 4326, "end": 4327, "loc": { "start": { "line": 122, "column": 77 }, "end": { "line": 122, "column": 78 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4327, "end": 4328, "loc": { "start": { "line": 122, "column": 78 }, "end": { "line": 122, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4328, "end": 4329, "loc": { "start": { "line": 122, "column": 79 }, "end": { "line": 122, "column": 80 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4329, "end": 4330, "loc": { "start": { "line": 122, "column": 80 }, "end": { "line": 122, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4330, "end": 4331, "loc": { "start": { "line": 122, "column": 81 }, "end": { "line": 122, "column": 82 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4345, "end": 4349, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4349, "end": 4350, "loc": { "start": { "line": 123, "column": 16 }, "end": { "line": 123, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 4350, "end": 4372, "loc": { "start": { "line": 123, "column": 17 }, "end": { "line": 123, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4372, "end": 4373, "loc": { "start": { "line": 123, "column": 39 }, "end": { "line": 123, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4373, "end": 4383, "loc": { "start": { "line": 123, "column": 40 }, "end": { "line": 123, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4383, "end": 4384, "loc": { "start": { "line": 123, "column": 50 }, "end": { "line": 123, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 4384, "end": 4408, "loc": { "start": { "line": 123, "column": 51 }, "end": { "line": 123, "column": 75 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4408, "end": 4409, "loc": { "start": { "line": 123, "column": 75 }, "end": { "line": 123, "column": 76 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4409, "end": 4410, "loc": { "start": { "line": 123, "column": 76 }, "end": { "line": 123, "column": 77 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 3, "start": 4410, "end": 4411, "loc": { "start": { "line": 123, "column": 77 }, "end": { "line": 123, "column": 78 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4411, "end": 4412, "loc": { "start": { "line": 123, "column": 78 }, "end": { "line": 123, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4412, "end": 4413, "loc": { "start": { "line": 123, "column": 79 }, "end": { "line": 123, "column": 80 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4413, "end": 4414, "loc": { "start": { "line": 123, "column": 80 }, "end": { "line": 123, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4414, "end": 4415, "loc": { "start": { "line": 123, "column": 81 }, "end": { "line": 123, "column": 82 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4425, "end": 4426, "loc": { "start": { "line": 124, "column": 8 }, "end": { "line": 124, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4426, "end": 4427, "loc": { "start": { "line": 124, "column": 9 }, "end": { "line": 124, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4427, "end": 4428, "loc": { "start": { "line": 124, "column": 10 }, "end": { "line": 124, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4434, "end": 4435, "loc": { "start": { "line": 125, "column": 4 }, "end": { "line": 125, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 4443, "end": 4596, "loc": { "start": { "line": 127, "column": 4 }, "end": { "line": 131, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionRotateCW", "start": 4602, "end": 4621, "loc": { "start": { "line": 132, "column": 4 }, "end": { "line": 132, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4621, "end": 4622, "loc": { "start": { "line": 132, "column": 23 }, "end": { "line": 132, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4622, "end": 4632, "loc": { "start": { "line": 132, "column": 24 }, "end": { "line": 132, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4632, "end": 4633, "loc": { "start": { "line": 132, "column": 34 }, "end": { "line": 132, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4634, "end": 4635, "loc": { "start": { "line": 132, "column": 36 }, "end": { "line": 132, "column": 37 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 4645, "end": 4650, "loc": { "start": { "line": 133, "column": 8 }, "end": { "line": 133, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4651, "end": 4654, "loc": { "start": { "line": 133, "column": 14 }, "end": { "line": 133, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4655, "end": 4656, "loc": { "start": { "line": 133, "column": 18 }, "end": { "line": 133, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "rotate-cw/", "start": 4657, "end": 4669, "loc": { "start": { "line": 133, "column": 20 }, "end": { "line": 133, "column": 32 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 4670, "end": 4671, "loc": { "start": { "line": 133, "column": 33 }, "end": { "line": 133, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4672, "end": 4682, "loc": { "start": { "line": 133, "column": 35 }, "end": { "line": 133, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4682, "end": 4683, "loc": { "start": { "line": 133, "column": 45 }, "end": { "line": 133, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 4683, "end": 4690, "loc": { "start": { "line": 133, "column": 46 }, "end": { "line": 133, "column": 53 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4690, "end": 4691, "loc": { "start": { "line": 133, "column": 53 }, "end": { "line": 133, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4691, "end": 4692, "loc": { "start": { "line": 133, "column": 54 }, "end": { "line": 133, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4692, "end": 4693, "loc": { "start": { "line": 133, "column": 55 }, "end": { "line": 133, "column": 56 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 4703, "end": 4705, "loc": { "start": { "line": 134, "column": 8 }, "end": { "line": 134, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4706, "end": 4707, "loc": { "start": { "line": 134, "column": 11 }, "end": { "line": 134, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4707, "end": 4711, "loc": { "start": { "line": 134, "column": 12 }, "end": { "line": 134, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4711, "end": 4712, "loc": { "start": { "line": 134, "column": 16 }, "end": { "line": 134, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 4712, "end": 4726, "loc": { "start": { "line": 134, "column": 17 }, "end": { "line": 134, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4726, "end": 4727, "loc": { "start": { "line": 134, "column": 31 }, "end": { "line": 134, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4727, "end": 4730, "loc": { "start": { "line": 134, "column": 32 }, "end": { "line": 134, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4730, "end": 4731, "loc": { "start": { "line": 134, "column": 35 }, "end": { "line": 134, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4731, "end": 4732, "loc": { "start": { "line": 134, "column": 36 }, "end": { "line": 134, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4733, "end": 4734, "loc": { "start": { "line": 134, "column": 38 }, "end": { "line": 134, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 4748, "end": 4754, "loc": { "start": { "line": 135, "column": 12 }, "end": { "line": 135, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 4755, "end": 4785, "loc": { "start": { "line": 135, "column": 19 }, "end": { "line": 135, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4786, "end": 4787, "loc": { "start": { "line": 135, "column": 50 }, "end": { "line": 135, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4787, "end": 4791, "loc": { "start": { "line": 135, "column": 51 }, "end": { "line": 135, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4791, "end": 4792, "loc": { "start": { "line": 135, "column": 55 }, "end": { "line": 135, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 4792, "end": 4806, "loc": { "start": { "line": 135, "column": 56 }, "end": { "line": 135, "column": 70 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4806, "end": 4807, "loc": { "start": { "line": 135, "column": 70 }, "end": { "line": 135, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4807, "end": 4810, "loc": { "start": { "line": 135, "column": 71 }, "end": { "line": 135, "column": 74 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4810, "end": 4811, "loc": { "start": { "line": 135, "column": 74 }, "end": { "line": 135, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4811, "end": 4812, "loc": { "start": { "line": 135, "column": 75 }, "end": { "line": 135, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4812, "end": 4813, "loc": { "start": { "line": 135, "column": 76 }, "end": { "line": 135, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4823, "end": 4824, "loc": { "start": { "line": 136, "column": 8 }, "end": { "line": 136, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 4836, "end": 4841, "loc": { "start": { "line": 138, "column": 8 }, "end": { "line": 138, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotated", "start": 4842, "end": 4849, "loc": { "start": { "line": 138, "column": 14 }, "end": { "line": 138, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4850, "end": 4851, "loc": { "start": { "line": 138, "column": 22 }, "end": { "line": 138, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4852, "end": 4862, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4862, "end": 4863, "loc": { "start": { "line": 138, "column": 34 }, "end": { "line": 138, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneRotateCW", "start": 4863, "end": 4876, "loc": { "start": { "line": 138, "column": 35 }, "end": { "line": 138, "column": 48 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4876, "end": 4877, "loc": { "start": { "line": 138, "column": 48 }, "end": { "line": 138, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4877, "end": 4878, "loc": { "start": { "line": 138, "column": 49 }, "end": { "line": 138, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4878, "end": 4879, "loc": { "start": { "line": 138, "column": 50 }, "end": { "line": 138, "column": 51 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 4891, "end": 4897, "loc": { "start": { "line": 140, "column": 8 }, "end": { "line": 140, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 4898, "end": 4928, "loc": { "start": { "line": 140, "column": 15 }, "end": { "line": 140, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4929, "end": 4930, "loc": { "start": { "line": 140, "column": 46 }, "end": { "line": 140, "column": 47 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4930, "end": 4934, "loc": { "start": { "line": 140, "column": 47 }, "end": { "line": 140, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4934, "end": 4935, "loc": { "start": { "line": 140, "column": 51 }, "end": { "line": 140, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 4935, "end": 4949, "loc": { "start": { "line": 140, "column": 52 }, "end": { "line": 140, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4949, "end": 4950, "loc": { "start": { "line": 140, "column": 66 }, "end": { "line": 140, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4950, "end": 4953, "loc": { "start": { "line": 140, "column": 67 }, "end": { "line": 140, "column": 70 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4953, "end": 4954, "loc": { "start": { "line": 140, "column": 70 }, "end": { "line": 140, "column": 71 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4955, "end": 4956, "loc": { "start": { "line": 140, "column": 72 }, "end": { "line": 140, "column": 73 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 4957, "end": 4961, "loc": { "start": { "line": 140, "column": 74 }, "end": { "line": 140, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4961, "end": 4962, "loc": { "start": { "line": 140, "column": 78 }, "end": { "line": 140, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 4962, "end": 4984, "loc": { "start": { "line": 140, "column": 79 }, "end": { "line": 140, "column": 101 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4984, "end": 4985, "loc": { "start": { "line": 140, "column": 101 }, "end": { "line": 140, "column": 102 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotated", "start": 4999, "end": 5006, "loc": { "start": { "line": 141, "column": 12 }, "end": { "line": 141, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5016, "end": 5017, "loc": { "start": { "line": 142, "column": 8 }, "end": { "line": 142, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5017, "end": 5018, "loc": { "start": { "line": 142, "column": 9 }, "end": { "line": 142, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5018, "end": 5019, "loc": { "start": { "line": 142, "column": 10 }, "end": { "line": 142, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5025, "end": 5026, "loc": { "start": { "line": 143, "column": 4 }, "end": { "line": 143, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape counter clockwise\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5034, "end": 5195, "loc": { "start": { "line": 145, "column": 4 }, "end": { "line": 149, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionRotateCCW", "start": 5201, "end": 5221, "loc": { "start": { "line": 150, "column": 4 }, "end": { "line": 150, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5221, "end": 5222, "loc": { "start": { "line": 150, "column": 24 }, "end": { "line": 150, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 5222, "end": 5232, "loc": { "start": { "line": 150, "column": 25 }, "end": { "line": 150, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5232, "end": 5233, "loc": { "start": { "line": 150, "column": 35 }, "end": { "line": 150, "column": 36 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5234, "end": 5235, "loc": { "start": { "line": 150, "column": 37 }, "end": { "line": 150, "column": 38 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 5245, "end": 5250, "loc": { "start": { "line": 151, "column": 8 }, "end": { "line": 151, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5251, "end": 5254, "loc": { "start": { "line": 151, "column": 14 }, "end": { "line": 151, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5255, "end": 5256, "loc": { "start": { "line": 151, "column": 18 }, "end": { "line": 151, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "rotate-ccw/", "start": 5257, "end": 5270, "loc": { "start": { "line": 151, "column": 20 }, "end": { "line": 151, "column": 33 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 5271, "end": 5272, "loc": { "start": { "line": 151, "column": 34 }, "end": { "line": 151, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 5273, "end": 5283, "loc": { "start": { "line": 151, "column": 36 }, "end": { "line": 151, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5283, "end": 5284, "loc": { "start": { "line": 151, "column": 46 }, "end": { "line": 151, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 5284, "end": 5291, "loc": { "start": { "line": 151, "column": 47 }, "end": { "line": 151, "column": 54 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5291, "end": 5292, "loc": { "start": { "line": 151, "column": 54 }, "end": { "line": 151, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5292, "end": 5293, "loc": { "start": { "line": 151, "column": 55 }, "end": { "line": 151, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5293, "end": 5294, "loc": { "start": { "line": 151, "column": 56 }, "end": { "line": 151, "column": 57 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 5304, "end": 5306, "loc": { "start": { "line": 152, "column": 8 }, "end": { "line": 152, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5307, "end": 5308, "loc": { "start": { "line": 152, "column": 11 }, "end": { "line": 152, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5308, "end": 5312, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5312, "end": 5313, "loc": { "start": { "line": 152, "column": 16 }, "end": { "line": 152, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 5313, "end": 5327, "loc": { "start": { "line": 152, "column": 17 }, "end": { "line": 152, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5327, "end": 5328, "loc": { "start": { "line": 152, "column": 31 }, "end": { "line": 152, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5328, "end": 5331, "loc": { "start": { "line": 152, "column": 32 }, "end": { "line": 152, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5331, "end": 5332, "loc": { "start": { "line": 152, "column": 35 }, "end": { "line": 152, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5332, "end": 5333, "loc": { "start": { "line": 152, "column": 36 }, "end": { "line": 152, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5334, "end": 5335, "loc": { "start": { "line": 152, "column": 38 }, "end": { "line": 152, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 5349, "end": 5355, "loc": { "start": { "line": 153, "column": 12 }, "end": { "line": 153, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5356, "end": 5386, "loc": { "start": { "line": 153, "column": 19 }, "end": { "line": 153, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5387, "end": 5388, "loc": { "start": { "line": 153, "column": 50 }, "end": { "line": 153, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5388, "end": 5392, "loc": { "start": { "line": 153, "column": 51 }, "end": { "line": 153, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5392, "end": 5393, "loc": { "start": { "line": 153, "column": 55 }, "end": { "line": 153, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 5393, "end": 5407, "loc": { "start": { "line": 153, "column": 56 }, "end": { "line": 153, "column": 70 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5407, "end": 5408, "loc": { "start": { "line": 153, "column": 70 }, "end": { "line": 153, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5408, "end": 5411, "loc": { "start": { "line": 153, "column": 71 }, "end": { "line": 153, "column": 74 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5411, "end": 5412, "loc": { "start": { "line": 153, "column": 74 }, "end": { "line": 153, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5412, "end": 5413, "loc": { "start": { "line": 153, "column": 75 }, "end": { "line": 153, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5413, "end": 5414, "loc": { "start": { "line": 153, "column": 76 }, "end": { "line": 153, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5424, "end": 5425, "loc": { "start": { "line": 154, "column": 8 }, "end": { "line": 154, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 5437, "end": 5442, "loc": { "start": { "line": 156, "column": 8 }, "end": { "line": 156, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotated", "start": 5443, "end": 5450, "loc": { "start": { "line": 156, "column": 14 }, "end": { "line": 156, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5451, "end": 5452, "loc": { "start": { "line": 156, "column": 22 }, "end": { "line": 156, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 5453, "end": 5463, "loc": { "start": { "line": 156, "column": 24 }, "end": { "line": 156, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5463, "end": 5464, "loc": { "start": { "line": 156, "column": 34 }, "end": { "line": 156, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneRotateCCW", "start": 5464, "end": 5478, "loc": { "start": { "line": 156, "column": 35 }, "end": { "line": 156, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5478, "end": 5479, "loc": { "start": { "line": 156, "column": 49 }, "end": { "line": 156, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5479, "end": 5480, "loc": { "start": { "line": 156, "column": 50 }, "end": { "line": 156, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5480, "end": 5481, "loc": { "start": { "line": 156, "column": 51 }, "end": { "line": 156, "column": 52 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 5493, "end": 5499, "loc": { "start": { "line": 158, "column": 8 }, "end": { "line": 158, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5500, "end": 5530, "loc": { "start": { "line": 158, "column": 15 }, "end": { "line": 158, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5531, "end": 5532, "loc": { "start": { "line": 158, "column": 46 }, "end": { "line": 158, "column": 47 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5532, "end": 5536, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 158, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5536, "end": 5537, "loc": { "start": { "line": 158, "column": 51 }, "end": { "line": 158, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 5537, "end": 5551, "loc": { "start": { "line": 158, "column": 52 }, "end": { "line": 158, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5551, "end": 5552, "loc": { "start": { "line": 158, "column": 66 }, "end": { "line": 158, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5552, "end": 5555, "loc": { "start": { "line": 158, "column": 67 }, "end": { "line": 158, "column": 70 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5555, "end": 5556, "loc": { "start": { "line": 158, "column": 70 }, "end": { "line": 158, "column": 71 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5557, "end": 5558, "loc": { "start": { "line": 158, "column": 72 }, "end": { "line": 158, "column": 73 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5559, "end": 5563, "loc": { "start": { "line": 158, "column": 74 }, "end": { "line": 158, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5563, "end": 5564, "loc": { "start": { "line": 158, "column": 78 }, "end": { "line": 158, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 5564, "end": 5586, "loc": { "start": { "line": 158, "column": 79 }, "end": { "line": 158, "column": 101 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5586, "end": 5587, "loc": { "start": { "line": 158, "column": 101 }, "end": { "line": 158, "column": 102 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotated", "start": 5601, "end": 5608, "loc": { "start": { "line": 159, "column": 12 }, "end": { "line": 159, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5618, "end": 5619, "loc": { "start": { "line": 160, "column": 8 }, "end": { "line": 160, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5619, "end": 5620, "loc": { "start": { "line": 160, "column": 9 }, "end": { "line": 160, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5620, "end": 5621, "loc": { "start": { "line": 160, "column": 10 }, "end": { "line": 160, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5627, "end": 5628, "loc": { "start": { "line": 161, "column": 4 }, "end": { "line": 161, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for rotating a shape FL\r\n * @param {ShapeDefinition} definition\r\n * @returns {ShapeDefinition}\r\n ", "start": 5636, "end": 5782, "loc": { "start": { "line": 163, "column": 4 }, "end": { "line": 167, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionRotate180", "start": 5788, "end": 5808, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 168, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5808, "end": 5809, "loc": { "start": { "line": 168, "column": 24 }, "end": { "line": 168, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 5809, "end": 5819, "loc": { "start": { "line": 168, "column": 25 }, "end": { "line": 168, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5819, "end": 5820, "loc": { "start": { "line": 168, "column": 35 }, "end": { "line": 168, "column": 36 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5821, "end": 5822, "loc": { "start": { "line": 168, "column": 37 }, "end": { "line": 168, "column": 38 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 5832, "end": 5837, "loc": { "start": { "line": 169, "column": 8 }, "end": { "line": 169, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5838, "end": 5841, "loc": { "start": { "line": 169, "column": 14 }, "end": { "line": 169, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5842, "end": 5843, "loc": { "start": { "line": 169, "column": 18 }, "end": { "line": 169, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "rotate-fl/", "start": 5844, "end": 5856, "loc": { "start": { "line": 169, "column": 20 }, "end": { "line": 169, "column": 32 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 5857, "end": 5858, "loc": { "start": { "line": 169, "column": 33 }, "end": { "line": 169, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 5859, "end": 5869, "loc": { "start": { "line": 169, "column": 35 }, "end": { "line": 169, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5869, "end": 5870, "loc": { "start": { "line": 169, "column": 45 }, "end": { "line": 169, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 5870, "end": 5877, "loc": { "start": { "line": 169, "column": 46 }, "end": { "line": 169, "column": 53 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5877, "end": 5878, "loc": { "start": { "line": 169, "column": 53 }, "end": { "line": 169, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5878, "end": 5879, "loc": { "start": { "line": 169, "column": 54 }, "end": { "line": 169, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5879, "end": 5880, "loc": { "start": { "line": 169, "column": 55 }, "end": { "line": 169, "column": 56 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 5890, "end": 5892, "loc": { "start": { "line": 170, "column": 8 }, "end": { "line": 170, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5893, "end": 5894, "loc": { "start": { "line": 170, "column": 11 }, "end": { "line": 170, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5894, "end": 5898, "loc": { "start": { "line": 170, "column": 12 }, "end": { "line": 170, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5898, "end": 5899, "loc": { "start": { "line": 170, "column": 16 }, "end": { "line": 170, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 5899, "end": 5913, "loc": { "start": { "line": 170, "column": 17 }, "end": { "line": 170, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5913, "end": 5914, "loc": { "start": { "line": 170, "column": 31 }, "end": { "line": 170, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5914, "end": 5917, "loc": { "start": { "line": 170, "column": 32 }, "end": { "line": 170, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5917, "end": 5918, "loc": { "start": { "line": 170, "column": 35 }, "end": { "line": 170, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5918, "end": 5919, "loc": { "start": { "line": 170, "column": 36 }, "end": { "line": 170, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5920, "end": 5921, "loc": { "start": { "line": 170, "column": 38 }, "end": { "line": 170, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 5935, "end": 5941, "loc": { "start": { "line": 171, "column": 12 }, "end": { "line": 171, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 5942, "end": 5972, "loc": { "start": { "line": 171, "column": 19 }, "end": { "line": 171, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5973, "end": 5974, "loc": { "start": { "line": 171, "column": 50 }, "end": { "line": 171, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5974, "end": 5978, "loc": { "start": { "line": 171, "column": 51 }, "end": { "line": 171, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5978, "end": 5979, "loc": { "start": { "line": 171, "column": 55 }, "end": { "line": 171, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 5979, "end": 5993, "loc": { "start": { "line": 171, "column": 56 }, "end": { "line": 171, "column": 70 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5993, "end": 5994, "loc": { "start": { "line": 171, "column": 70 }, "end": { "line": 171, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 5994, "end": 5997, "loc": { "start": { "line": 171, "column": 71 }, "end": { "line": 171, "column": 74 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5997, "end": 5998, "loc": { "start": { "line": 171, "column": 74 }, "end": { "line": 171, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5998, "end": 5999, "loc": { "start": { "line": 171, "column": 75 }, "end": { "line": 171, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5999, "end": 6000, "loc": { "start": { "line": 171, "column": 76 }, "end": { "line": 171, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6010, "end": 6011, "loc": { "start": { "line": 172, "column": 8 }, "end": { "line": 172, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 6023, "end": 6028, "loc": { "start": { "line": 174, "column": 8 }, "end": { "line": 174, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotated", "start": 6029, "end": 6036, "loc": { "start": { "line": 174, "column": 14 }, "end": { "line": 174, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6037, "end": 6038, "loc": { "start": { "line": 174, "column": 22 }, "end": { "line": 174, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 6039, "end": 6049, "loc": { "start": { "line": 174, "column": 24 }, "end": { "line": 174, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6049, "end": 6050, "loc": { "start": { "line": 174, "column": 34 }, "end": { "line": 174, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneRotate180", "start": 6050, "end": 6064, "loc": { "start": { "line": 174, "column": 35 }, "end": { "line": 174, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6064, "end": 6065, "loc": { "start": { "line": 174, "column": 49 }, "end": { "line": 174, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6065, "end": 6066, "loc": { "start": { "line": 174, "column": 50 }, "end": { "line": 174, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6066, "end": 6067, "loc": { "start": { "line": 174, "column": 51 }, "end": { "line": 174, "column": 52 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 6079, "end": 6085, "loc": { "start": { "line": 176, "column": 8 }, "end": { "line": 176, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6086, "end": 6116, "loc": { "start": { "line": 176, "column": 15 }, "end": { "line": 176, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6117, "end": 6118, "loc": { "start": { "line": 176, "column": 46 }, "end": { "line": 176, "column": 47 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 6118, "end": 6122, "loc": { "start": { "line": 176, "column": 47 }, "end": { "line": 176, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6122, "end": 6123, "loc": { "start": { "line": 176, "column": 51 }, "end": { "line": 176, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 6123, "end": 6137, "loc": { "start": { "line": 176, "column": 52 }, "end": { "line": 176, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6137, "end": 6138, "loc": { "start": { "line": 176, "column": 66 }, "end": { "line": 176, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 6138, "end": 6141, "loc": { "start": { "line": 176, "column": 67 }, "end": { "line": 176, "column": 70 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6141, "end": 6142, "loc": { "start": { "line": 176, "column": 70 }, "end": { "line": 176, "column": 71 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6143, "end": 6144, "loc": { "start": { "line": 176, "column": 72 }, "end": { "line": 176, "column": 73 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 6145, "end": 6149, "loc": { "start": { "line": 176, "column": 74 }, "end": { "line": 176, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6149, "end": 6150, "loc": { "start": { "line": 176, "column": 78 }, "end": { "line": 176, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 6150, "end": 6172, "loc": { "start": { "line": 176, "column": 79 }, "end": { "line": 176, "column": 101 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6172, "end": 6173, "loc": { "start": { "line": 176, "column": 101 }, "end": { "line": 176, "column": 102 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotated", "start": 6187, "end": 6194, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6204, "end": 6205, "loc": { "start": { "line": 178, "column": 8 }, "end": { "line": 178, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6205, "end": 6206, "loc": { "start": { "line": 178, "column": 9 }, "end": { "line": 178, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6206, "end": 6207, "loc": { "start": { "line": 178, "column": 10 }, "end": { "line": 178, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6213, "end": 6214, "loc": { "start": { "line": 179, "column": 4 }, "end": { "line": 179, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for stacking the upper definition onto the lower one\r\n * @param {ShapeDefinition} lowerDefinition\r\n * @param {ShapeDefinition} upperDefinition\r\n * @returns {ShapeDefinition}\r\n ", "start": 6222, "end": 6451, "loc": { "start": { "line": 181, "column": 4 }, "end": { "line": 186, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionStack", "start": 6457, "end": 6473, "loc": { "start": { "line": 187, "column": 4 }, "end": { "line": 187, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6473, "end": 6474, "loc": { "start": { "line": 187, "column": 20 }, "end": { "line": 187, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lowerDefinition", "start": 6474, "end": 6489, "loc": { "start": { "line": 187, "column": 21 }, "end": { "line": 187, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6489, "end": 6490, "loc": { "start": { "line": 187, "column": 36 }, "end": { "line": 187, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "upperDefinition", "start": 6491, "end": 6506, "loc": { "start": { "line": 187, "column": 38 }, "end": { "line": 187, "column": 53 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6506, "end": 6507, "loc": { "start": { "line": 187, "column": 53 }, "end": { "line": 187, "column": 54 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6508, "end": 6509, "loc": { "start": { "line": 187, "column": 55 }, "end": { "line": 187, "column": 56 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 6519, "end": 6524, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 6525, "end": 6528, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6529, "end": 6530, "loc": { "start": { "line": 188, "column": 18 }, "end": { "line": 188, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "stack/", "start": 6531, "end": 6539, "loc": { "start": { "line": 188, "column": 20 }, "end": { "line": 188, "column": 28 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 6540, "end": 6541, "loc": { "start": { "line": 188, "column": 29 }, "end": { "line": 188, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lowerDefinition", "start": 6542, "end": 6557, "loc": { "start": { "line": 188, "column": 31 }, "end": { "line": 188, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6557, "end": 6558, "loc": { "start": { "line": 188, "column": 46 }, "end": { "line": 188, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 6558, "end": 6565, "loc": { "start": { "line": 188, "column": 47 }, "end": { "line": 188, "column": 54 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6565, "end": 6566, "loc": { "start": { "line": 188, "column": 54 }, "end": { "line": 188, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6566, "end": 6567, "loc": { "start": { "line": 188, "column": 55 }, "end": { "line": 188, "column": 56 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 6568, "end": 6569, "loc": { "start": { "line": 188, "column": 57 }, "end": { "line": 188, "column": 58 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "/", "start": 6570, "end": 6573, "loc": { "start": { "line": 188, "column": 59 }, "end": { "line": 188, "column": 62 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 6574, "end": 6575, "loc": { "start": { "line": 188, "column": 63 }, "end": { "line": 188, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "upperDefinition", "start": 6576, "end": 6591, "loc": { "start": { "line": 188, "column": 65 }, "end": { "line": 188, "column": 80 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6591, "end": 6592, "loc": { "start": { "line": 188, "column": 80 }, "end": { "line": 188, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 6592, "end": 6599, "loc": { "start": { "line": 188, "column": 81 }, "end": { "line": 188, "column": 88 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6599, "end": 6600, "loc": { "start": { "line": 188, "column": 88 }, "end": { "line": 188, "column": 89 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6600, "end": 6601, "loc": { "start": { "line": 188, "column": 89 }, "end": { "line": 188, "column": 90 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6601, "end": 6602, "loc": { "start": { "line": 188, "column": 90 }, "end": { "line": 188, "column": 91 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 6612, "end": 6614, "loc": { "start": { "line": 189, "column": 8 }, "end": { "line": 189, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6615, "end": 6616, "loc": { "start": { "line": 189, "column": 11 }, "end": { "line": 189, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 6616, "end": 6620, "loc": { "start": { "line": 189, "column": 12 }, "end": { "line": 189, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6620, "end": 6621, "loc": { "start": { "line": 189, "column": 16 }, "end": { "line": 189, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 6621, "end": 6635, "loc": { "start": { "line": 189, "column": 17 }, "end": { "line": 189, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6635, "end": 6636, "loc": { "start": { "line": 189, "column": 31 }, "end": { "line": 189, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 6636, "end": 6639, "loc": { "start": { "line": 189, "column": 32 }, "end": { "line": 189, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6639, "end": 6640, "loc": { "start": { "line": 189, "column": 35 }, "end": { "line": 189, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6640, "end": 6641, "loc": { "start": { "line": 189, "column": 36 }, "end": { "line": 189, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6642, "end": 6643, "loc": { "start": { "line": 189, "column": 38 }, "end": { "line": 189, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 6657, "end": 6663, "loc": { "start": { "line": 190, "column": 12 }, "end": { "line": 190, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6664, "end": 6694, "loc": { "start": { "line": 190, "column": 19 }, "end": { "line": 190, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6695, "end": 6696, "loc": { "start": { "line": 190, "column": 50 }, "end": { "line": 190, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 6696, "end": 6700, "loc": { "start": { "line": 190, "column": 51 }, "end": { "line": 190, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6700, "end": 6701, "loc": { "start": { "line": 190, "column": 55 }, "end": { "line": 190, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 6701, "end": 6715, "loc": { "start": { "line": 190, "column": 56 }, "end": { "line": 190, "column": 70 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6715, "end": 6716, "loc": { "start": { "line": 190, "column": 70 }, "end": { "line": 190, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 6716, "end": 6719, "loc": { "start": { "line": 190, "column": 71 }, "end": { "line": 190, "column": 74 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6719, "end": 6720, "loc": { "start": { "line": 190, "column": 74 }, "end": { "line": 190, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6720, "end": 6721, "loc": { "start": { "line": 190, "column": 75 }, "end": { "line": 190, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6721, "end": 6722, "loc": { "start": { "line": 190, "column": 76 }, "end": { "line": 190, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6732, "end": 6733, "loc": { "start": { "line": 191, "column": 8 }, "end": { "line": 191, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 6743, "end": 6748, "loc": { "start": { "line": 192, "column": 8 }, "end": { "line": 192, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "stacked", "start": 6749, "end": 6756, "loc": { "start": { "line": 192, "column": 14 }, "end": { "line": 192, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6757, "end": 6758, "loc": { "start": { "line": 192, "column": 22 }, "end": { "line": 192, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lowerDefinition", "start": 6759, "end": 6774, "loc": { "start": { "line": 192, "column": 24 }, "end": { "line": 192, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6774, "end": 6775, "loc": { "start": { "line": 192, "column": 39 }, "end": { "line": 192, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneAndStackWith", "start": 6775, "end": 6792, "loc": { "start": { "line": 192, "column": 40 }, "end": { "line": 192, "column": 57 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6792, "end": 6793, "loc": { "start": { "line": 192, "column": 57 }, "end": { "line": 192, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "upperDefinition", "start": 6793, "end": 6808, "loc": { "start": { "line": 192, "column": 58 }, "end": { "line": 192, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6808, "end": 6809, "loc": { "start": { "line": 192, "column": 73 }, "end": { "line": 192, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6809, "end": 6810, "loc": { "start": { "line": 192, "column": 74 }, "end": { "line": 192, "column": 75 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 6820, "end": 6826, "loc": { "start": { "line": 193, "column": 8 }, "end": { "line": 193, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 6827, "end": 6857, "loc": { "start": { "line": 193, "column": 15 }, "end": { "line": 193, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6858, "end": 6859, "loc": { "start": { "line": 193, "column": 46 }, "end": { "line": 193, "column": 47 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 6859, "end": 6863, "loc": { "start": { "line": 193, "column": 47 }, "end": { "line": 193, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6863, "end": 6864, "loc": { "start": { "line": 193, "column": 51 }, "end": { "line": 193, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 6864, "end": 6878, "loc": { "start": { "line": 193, "column": 52 }, "end": { "line": 193, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6878, "end": 6879, "loc": { "start": { "line": 193, "column": 66 }, "end": { "line": 193, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 6879, "end": 6882, "loc": { "start": { "line": 193, "column": 67 }, "end": { "line": 193, "column": 70 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6882, "end": 6883, "loc": { "start": { "line": 193, "column": 70 }, "end": { "line": 193, "column": 71 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6884, "end": 6885, "loc": { "start": { "line": 193, "column": 72 }, "end": { "line": 193, "column": 73 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 6886, "end": 6890, "loc": { "start": { "line": 193, "column": 74 }, "end": { "line": 193, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6890, "end": 6891, "loc": { "start": { "line": 193, "column": 78 }, "end": { "line": 193, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 6891, "end": 6913, "loc": { "start": { "line": 193, "column": 79 }, "end": { "line": 193, "column": 101 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6913, "end": 6914, "loc": { "start": { "line": 193, "column": 101 }, "end": { "line": 193, "column": 102 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "stacked", "start": 6928, "end": 6935, "loc": { "start": { "line": 194, "column": 12 }, "end": { "line": 194, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6945, "end": 6946, "loc": { "start": { "line": 195, "column": 8 }, "end": { "line": 195, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6946, "end": 6947, "loc": { "start": { "line": 195, "column": 9 }, "end": { "line": 195, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6947, "end": 6948, "loc": { "start": { "line": 195, "column": 10 }, "end": { "line": 195, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6954, "end": 6955, "loc": { "start": { "line": 196, "column": 4 }, "end": { "line": 196, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the given color\r\n * @param {ShapeDefinition} definition\r\n * @param {enumColors} color\r\n * @returns {ShapeDefinition}\r\n ", "start": 6963, "end": 7156, "loc": { "start": { "line": 198, "column": 4 }, "end": { "line": 203, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionPaintWith", "start": 7162, "end": 7182, "loc": { "start": { "line": 204, "column": 4 }, "end": { "line": 204, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7182, "end": 7183, "loc": { "start": { "line": 204, "column": 24 }, "end": { "line": 204, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 7183, "end": 7193, "loc": { "start": { "line": 204, "column": 25 }, "end": { "line": 204, "column": 35 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7193, "end": 7194, "loc": { "start": { "line": 204, "column": 35 }, "end": { "line": 204, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 7195, "end": 7200, "loc": { "start": { "line": 204, "column": 37 }, "end": { "line": 204, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7200, "end": 7201, "loc": { "start": { "line": 204, "column": 42 }, "end": { "line": 204, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7202, "end": 7203, "loc": { "start": { "line": 204, "column": 44 }, "end": { "line": 204, "column": 45 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 7213, "end": 7218, "loc": { "start": { "line": 205, "column": 8 }, "end": { "line": 205, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 7219, "end": 7222, "loc": { "start": { "line": 205, "column": 14 }, "end": { "line": 205, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7223, "end": 7224, "loc": { "start": { "line": 205, "column": 18 }, "end": { "line": 205, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "paint/", "start": 7225, "end": 7233, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 205, "column": 28 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7234, "end": 7235, "loc": { "start": { "line": 205, "column": 29 }, "end": { "line": 205, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 7236, "end": 7246, "loc": { "start": { "line": 205, "column": 31 }, "end": { "line": 205, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7246, "end": 7247, "loc": { "start": { "line": 205, "column": 41 }, "end": { "line": 205, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 7247, "end": 7254, "loc": { "start": { "line": 205, "column": 42 }, "end": { "line": 205, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7254, "end": 7255, "loc": { "start": { "line": 205, "column": 49 }, "end": { "line": 205, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7255, "end": 7256, "loc": { "start": { "line": 205, "column": 50 }, "end": { "line": 205, "column": 51 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7257, "end": 7258, "loc": { "start": { "line": 205, "column": 52 }, "end": { "line": 205, "column": 53 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "/", "start": 7259, "end": 7262, "loc": { "start": { "line": 205, "column": 54 }, "end": { "line": 205, "column": 57 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7263, "end": 7264, "loc": { "start": { "line": 205, "column": 58 }, "end": { "line": 205, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 7265, "end": 7270, "loc": { "start": { "line": 205, "column": 60 }, "end": { "line": 205, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7270, "end": 7271, "loc": { "start": { "line": 205, "column": 65 }, "end": { "line": 205, "column": 66 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 7281, "end": 7283, "loc": { "start": { "line": 206, "column": 8 }, "end": { "line": 206, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7284, "end": 7285, "loc": { "start": { "line": 206, "column": 11 }, "end": { "line": 206, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 7285, "end": 7289, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7289, "end": 7290, "loc": { "start": { "line": 206, "column": 16 }, "end": { "line": 206, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 7290, "end": 7304, "loc": { "start": { "line": 206, "column": 17 }, "end": { "line": 206, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7304, "end": 7305, "loc": { "start": { "line": 206, "column": 31 }, "end": { "line": 206, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 7305, "end": 7308, "loc": { "start": { "line": 206, "column": 32 }, "end": { "line": 206, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7308, "end": 7309, "loc": { "start": { "line": 206, "column": 35 }, "end": { "line": 206, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7309, "end": 7310, "loc": { "start": { "line": 206, "column": 36 }, "end": { "line": 206, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7311, "end": 7312, "loc": { "start": { "line": 206, "column": 38 }, "end": { "line": 206, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 7326, "end": 7332, "loc": { "start": { "line": 207, "column": 12 }, "end": { "line": 207, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 7333, "end": 7363, "loc": { "start": { "line": 207, "column": 19 }, "end": { "line": 207, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7364, "end": 7365, "loc": { "start": { "line": 207, "column": 50 }, "end": { "line": 207, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 7365, "end": 7369, "loc": { "start": { "line": 207, "column": 51 }, "end": { "line": 207, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7369, "end": 7370, "loc": { "start": { "line": 207, "column": 55 }, "end": { "line": 207, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 7370, "end": 7384, "loc": { "start": { "line": 207, "column": 56 }, "end": { "line": 207, "column": 70 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7384, "end": 7385, "loc": { "start": { "line": 207, "column": 70 }, "end": { "line": 207, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 7385, "end": 7388, "loc": { "start": { "line": 207, "column": 71 }, "end": { "line": 207, "column": 74 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7388, "end": 7389, "loc": { "start": { "line": 207, "column": 74 }, "end": { "line": 207, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7389, "end": 7390, "loc": { "start": { "line": 207, "column": 75 }, "end": { "line": 207, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7390, "end": 7391, "loc": { "start": { "line": 207, "column": 76 }, "end": { "line": 207, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7401, "end": 7402, "loc": { "start": { "line": 208, "column": 8 }, "end": { "line": 208, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 7412, "end": 7417, "loc": { "start": { "line": 209, "column": 8 }, "end": { "line": 209, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorized", "start": 7418, "end": 7427, "loc": { "start": { "line": 209, "column": 14 }, "end": { "line": 209, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7428, "end": 7429, "loc": { "start": { "line": 209, "column": 24 }, "end": { "line": 209, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 7430, "end": 7440, "loc": { "start": { "line": 209, "column": 26 }, "end": { "line": 209, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7440, "end": 7441, "loc": { "start": { "line": 209, "column": 36 }, "end": { "line": 209, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneAndPaintWith", "start": 7441, "end": 7458, "loc": { "start": { "line": 209, "column": 37 }, "end": { "line": 209, "column": 54 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7458, "end": 7459, "loc": { "start": { "line": 209, "column": 54 }, "end": { "line": 209, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 7459, "end": 7464, "loc": { "start": { "line": 209, "column": 55 }, "end": { "line": 209, "column": 60 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7464, "end": 7465, "loc": { "start": { "line": 209, "column": 60 }, "end": { "line": 209, "column": 61 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7465, "end": 7466, "loc": { "start": { "line": 209, "column": 61 }, "end": { "line": 209, "column": 62 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 7476, "end": 7482, "loc": { "start": { "line": 210, "column": 8 }, "end": { "line": 210, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 7483, "end": 7513, "loc": { "start": { "line": 210, "column": 15 }, "end": { "line": 210, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7514, "end": 7515, "loc": { "start": { "line": 210, "column": 46 }, "end": { "line": 210, "column": 47 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 7515, "end": 7519, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 210, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7519, "end": 7520, "loc": { "start": { "line": 210, "column": 51 }, "end": { "line": 210, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 7520, "end": 7534, "loc": { "start": { "line": 210, "column": 52 }, "end": { "line": 210, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7534, "end": 7535, "loc": { "start": { "line": 210, "column": 66 }, "end": { "line": 210, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 7535, "end": 7538, "loc": { "start": { "line": 210, "column": 67 }, "end": { "line": 210, "column": 70 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7538, "end": 7539, "loc": { "start": { "line": 210, "column": 70 }, "end": { "line": 210, "column": 71 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7540, "end": 7541, "loc": { "start": { "line": 210, "column": 72 }, "end": { "line": 210, "column": 73 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 7542, "end": 7546, "loc": { "start": { "line": 210, "column": 74 }, "end": { "line": 210, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7546, "end": 7547, "loc": { "start": { "line": 210, "column": 78 }, "end": { "line": 210, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 7547, "end": 7569, "loc": { "start": { "line": 210, "column": 79 }, "end": { "line": 210, "column": 101 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7569, "end": 7570, "loc": { "start": { "line": 210, "column": 101 }, "end": { "line": 210, "column": 102 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorized", "start": 7584, "end": 7593, "loc": { "start": { "line": 211, "column": 12 }, "end": { "line": 211, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7603, "end": 7604, "loc": { "start": { "line": 212, "column": 8 }, "end": { "line": 212, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7604, "end": 7605, "loc": { "start": { "line": 212, "column": 9 }, "end": { "line": 212, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7605, "end": 7606, "loc": { "start": { "line": 212, "column": 10 }, "end": { "line": 212, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7612, "end": 7613, "loc": { "start": { "line": 213, "column": 4 }, "end": { "line": 213, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates a definition for painting it with the 4 colors\r\n * @param {ShapeDefinition} definition\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n * @returns {ShapeDefinition}\r\n ", "start": 7621, "end": 7850, "loc": { "start": { "line": 215, "column": 4 }, "end": { "line": 220, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeActionPaintWith4Colors", "start": 7856, "end": 7883, "loc": { "start": { "line": 221, "column": 4 }, "end": { "line": 221, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7883, "end": 7884, "loc": { "start": { "line": 221, "column": 31 }, "end": { "line": 221, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 7884, "end": 7894, "loc": { "start": { "line": 221, "column": 32 }, "end": { "line": 221, "column": 42 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7894, "end": 7895, "loc": { "start": { "line": 221, "column": 42 }, "end": { "line": 221, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colors", "start": 7896, "end": 7902, "loc": { "start": { "line": 221, "column": 44 }, "end": { "line": 221, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7902, "end": 7903, "loc": { "start": { "line": 221, "column": 50 }, "end": { "line": 221, "column": 51 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7904, "end": 7905, "loc": { "start": { "line": 221, "column": 52 }, "end": { "line": 221, "column": 53 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 7915, "end": 7920, "loc": { "start": { "line": 222, "column": 8 }, "end": { "line": 222, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 7921, "end": 7924, "loc": { "start": { "line": 222, "column": 14 }, "end": { "line": 222, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7925, "end": 7926, "loc": { "start": { "line": 222, "column": 18 }, "end": { "line": 222, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "paint4/", "start": 7927, "end": 7936, "loc": { "start": { "line": 222, "column": 20 }, "end": { "line": 222, "column": 29 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7937, "end": 7938, "loc": { "start": { "line": 222, "column": 30 }, "end": { "line": 222, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 7939, "end": 7949, "loc": { "start": { "line": 222, "column": 32 }, "end": { "line": 222, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7949, "end": 7950, "loc": { "start": { "line": 222, "column": 42 }, "end": { "line": 222, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 7950, "end": 7957, "loc": { "start": { "line": 222, "column": 43 }, "end": { "line": 222, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7957, "end": 7958, "loc": { "start": { "line": 222, "column": 50 }, "end": { "line": 222, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7958, "end": 7959, "loc": { "start": { "line": 222, "column": 51 }, "end": { "line": 222, "column": 52 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7960, "end": 7961, "loc": { "start": { "line": 222, "column": 53 }, "end": { "line": 222, "column": 54 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "/", "start": 7962, "end": 7965, "loc": { "start": { "line": 222, "column": 55 }, "end": { "line": 222, "column": 58 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7966, "end": 7967, "loc": { "start": { "line": 222, "column": 59 }, "end": { "line": 222, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colors", "start": 7968, "end": 7974, "loc": { "start": { "line": 222, "column": 61 }, "end": { "line": 222, "column": 67 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7974, "end": 7975, "loc": { "start": { "line": 222, "column": 67 }, "end": { "line": 222, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "join", "start": 7975, "end": 7979, "loc": { "start": { "line": 222, "column": 68 }, "end": { "line": 222, "column": 72 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7979, "end": 7980, "loc": { "start": { "line": 222, "column": 72 }, "end": { "line": 222, "column": 73 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ",", "start": 7980, "end": 7983, "loc": { "start": { "line": 222, "column": 73 }, "end": { "line": 222, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7983, "end": 7984, "loc": { "start": { "line": 222, "column": 76 }, "end": { "line": 222, "column": 77 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7984, "end": 7985, "loc": { "start": { "line": 222, "column": 77 }, "end": { "line": 222, "column": 78 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 7995, "end": 7997, "loc": { "start": { "line": 223, "column": 8 }, "end": { "line": 223, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7998, "end": 7999, "loc": { "start": { "line": 223, "column": 11 }, "end": { "line": 223, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 7999, "end": 8003, "loc": { "start": { "line": 223, "column": 12 }, "end": { "line": 223, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8003, "end": 8004, "loc": { "start": { "line": 223, "column": 16 }, "end": { "line": 223, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 8004, "end": 8018, "loc": { "start": { "line": 223, "column": 17 }, "end": { "line": 223, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8018, "end": 8019, "loc": { "start": { "line": 223, "column": 31 }, "end": { "line": 223, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 8019, "end": 8022, "loc": { "start": { "line": 223, "column": 32 }, "end": { "line": 223, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8022, "end": 8023, "loc": { "start": { "line": 223, "column": 35 }, "end": { "line": 223, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8023, "end": 8024, "loc": { "start": { "line": 223, "column": 36 }, "end": { "line": 223, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8025, "end": 8026, "loc": { "start": { "line": 223, "column": 38 }, "end": { "line": 223, "column": 39 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 8040, "end": 8046, "loc": { "start": { "line": 224, "column": 12 }, "end": { "line": 224, "column": 18 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 8047, "end": 8077, "loc": { "start": { "line": 224, "column": 19 }, "end": { "line": 224, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8078, "end": 8079, "loc": { "start": { "line": 224, "column": 50 }, "end": { "line": 224, "column": 51 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8079, "end": 8083, "loc": { "start": { "line": 224, "column": 51 }, "end": { "line": 224, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8083, "end": 8084, "loc": { "start": { "line": 224, "column": 55 }, "end": { "line": 224, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 8084, "end": 8098, "loc": { "start": { "line": 224, "column": 56 }, "end": { "line": 224, "column": 70 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8098, "end": 8099, "loc": { "start": { "line": 224, "column": 70 }, "end": { "line": 224, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 8099, "end": 8102, "loc": { "start": { "line": 224, "column": 71 }, "end": { "line": 224, "column": 74 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8102, "end": 8103, "loc": { "start": { "line": 224, "column": 74 }, "end": { "line": 224, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8103, "end": 8104, "loc": { "start": { "line": 224, "column": 75 }, "end": { "line": 224, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8104, "end": 8105, "loc": { "start": { "line": 224, "column": 76 }, "end": { "line": 224, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8115, "end": 8116, "loc": { "start": { "line": 225, "column": 8 }, "end": { "line": 225, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 8126, "end": 8131, "loc": { "start": { "line": 226, "column": 8 }, "end": { "line": 226, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorized", "start": 8132, "end": 8141, "loc": { "start": { "line": 226, "column": 14 }, "end": { "line": 226, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8142, "end": 8143, "loc": { "start": { "line": 226, "column": 24 }, "end": { "line": 226, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 8144, "end": 8154, "loc": { "start": { "line": 226, "column": 26 }, "end": { "line": 226, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8154, "end": 8155, "loc": { "start": { "line": 226, "column": 36 }, "end": { "line": 226, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneAndPaintWith4Colors", "start": 8155, "end": 8179, "loc": { "start": { "line": 226, "column": 37 }, "end": { "line": 226, "column": 61 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8179, "end": 8180, "loc": { "start": { "line": 226, "column": 61 }, "end": { "line": 226, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colors", "start": 8180, "end": 8186, "loc": { "start": { "line": 226, "column": 62 }, "end": { "line": 226, "column": 68 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8186, "end": 8187, "loc": { "start": { "line": 226, "column": 68 }, "end": { "line": 226, "column": 69 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8187, "end": 8188, "loc": { "start": { "line": 226, "column": 69 }, "end": { "line": 226, "column": 70 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 8198, "end": 8204, "loc": { "start": { "line": 227, "column": 8 }, "end": { "line": 227, "column": 14 } } }, { "type": "CommentBlock", "value": "* @type {ShapeDefinition} ", "start": 8205, "end": 8235, "loc": { "start": { "line": 227, "column": 15 }, "end": { "line": 227, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8236, "end": 8237, "loc": { "start": { "line": 227, "column": 46 }, "end": { "line": 227, "column": 47 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8237, "end": 8241, "loc": { "start": { "line": 227, "column": 47 }, "end": { "line": 227, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8241, "end": 8242, "loc": { "start": { "line": 227, "column": 51 }, "end": { "line": 227, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "operationCache", "start": 8242, "end": 8256, "loc": { "start": { "line": 227, "column": 52 }, "end": { "line": 227, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8256, "end": 8257, "loc": { "start": { "line": 227, "column": 66 }, "end": { "line": 227, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 8257, "end": 8260, "loc": { "start": { "line": 227, "column": 67 }, "end": { "line": 227, "column": 70 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8260, "end": 8261, "loc": { "start": { "line": 227, "column": 70 }, "end": { "line": 227, "column": 71 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8262, "end": 8263, "loc": { "start": { "line": 227, "column": 72 }, "end": { "line": 227, "column": 73 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8264, "end": 8268, "loc": { "start": { "line": 227, "column": 74 }, "end": { "line": 227, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8268, "end": 8269, "loc": { "start": { "line": 227, "column": 78 }, "end": { "line": 227, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 8269, "end": 8291, "loc": { "start": { "line": 227, "column": 79 }, "end": { "line": 227, "column": 101 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8291, "end": 8292, "loc": { "start": { "line": 227, "column": 101 }, "end": { "line": 227, "column": 102 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorized", "start": 8306, "end": 8315, "loc": { "start": { "line": 228, "column": 12 }, "end": { "line": 228, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8325, "end": 8326, "loc": { "start": { "line": 229, "column": 8 }, "end": { "line": 229, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8326, "end": 8327, "loc": { "start": { "line": 229, "column": 9 }, "end": { "line": 229, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8327, "end": 8328, "loc": { "start": { "line": 229, "column": 10 }, "end": { "line": 229, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8334, "end": 8335, "loc": { "start": { "line": 230, "column": 4 }, "end": { "line": 230, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if we already have cached this definition, and if so throws it away and returns the already\r\n * cached variant\r\n * @param {ShapeDefinition} definition\r\n ", "start": 8343, "end": 8529, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 236, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 8535, "end": 8557, "loc": { "start": { "line": 237, "column": 4 }, "end": { "line": 237, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8557, "end": 8558, "loc": { "start": { "line": 237, "column": 26 }, "end": { "line": 237, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 8558, "end": 8568, "loc": { "start": { "line": 237, "column": 27 }, "end": { "line": 237, "column": 37 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8568, "end": 8569, "loc": { "start": { "line": 237, "column": 37 }, "end": { "line": 237, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8570, "end": 8571, "loc": { "start": { "line": 237, "column": 39 }, "end": { "line": 237, "column": 40 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 8581, "end": 8586, "loc": { "start": { "line": 238, "column": 8 }, "end": { "line": 238, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 8587, "end": 8589, "loc": { "start": { "line": 238, "column": 14 }, "end": { "line": 238, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8590, "end": 8591, "loc": { "start": { "line": 238, "column": 17 }, "end": { "line": 238, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 8592, "end": 8602, "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8602, "end": 8603, "loc": { "start": { "line": 238, "column": 29 }, "end": { "line": 238, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 8603, "end": 8610, "loc": { "start": { "line": 238, "column": 30 }, "end": { "line": 238, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8610, "end": 8611, "loc": { "start": { "line": 238, "column": 37 }, "end": { "line": 238, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8611, "end": 8612, "loc": { "start": { "line": 238, "column": 38 }, "end": { "line": 238, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8612, "end": 8613, "loc": { "start": { "line": 238, "column": 39 }, "end": { "line": 238, "column": 40 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 8623, "end": 8625, "loc": { "start": { "line": 239, "column": 8 }, "end": { "line": 239, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8626, "end": 8627, "loc": { "start": { "line": 239, "column": 11 }, "end": { "line": 239, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8627, "end": 8631, "loc": { "start": { "line": 239, "column": 12 }, "end": { "line": 239, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8631, "end": 8632, "loc": { "start": { "line": 239, "column": 16 }, "end": { "line": 239, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 8632, "end": 8652, "loc": { "start": { "line": 239, "column": 17 }, "end": { "line": 239, "column": 37 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8652, "end": 8653, "loc": { "start": { "line": 239, "column": 37 }, "end": { "line": 239, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 8653, "end": 8655, "loc": { "start": { "line": 239, "column": 38 }, "end": { "line": 239, "column": 40 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8655, "end": 8656, "loc": { "start": { "line": 239, "column": 40 }, "end": { "line": 239, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8656, "end": 8657, "loc": { "start": { "line": 239, "column": 41 }, "end": { "line": 239, "column": 42 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8658, "end": 8659, "loc": { "start": { "line": 239, "column": 43 }, "end": { "line": 239, "column": 44 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 8673, "end": 8679, "loc": { "start": { "line": 240, "column": 12 }, "end": { "line": 240, "column": 18 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8680, "end": 8684, "loc": { "start": { "line": 240, "column": 19 }, "end": { "line": 240, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8684, "end": 8685, "loc": { "start": { "line": 240, "column": 23 }, "end": { "line": 240, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 8685, "end": 8705, "loc": { "start": { "line": 240, "column": 24 }, "end": { "line": 240, "column": 44 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8705, "end": 8706, "loc": { "start": { "line": 240, "column": 44 }, "end": { "line": 240, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 8706, "end": 8708, "loc": { "start": { "line": 240, "column": 45 }, "end": { "line": 240, "column": 47 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8708, "end": 8709, "loc": { "start": { "line": 240, "column": 47 }, "end": { "line": 240, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8709, "end": 8710, "loc": { "start": { "line": 240, "column": 48 }, "end": { "line": 240, "column": 49 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8720, "end": 8721, "loc": { "start": { "line": 241, "column": 8 }, "end": { "line": 241, "column": 9 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8731, "end": 8735, "loc": { "start": { "line": 242, "column": 8 }, "end": { "line": 242, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8735, "end": 8736, "loc": { "start": { "line": 242, "column": 12 }, "end": { "line": 242, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeKeyToDefinition", "start": 8736, "end": 8756, "loc": { "start": { "line": 242, "column": 13 }, "end": { "line": 242, "column": 33 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8756, "end": 8757, "loc": { "start": { "line": 242, "column": 33 }, "end": { "line": 242, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 8757, "end": 8759, "loc": { "start": { "line": 242, "column": 34 }, "end": { "line": 242, "column": 36 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8759, "end": 8760, "loc": { "start": { "line": 242, "column": 36 }, "end": { "line": 242, "column": 37 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8761, "end": 8762, "loc": { "start": { "line": 242, "column": 38 }, "end": { "line": 242, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 8763, "end": 8773, "loc": { "start": { "line": 242, "column": 40 }, "end": { "line": 242, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8773, "end": 8774, "loc": { "start": { "line": 242, "column": 50 }, "end": { "line": 242, "column": 51 } } }, { "type": "CommentLine", "value": " logger.log(\"Registered shape with key (2)\", id);", "start": 8784, "end": 8835, "loc": { "start": { "line": 243, "column": 8 }, "end": { "line": 243, "column": 59 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 8845, "end": 8851, "loc": { "start": { "line": 244, "column": 8 }, "end": { "line": 244, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 8852, "end": 8862, "loc": { "start": { "line": 244, "column": 15 }, "end": { "line": 244, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8862, "end": 8863, "loc": { "start": { "line": 244, "column": 25 }, "end": { "line": 244, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8869, "end": 8870, "loc": { "start": { "line": 245, "column": 4 }, "end": { "line": 245, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {[enumSubShape, enumSubShape, enumSubShape, enumSubShape]} subShapes\r\n * @returns {ShapeDefinition}\r\n ", "start": 8878, "end": 9017, "loc": { "start": { "line": 247, "column": 4 }, "end": { "line": 251, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getDefinitionFromSimpleShapes", "start": 9023, "end": 9052, "loc": { "start": { "line": 252, "column": 4 }, "end": { "line": 252, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9052, "end": 9053, "loc": { "start": { "line": 252, "column": 33 }, "end": { "line": 252, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShapes", "start": 9053, "end": 9062, "loc": { "start": { "line": 252, "column": 34 }, "end": { "line": 252, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9062, "end": 9063, "loc": { "start": { "line": 252, "column": 43 }, "end": { "line": 252, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 9064, "end": 9069, "loc": { "start": { "line": 252, "column": 45 }, "end": { "line": 252, "column": 50 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9070, "end": 9071, "loc": { "start": { "line": 252, "column": 51 }, "end": { "line": 252, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColors", "start": 9072, "end": 9082, "loc": { "start": { "line": 252, "column": 53 }, "end": { "line": 252, "column": 63 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9082, "end": 9083, "loc": { "start": { "line": 252, "column": 63 }, "end": { "line": 252, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uncolored", "start": 9083, "end": 9092, "loc": { "start": { "line": 252, "column": 64 }, "end": { "line": 252, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9092, "end": 9093, "loc": { "start": { "line": 252, "column": 73 }, "end": { "line": 252, "column": 74 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9094, "end": 9095, "loc": { "start": { "line": 252, "column": 75 }, "end": { "line": 252, "column": 76 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 9105, "end": 9110, "loc": { "start": { "line": 253, "column": 8 }, "end": { "line": 253, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeLayer", "start": 9111, "end": 9121, "loc": { "start": { "line": 253, "column": 14 }, "end": { "line": 253, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9122, "end": 9123, "loc": { "start": { "line": 253, "column": 25 }, "end": { "line": 253, "column": 26 } } }, { "type": "CommentBlock", "value": "* @type {import(\"./shape_definition\").ShapeLayer} ", "start": 9124, "end": 9178, "loc": { "start": { "line": 253, "column": 27 }, "end": { "line": 253, "column": 81 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9179, "end": 9180, "loc": { "start": { "line": 253, "column": 82 }, "end": { "line": 253, "column": 83 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShapes", "start": 9180, "end": 9189, "loc": { "start": { "line": 253, "column": 83 }, "end": { "line": 253, "column": 92 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9189, "end": 9190, "loc": { "start": { "line": 253, "column": 92 }, "end": { "line": 253, "column": 93 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "map", "start": 9190, "end": 9193, "loc": { "start": { "line": 253, "column": 93 }, "end": { "line": 253, "column": 96 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9193, "end": 9194, "loc": { "start": { "line": 253, "column": 96 }, "end": { "line": 253, "column": 97 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 9208, "end": 9216, "loc": { "start": { "line": 254, "column": 12 }, "end": { "line": 254, "column": 20 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9217, "end": 9219, "loc": { "start": { "line": 254, "column": 21 }, "end": { "line": 254, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9220, "end": 9221, "loc": { "start": { "line": 254, "column": 24 }, "end": { "line": 254, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9221, "end": 9222, "loc": { "start": { "line": 254, "column": 25 }, "end": { "line": 254, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 9223, "end": 9231, "loc": { "start": { "line": 254, "column": 27 }, "end": { "line": 254, "column": 35 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9231, "end": 9232, "loc": { "start": { "line": 254, "column": 35 }, "end": { "line": 254, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 9233, "end": 9238, "loc": { "start": { "line": 254, "column": 37 }, "end": { "line": 254, "column": 42 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9239, "end": 9240, "loc": { "start": { "line": 254, "column": 43 }, "end": { "line": 254, "column": 44 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9240, "end": 9241, "loc": { "start": { "line": 254, "column": 44 }, "end": { "line": 254, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9251, "end": 9252, "loc": { "start": { "line": 255, "column": 8 }, "end": { "line": 255, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9252, "end": 9253, "loc": { "start": { "line": 255, "column": 9 }, "end": { "line": 255, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9253, "end": 9254, "loc": { "start": { "line": 255, "column": 10 }, "end": { "line": 255, "column": 11 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 9266, "end": 9272, "loc": { "start": { "line": 257, "column": 8 }, "end": { "line": 257, "column": 14 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 9273, "end": 9277, "loc": { "start": { "line": 257, "column": 15 }, "end": { "line": 257, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9277, "end": 9278, "loc": { "start": { "line": 257, "column": 19 }, "end": { "line": 257, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "registerOrReturnHandle", "start": 9278, "end": 9300, "loc": { "start": { "line": 257, "column": 20 }, "end": { "line": 257, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9300, "end": 9301, "loc": { "start": { "line": 257, "column": 42 }, "end": { "line": 257, "column": 43 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 9301, "end": 9304, "loc": { "start": { "line": 257, "column": 43 }, "end": { "line": 257, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 9305, "end": 9320, "loc": { "start": { "line": 257, "column": 47 }, "end": { "line": 257, "column": 62 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9320, "end": 9321, "loc": { "start": { "line": 257, "column": 62 }, "end": { "line": 257, "column": 63 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9321, "end": 9322, "loc": { "start": { "line": 257, "column": 63 }, "end": { "line": 257, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 9323, "end": 9329, "loc": { "start": { "line": 257, "column": 65 }, "end": { "line": 257, "column": 71 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9329, "end": 9330, "loc": { "start": { "line": 257, "column": 71 }, "end": { "line": 257, "column": 72 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9331, "end": 9332, "loc": { "start": { "line": 257, "column": 73 }, "end": { "line": 257, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeLayer", "start": 9332, "end": 9342, "loc": { "start": { "line": 257, "column": 74 }, "end": { "line": 257, "column": 84 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9342, "end": 9343, "loc": { "start": { "line": 257, "column": 84 }, "end": { "line": 257, "column": 85 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9344, "end": 9345, "loc": { "start": { "line": 257, "column": 86 }, "end": { "line": 257, "column": 87 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9345, "end": 9346, "loc": { "start": { "line": 257, "column": 87 }, "end": { "line": 257, "column": 88 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9346, "end": 9347, "loc": { "start": { "line": 257, "column": 88 }, "end": { "line": 257, "column": 89 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9347, "end": 9348, "loc": { "start": { "line": 257, "column": 89 }, "end": { "line": 257, "column": 90 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9354, "end": 9355, "loc": { "start": { "line": 258, "column": 4 }, "end": { "line": 258, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9357, "end": 9358, "loc": { "start": { "line": 259, "column": 0 }, "end": { "line": 259, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9360, "end": 9360, "loc": { "start": { "line": 260, "column": 0 }, "end": { "line": 260, "column": 0 } } } ] }