{ "type": "File", "start": 0, "end": 819, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 22, "column": 81 } }, "program": { "type": "Program", "start": 0, "end": 819, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 22, "column": 81 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 50, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 50 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 14, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 14 } }, "imported": { "type": "Identifier", "start": 9, "end": 14, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 14 }, "identifierName": "types" }, "name": "types" }, "local": { "type": "Identifier", "start": 9, "end": 14, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 14 }, "identifierName": "types" }, "name": "types" } } ], "source": { "type": "StringLiteral", "start": 22, "end": 49, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 49 } }, "extra": { "rawValue": "../savegame/serialization", "raw": "\"../savegame/serialization\"" }, "value": "../savegame/serialization" } }, { "type": "ImportDeclaration", "start": 52, "end": 110, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 58 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 61, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 } }, "imported": { "type": "Identifier", "start": 61, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 }, "identifierName": "gItemRegistry" }, "name": "gItemRegistry" }, "local": { "type": "Identifier", "start": 61, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 }, "identifierName": "gItemRegistry" }, "name": "gItemRegistry" } } ], "source": { "type": "StringLiteral", "start": 82, "end": 109, "loc": { "start": { "line": 2, "column": 30 }, "end": { "line": 2, "column": 57 } }, "extra": { "rawValue": "../core/global_registries", "raw": "\"../core/global_registries\"" }, "value": "../core/global_registries" }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Resolves items so we share instances\r\n * @param {import(\"./root\").GameRoot} root\r\n * @param {{$: string, data: any }} data\r\n ", "start": 114, "end": 249, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 251, "end": 734, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 20, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 258, "end": 734, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 20, "column": 1 } }, "id": { "type": "Identifier", "start": 267, "end": 288, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 37 }, "identifierName": "itemResolverSingleton" }, "name": "itemResolverSingleton", "leadingComments": null }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 289, "end": 293, "loc": { "start": { "line": 9, "column": 38 }, "end": { "line": 9, "column": 42 }, "identifierName": "root" }, "name": "root" }, { "type": "Identifier", "start": 295, "end": 299, "loc": { "start": { "line": 9, "column": 44 }, "end": { "line": 9, "column": 48 }, "identifierName": "data" }, "name": "data" } ], "body": { "type": "BlockStatement", "start": 301, "end": 734, "loc": { "start": { "line": 9, "column": 50 }, "end": { "line": 20, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "start": 308, "end": 332, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 28 } }, "declarations": [ { "type": "VariableDeclarator", "start": 314, "end": 331, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 27 } }, "id": { "type": "Identifier", "start": 314, "end": 322, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 18 }, "identifierName": "itemType" }, "name": "itemType" }, "init": { "type": "MemberExpression", "start": 325, "end": 331, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 27 } }, "object": { "type": "Identifier", "start": 325, "end": 329, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 25 }, "identifierName": "data" }, "name": "data" }, "property": { "type": "Identifier", "start": 330, "end": 331, "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 27 }, "identifierName": "$" }, "name": "$" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 338, "end": 365, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 344, "end": 364, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 30 } }, "id": { "type": "Identifier", "start": 344, "end": 352, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 18 }, "identifierName": "itemData" }, "name": "itemData" }, "init": { "type": "MemberExpression", "start": 355, "end": 364, "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 30 } }, "object": { "type": "Identifier", "start": 355, "end": 359, "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 25 }, "identifierName": "data" }, "name": "data" }, "property": { "type": "Identifier", "start": 360, "end": 364, "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 30 }, "identifierName": "data" }, "name": "data" }, "computed": false } } ], "kind": "const" }, { "type": "ForInStatement", "start": 373, "end": 671, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 18, "column": 5 } }, "left": { "type": "VariableDeclaration", "start": 378, "end": 390, "loc": { "start": { "line": 13, "column": 9 }, "end": { "line": 13, "column": 21 } }, "declarations": [ { "type": "VariableDeclarator", "start": 384, "end": 390, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 21 } }, "id": { "type": "Identifier", "start": 384, "end": 390, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 21 }, "identifierName": "itemId" }, "name": "itemId" }, "init": null } ], "kind": "const" }, "right": { "type": "MemberExpression", "start": 394, "end": 416, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 47 } }, "object": { "type": "MemberExpression", "start": 394, "end": 410, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 41 } }, "object": { "type": "Identifier", "start": 394, "end": 403, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 34 }, "identifierName": "shapezAPI" }, "name": "shapezAPI" }, "property": { "type": "Identifier", "start": 404, "end": 410, "loc": { "start": { "line": 13, "column": 35 }, "end": { "line": 13, "column": 41 }, "identifierName": "ingame" }, "name": "ingame" }, "computed": false }, "property": { "type": "Identifier", "start": 411, "end": 416, "loc": { "start": { "line": 13, "column": 42 }, "end": { "line": 13, "column": 47 }, "identifierName": "items" }, "name": "items" }, "computed": false }, "body": { "type": "BlockStatement", "start": 418, "end": 671, "loc": { "start": { "line": 13, "column": 49 }, "end": { "line": 18, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 429, "end": 490, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 69 } }, "test": { "type": "UnaryExpression", "start": 433, "end": 479, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 58 } }, "operator": "!", "prefix": true, "argument": { "type": "CallExpression", "start": 434, "end": 479, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 58 } }, "callee": { "type": "MemberExpression", "start": 434, "end": 471, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 50 } }, "object": { "type": "MemberExpression", "start": 434, "end": 456, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 35 } }, "object": { "type": "MemberExpression", "start": 434, "end": 450, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 29 } }, "object": { "type": "Identifier", "start": 434, "end": 443, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 22 }, "identifierName": "shapezAPI" }, "name": "shapezAPI" }, "property": { "type": "Identifier", "start": 444, "end": 450, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 29 }, "identifierName": "ingame" }, "name": "ingame" }, "computed": false }, "property": { "type": "Identifier", "start": 451, "end": 456, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 35 }, "identifierName": "items" }, "name": "items" }, "computed": false }, "property": { "type": "Identifier", "start": 457, "end": 471, "loc": { "start": { "line": 14, "column": 36 }, "end": { "line": 14, "column": 50 }, "identifierName": "hasOwnProperty" }, "name": "hasOwnProperty" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 472, "end": 478, "loc": { "start": { "line": 14, "column": 51 }, "end": { "line": 14, "column": 57 }, "identifierName": "itemId" }, "name": "itemId" } ] }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "ContinueStatement", "start": 481, "end": 490, "loc": { "start": { "line": 14, "column": 60 }, "end": { "line": 14, "column": 69 } }, "label": null }, "alternate": null }, { "type": "VariableDeclaration", "start": 500, "end": 549, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 506, "end": 548, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 56 } }, "id": { "type": "Identifier", "start": 506, "end": 515, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 23 }, "identifierName": "itemClass" }, "name": "itemClass" }, "init": { "type": "MemberExpression", "start": 518, "end": 548, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 56 } }, "object": { "type": "MemberExpression", "start": 518, "end": 540, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 48 } }, "object": { "type": "MemberExpression", "start": 518, "end": 534, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 42 } }, "object": { "type": "Identifier", "start": 518, "end": 527, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 35 }, "identifierName": "shapezAPI" }, "name": "shapezAPI" }, "property": { "type": "Identifier", "start": 528, "end": 534, "loc": { "start": { "line": 15, "column": 36 }, "end": { "line": 15, "column": 42 }, "identifierName": "ingame" }, "name": "ingame" }, "computed": false }, "property": { "type": "Identifier", "start": 535, "end": 540, "loc": { "start": { "line": 15, "column": 43 }, "end": { "line": 15, "column": 48 }, "identifierName": "items" }, "name": "items" }, "computed": false }, "property": { "type": "Identifier", "start": 541, "end": 547, "loc": { "start": { "line": 15, "column": 49 }, "end": { "line": 15, "column": 55 }, "identifierName": "itemId" }, "name": "itemId" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 559, "end": 604, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 53 } }, "test": { "type": "BinaryExpression", "start": 563, "end": 593, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 42 } }, "left": { "type": "Identifier", "start": 563, "end": 571, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 20 }, "identifierName": "itemType" }, "name": "itemType" }, "operator": "!==", "right": { "type": "CallExpression", "start": 576, "end": 593, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 576, "end": 591, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 40 } }, "object": { "type": "Identifier", "start": 576, "end": 585, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 }, "identifierName": "itemClass" }, "name": "itemClass" }, "property": { "type": "Identifier", "start": 586, "end": 591, "loc": { "start": { "line": 16, "column": 35 }, "end": { "line": 16, "column": 40 }, "identifierName": "getId" }, "name": "getId" }, "computed": false }, "arguments": [] } }, "consequent": { "type": "ContinueStatement", "start": 595, "end": 604, "loc": { "start": { "line": 16, "column": 44 }, "end": { "line": 16, "column": 53 } }, "label": null }, "alternate": null }, { "type": "ReturnStatement", "start": 614, "end": 664, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 58 } }, "argument": { "type": "CallExpression", "start": 621, "end": 663, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 57 } }, "callee": { "type": "MemberExpression", "start": 621, "end": 647, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 41 } }, "object": { "type": "Identifier", "start": 621, "end": 630, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 24 }, "identifierName": "itemClass" }, "name": "itemClass" }, "property": { "type": "Identifier", "start": 631, "end": 647, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 41 }, "identifierName": "resolveSingleton" }, "name": "resolveSingleton" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 648, "end": 652, "loc": { "start": { "line": 17, "column": 42 }, "end": { "line": 17, "column": 46 }, "identifierName": "root" }, "name": "root" }, { "type": "Identifier", "start": 654, "end": 662, "loc": { "start": { "line": 17, "column": 48 }, "end": { "line": 17, "column": 56 }, "identifierName": "itemData" }, "name": "itemData" } ] } } ], "directives": [] } }, { "type": "ExpressionStatement", "start": 677, "end": 731, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 58 } }, "expression": { "type": "CallExpression", "start": 677, "end": 730, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 57 } }, "callee": { "type": "Identifier", "start": 677, "end": 689, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 16 }, "identifierName": "assertAlways" }, "name": "assertAlways" }, "arguments": [ { "type": "BooleanLiteral", "start": 690, "end": 695, "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 22 } }, "value": false }, { "type": "BinaryExpression", "start": 697, "end": 729, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 56 } }, "left": { "type": "StringLiteral", "start": 697, "end": 718, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 45 } }, "extra": { "rawValue": "Unknown item type: ", "raw": "\"Unknown item type: \"" }, "value": "Unknown item type: " }, "operator": "+", "right": { "type": "Identifier", "start": 721, "end": 729, "loc": { "start": { "line": 19, "column": 48 }, "end": { "line": 19, "column": 56 }, "identifierName": "itemType" }, "name": "itemType" } } ] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Resolves items so we share instances\r\n * @param {import(\"./root\").GameRoot} root\r\n * @param {{$: string, data: any }} data\r\n ", "start": 114, "end": 249, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Resolves items so we share instances\r\n * @param {import(\"./root\").GameRoot} root\r\n * @param {{$: string, data: any }} data\r\n ", "start": 114, "end": 249, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 738, "end": 819, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 81 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 745, "end": 819, "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 81 } }, "declarations": [ { "type": "VariableDeclarator", "start": 751, "end": 818, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 80 } }, "id": { "type": "Identifier", "start": 751, "end": 768, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 30 }, "identifierName": "typeItemSingleton" }, "name": "typeItemSingleton" }, "init": { "type": "CallExpression", "start": 771, "end": 818, "loc": { "start": { "line": 22, "column": 33 }, "end": { "line": 22, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 771, "end": 780, "loc": { "start": { "line": 22, "column": 33 }, "end": { "line": 22, "column": 42 } }, "object": { "type": "Identifier", "start": 771, "end": 776, "loc": { "start": { "line": 22, "column": 33 }, "end": { "line": 22, "column": 38 }, "identifierName": "types" }, "name": "types" }, "property": { "type": "Identifier", "start": 777, "end": 780, "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 42 }, "identifierName": "obj" }, "name": "obj" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 781, "end": 794, "loc": { "start": { "line": 22, "column": 43 }, "end": { "line": 22, "column": 56 }, "identifierName": "gItemRegistry" }, "name": "gItemRegistry" }, { "type": "Identifier", "start": 796, "end": 817, "loc": { "start": { "line": 22, "column": 58 }, "end": { "line": 22, "column": 79 }, "identifierName": "itemResolverSingleton" }, "name": "itemResolverSingleton" } ] } } ], "kind": "const", "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n * Resolves items so we share instances\r\n * @param {import(\"./root\").GameRoot} root\r\n * @param {{$: string, data: any }} data\r\n ", "start": 114, "end": 249, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ], "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": "types", "start": 9, "end": 14, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 14 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15, "end": 16, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 17, "end": 21, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 21 } } }, { "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": 22, "end": 49, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 49, "end": 50, "loc": { "start": { "line": 1, "column": 49 }, "end": { "line": 1, "column": 50 } } }, { "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": 52, "end": 58, "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": 59, "end": 60, "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": "gItemRegistry", "start": 61, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 75, "end": 76, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 77, "end": 81, "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 29 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/global_registries", "start": 82, "end": 109, "loc": { "start": { "line": 2, "column": 30 }, "end": { "line": 2, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 109, "end": 110, "loc": { "start": { "line": 2, "column": 57 }, "end": { "line": 2, "column": 58 } } }, { "type": "CommentBlock", "value": "*\r\n * Resolves items so we share instances\r\n * @param {import(\"./root\").GameRoot} root\r\n * @param {{$: string, data: any }} data\r\n ", "start": 114, "end": 249, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } }, { "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": 251, "end": 257, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 6 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 258, "end": 266, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemResolverSingleton", "start": 267, "end": 288, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 288, "end": 289, "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 289, "end": 293, "loc": { "start": { "line": 9, "column": 38 }, "end": { "line": 9, "column": 42 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 293, "end": 294, "loc": { "start": { "line": 9, "column": 42 }, "end": { "line": 9, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 295, "end": 299, "loc": { "start": { "line": 9, "column": 44 }, "end": { "line": 9, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 299, "end": 300, "loc": { "start": { "line": 9, "column": 48 }, "end": { "line": 9, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 301, "end": 302, "loc": { "start": { "line": 9, "column": 50 }, "end": { "line": 9, "column": 51 } } }, { "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": 308, "end": 313, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemType", "start": 314, "end": 322, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 323, "end": 324, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 325, "end": 329, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 329, "end": 330, "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "$", "start": 330, "end": 331, "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 331, "end": 332, "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 28 } } }, { "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": 338, "end": 343, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemData", "start": 344, "end": 352, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 353, "end": 354, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 355, "end": 359, "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 359, "end": 360, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 360, "end": 364, "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 364, "end": 365, "loc": { "start": { "line": 11, "column": 30 }, "end": { "line": 11, "column": 31 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 373, "end": 376, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 377, "end": 378, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "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": 378, "end": 383, "loc": { "start": { "line": 13, "column": 9 }, "end": { "line": 13, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemId", "start": 384, "end": 390, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 21 } } }, { "type": { "label": "in", "keyword": "in", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "in", "start": 391, "end": 393, "loc": { "start": { "line": 13, "column": 22 }, "end": { "line": 13, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapezAPI", "start": 394, "end": 403, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 403, "end": 404, "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ingame", "start": 404, "end": 410, "loc": { "start": { "line": 13, "column": 35 }, "end": { "line": 13, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 410, "end": 411, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "items", "start": 411, "end": 416, "loc": { "start": { "line": 13, "column": 42 }, "end": { "line": 13, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 416, "end": 417, "loc": { "start": { "line": 13, "column": 47 }, "end": { "line": 13, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 418, "end": 419, "loc": { "start": { "line": 13, "column": 49 }, "end": { "line": 13, "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": 429, "end": 431, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 432, "end": 433, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 12 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 433, "end": 434, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapezAPI", "start": 434, "end": 443, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 443, "end": 444, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ingame", "start": 444, "end": 450, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 450, "end": 451, "loc": { "start": { "line": 14, "column": 29 }, "end": { "line": 14, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "items", "start": 451, "end": 456, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 456, "end": 457, "loc": { "start": { "line": 14, "column": 35 }, "end": { "line": 14, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hasOwnProperty", "start": 457, "end": 471, "loc": { "start": { "line": 14, "column": 36 }, "end": { "line": 14, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 471, "end": 472, "loc": { "start": { "line": 14, "column": 50 }, "end": { "line": 14, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemId", "start": 472, "end": 478, "loc": { "start": { "line": 14, "column": 51 }, "end": { "line": 14, "column": 57 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 478, "end": 479, "loc": { "start": { "line": 14, "column": 57 }, "end": { "line": 14, "column": 58 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 479, "end": 480, "loc": { "start": { "line": 14, "column": 58 }, "end": { "line": 14, "column": 59 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 481, "end": 489, "loc": { "start": { "line": 14, "column": 60 }, "end": { "line": 14, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 489, "end": 490, "loc": { "start": { "line": 14, "column": 68 }, "end": { "line": 14, "column": 69 } } }, { "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": 500, "end": 505, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemClass", "start": 506, "end": 515, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 516, "end": 517, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapezAPI", "start": 518, "end": 527, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 527, "end": 528, "loc": { "start": { "line": 15, "column": 35 }, "end": { "line": 15, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ingame", "start": 528, "end": 534, "loc": { "start": { "line": 15, "column": 36 }, "end": { "line": 15, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 534, "end": 535, "loc": { "start": { "line": 15, "column": 42 }, "end": { "line": 15, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "items", "start": 535, "end": 540, "loc": { "start": { "line": 15, "column": 43 }, "end": { "line": 15, "column": 48 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 540, "end": 541, "loc": { "start": { "line": 15, "column": 48 }, "end": { "line": 15, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemId", "start": 541, "end": 547, "loc": { "start": { "line": 15, "column": 49 }, "end": { "line": 15, "column": 55 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 547, "end": 548, "loc": { "start": { "line": 15, "column": 55 }, "end": { "line": 15, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 548, "end": 549, "loc": { "start": { "line": 15, "column": 56 }, "end": { "line": 15, "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": 559, "end": 561, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 562, "end": 563, "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemType", "start": 563, "end": 571, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 20 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 572, "end": 575, "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemClass", "start": 576, "end": 585, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 585, "end": 586, "loc": { "start": { "line": 16, "column": 34 }, "end": { "line": 16, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 586, "end": 591, "loc": { "start": { "line": 16, "column": 35 }, "end": { "line": 16, "column": 40 } } }, { "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": 16, "column": 40 }, "end": { "line": 16, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 592, "end": 593, "loc": { "start": { "line": 16, "column": 41 }, "end": { "line": 16, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 593, "end": 594, "loc": { "start": { "line": 16, "column": 42 }, "end": { "line": 16, "column": 43 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 595, "end": 603, "loc": { "start": { "line": 16, "column": 44 }, "end": { "line": 16, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 603, "end": 604, "loc": { "start": { "line": 16, "column": 52 }, "end": { "line": 16, "column": 53 } } }, { "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": 614, "end": 620, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemClass", "start": 621, "end": 630, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 630, "end": 631, "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "resolveSingleton", "start": 631, "end": 647, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 41 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 647, "end": 648, "loc": { "start": { "line": 17, "column": 41 }, "end": { "line": 17, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 648, "end": 652, "loc": { "start": { "line": 17, "column": 42 }, "end": { "line": 17, "column": 46 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 652, "end": 653, "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemData", "start": 654, "end": 662, "loc": { "start": { "line": 17, "column": 48 }, "end": { "line": 17, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 662, "end": 663, "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 663, "end": 664, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 670, "end": 671, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assertAlways", "start": 677, "end": 689, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 689, "end": 690, "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 17 } } }, { "type": { "label": "false", "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "false", "start": 690, "end": 695, "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 695, "end": 696, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 23 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Unknown item type: ", "start": 697, "end": 718, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 45 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 719, "end": 720, "loc": { "start": { "line": 19, "column": 46 }, "end": { "line": 19, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemType", "start": 721, "end": 729, "loc": { "start": { "line": 19, "column": 48 }, "end": { "line": 19, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 729, "end": 730, "loc": { "start": { "line": 19, "column": 56 }, "end": { "line": 19, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 730, "end": 731, "loc": { "start": { "line": 19, "column": 57 }, "end": { "line": 19, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 733, "end": 734, "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 1 } } }, { "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": 738, "end": 744, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 6 } } }, { "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": 745, "end": 750, "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "typeItemSingleton", "start": 751, "end": 768, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 769, "end": 770, "loc": { "start": { "line": 22, "column": 31 }, "end": { "line": 22, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 771, "end": 776, "loc": { "start": { "line": 22, "column": 33 }, "end": { "line": 22, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 776, "end": 777, "loc": { "start": { "line": 22, "column": 38 }, "end": { "line": 22, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "obj", "start": 777, "end": 780, "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 780, "end": 781, "loc": { "start": { "line": 22, "column": 42 }, "end": { "line": 22, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gItemRegistry", "start": 781, "end": 794, "loc": { "start": { "line": 22, "column": 43 }, "end": { "line": 22, "column": 56 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 794, "end": 795, "loc": { "start": { "line": 22, "column": 56 }, "end": { "line": 22, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemResolverSingleton", "start": 796, "end": 817, "loc": { "start": { "line": 22, "column": 58 }, "end": { "line": 22, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 817, "end": 818, "loc": { "start": { "line": 22, "column": 79 }, "end": { "line": 22, "column": 80 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 818, "end": 819, "loc": { "start": { "line": 22, "column": 80 }, "end": { "line": 22, "column": 81 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 819, "end": 819, "loc": { "start": { "line": 22, "column": 81 }, "end": { "line": 22, "column": 81 } } } ] }