{ "type": "File", "start": 0, "end": 2250, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 80, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 2250, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 80, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 46, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 46 } }, "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": "globalConfig" }, "name": "globalConfig" }, "local": { "type": "Identifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 }, "identifierName": "globalConfig" }, "name": "globalConfig" } } ], "source": { "type": "StringLiteral", "start": 29, "end": 45, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 45 } }, "extra": { "rawValue": "../core/config", "raw": "\"../core/config\"" }, "value": "../core/config" } }, { "type": "ImportDeclaration", "start": 48, "end": 95, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 47 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 57, "end": 69, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } }, "imported": { "type": "Identifier", "start": 57, "end": 69, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 }, "identifierName": "createLogger" }, "name": "createLogger" }, "local": { "type": "Identifier", "start": 57, "end": 69, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 }, "identifierName": "createLogger" }, "name": "createLogger" } } ], "source": { "type": "StringLiteral", "start": 77, "end": 94, "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 46 } }, "extra": { "rawValue": "../core/logging", "raw": "\"../core/logging\"" }, "value": "../core/logging" } }, { "type": "ImportDeclaration", "start": 97, "end": 131, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 34 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 106, "end": 114, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 } }, "imported": { "type": "Identifier", "start": 106, "end": 114, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 }, "identifierName": "GameRoot" }, "name": "GameRoot" }, "local": { "type": "Identifier", "start": 106, "end": 114, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 }, "identifierName": "GameRoot" }, "name": "GameRoot" } } ], "source": { "type": "StringLiteral", "start": 122, "end": 130, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 33 } }, "extra": { "rawValue": "./root", "raw": "\"./root\"" }, "value": "./root" }, "trailingComments": [ { "type": "CommentLine", "value": " How important it is that a savegame is created", "start": 135, "end": 184, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 49 } } }, { "type": "CommentBlock", "value": "*\r\n * @enum {number}\r\n ", "start": 186, "end": 213, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 215, "end": 285, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 12, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 222, "end": 285, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 12, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 228, "end": 284, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 12, "column": 1 } }, "id": { "type": "Identifier", "start": 228, "end": 244, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 29 }, "identifierName": "enumSavePriority" }, "name": "enumSavePriority", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 247, "end": 284, "loc": { "start": { "line": 9, "column": 32 }, "end": { "line": 12, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 254, "end": 264, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 14 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 254, "end": 261, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 11 }, "identifierName": "regular" }, "name": "regular" }, "value": { "type": "NumericLiteral", "start": 263, "end": 264, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 14 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, { "type": "ObjectProperty", "start": 271, "end": 280, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 13 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 271, "end": 275, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 8 }, "identifierName": "asap" }, "name": "asap" }, "value": { "type": "NumericLiteral", "start": 277, "end": 280, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 13 } }, "extra": { "rawValue": 100, "raw": "100" }, "value": 100 } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " How important it is that a savegame is created", "start": 135, "end": 184, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 49 } } }, { "type": "CommentBlock", "value": "*\r\n * @enum {number}\r\n ", "start": 186, "end": 213, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentLine", "value": " How important it is that a savegame is created", "start": 135, "end": 184, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 49 } } }, { "type": "CommentBlock", "value": "*\r\n * @enum {number}\r\n ", "start": 186, "end": 213, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "VariableDeclaration", "start": 289, "end": 329, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 40 } }, "declarations": [ { "type": "VariableDeclarator", "start": 295, "end": 328, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 39 } }, "id": { "type": "Identifier", "start": 295, "end": 301, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 12 }, "identifierName": "logger" }, "name": "logger" }, "init": { "type": "CallExpression", "start": 304, "end": 328, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 39 } }, "callee": { "type": "Identifier", "start": 304, "end": 316, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 27 }, "identifierName": "createLogger" }, "name": "createLogger" }, "arguments": [ { "type": "StringLiteral", "start": 317, "end": 327, "loc": { "start": { "line": 14, "column": 28 }, "end": { "line": 14, "column": 38 } }, "extra": { "rawValue": "autosave", "raw": "\"autosave\"" }, "value": "autosave" } ] } } ], "kind": "const" }, { "type": "ExportNamedDeclaration", "start": 333, "end": 2248, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 79, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 340, "end": 2248, "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 79, "column": 1 } }, "id": { "type": "Identifier", "start": 346, "end": 359, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 26 }, "identifierName": "AutomaticSave" }, "name": "AutomaticSave" }, "superClass": null, "body": { "type": "ClassBody", "start": 360, "end": 2248, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 79, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 367, "end": 607, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 25, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 367, "end": 378, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 379, "end": 383, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 20 }, "identifierName": "root" }, "name": "root" } ], "body": { "type": "BlockStatement", "start": 385, "end": 607, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 25, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 429, "end": 446, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 429, "end": 445, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 429, "end": 438, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 17 } }, "object": { "type": "ThisExpression", "start": 429, "end": 433, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 434, "end": 438, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 17 }, "identifierName": "root" }, "name": "root" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 441, "end": 445, "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 24 }, "identifierName": "root" }, "name": "root" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {GameRoot} ", "start": 396, "end": 419, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 31 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Store the current maximum save importance", "start": 458, "end": 502, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 52 } } } ] }, { "type": "ExpressionStatement", "start": 512, "end": 559, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 55 } }, "expression": { "type": "AssignmentExpression", "start": 512, "end": 558, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 54 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 512, "end": 531, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 27 } }, "object": { "type": "ThisExpression", "start": 512, "end": 516, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 517, "end": 531, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 27 }, "identifierName": "saveImportance" }, "name": "saveImportance" }, "computed": false, "leadingComments": null }, "right": { "type": "MemberExpression", "start": 534, "end": 558, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 54 } }, "object": { "type": "Identifier", "start": 534, "end": 550, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 46 }, "identifierName": "enumSavePriority" }, "name": "enumSavePriority" }, "property": { "type": "Identifier", "start": 551, "end": 558, "loc": { "start": { "line": 22, "column": 47 }, "end": { "line": 22, "column": 54 }, "identifierName": "regular" }, "name": "regular" }, "computed": false }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Store the current maximum save importance", "start": 458, "end": 502, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 52 } } } ] }, { "type": "ExpressionStatement", "start": 571, "end": 600, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 37 } }, "expression": { "type": "AssignmentExpression", "start": 571, "end": 599, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 571, "end": 591, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 28 } }, "object": { "type": "ThisExpression", "start": 571, "end": 575, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 12 } } }, "property": { "type": "Identifier", "start": 576, "end": 591, "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 28 }, "identifierName": "lastSaveAttempt" }, "name": "lastSaveAttempt" }, "computed": false }, "right": { "type": "UnaryExpression", "start": 594, "end": 599, "loc": { "start": { "line": 24, "column": 31 }, "end": { "line": 24, "column": 36 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 595, "end": 599, "loc": { "start": { "line": 24, "column": 32 }, "end": { "line": 24, "column": 36 } }, "extra": { "rawValue": 1000, "raw": "1000" }, "value": 1000 }, "extra": { "parenthesizedArgument": false } } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 615, "end": 727, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 29, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 615, "end": 632, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 21 }, "identifierName": "setSaveImportance" }, "name": "setSaveImportance" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 633, "end": 643, "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 32 }, "identifierName": "importance" }, "name": "importance" } ], "body": { "type": "BlockStatement", "start": 645, "end": 727, "loc": { "start": { "line": 27, "column": 34 }, "end": { "line": 29, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 656, "end": 720, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 72 } }, "expression": { "type": "AssignmentExpression", "start": 656, "end": 719, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 71 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 656, "end": 675, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 27 } }, "object": { "type": "ThisExpression", "start": 656, "end": 660, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 12 } } }, "property": { "type": "Identifier", "start": 661, "end": 675, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 27 }, "identifierName": "saveImportance" }, "name": "saveImportance" }, "computed": false }, "right": { "type": "CallExpression", "start": 678, "end": 719, "loc": { "start": { "line": 28, "column": 30 }, "end": { "line": 28, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 678, "end": 686, "loc": { "start": { "line": 28, "column": 30 }, "end": { "line": 28, "column": 38 } }, "object": { "type": "Identifier", "start": 678, "end": 682, "loc": { "start": { "line": 28, "column": 30 }, "end": { "line": 28, "column": 34 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 683, "end": 686, "loc": { "start": { "line": 28, "column": 35 }, "end": { "line": 28, "column": 38 }, "identifierName": "max" }, "name": "max" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 687, "end": 706, "loc": { "start": { "line": 28, "column": 39 }, "end": { "line": 28, "column": 58 } }, "object": { "type": "ThisExpression", "start": 687, "end": 691, "loc": { "start": { "line": 28, "column": 39 }, "end": { "line": 28, "column": 43 } } }, "property": { "type": "Identifier", "start": 692, "end": 706, "loc": { "start": { "line": 28, "column": 44 }, "end": { "line": 28, "column": 58 }, "identifierName": "saveImportance" }, "name": "saveImportance" }, "computed": false }, { "type": "Identifier", "start": 708, "end": 718, "loc": { "start": { "line": 28, "column": 60 }, "end": { "line": 28, "column": 70 }, "identifierName": "importance" }, "name": "importance" } ] } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 735, "end": 950, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 38, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 735, "end": 741, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 10 }, "identifierName": "doSave" }, "name": "doSave" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 744, "end": 950, "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 38, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 755, "end": 845, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 34, "column": 9 } }, "test": { "type": "LogicalExpression", "start": 759, "end": 810, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 63 } }, "left": { "type": "Identifier", "start": 759, "end": 767, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 20 }, "identifierName": "G_IS_DEV" }, "name": "G_IS_DEV" }, "operator": "&&", "right": { "type": "MemberExpression", "start": 771, "end": 810, "loc": { "start": { "line": 32, "column": 24 }, "end": { "line": 32, "column": 63 } }, "object": { "type": "MemberExpression", "start": 771, "end": 789, "loc": { "start": { "line": 32, "column": 24 }, "end": { "line": 32, "column": 42 } }, "object": { "type": "Identifier", "start": 771, "end": 783, "loc": { "start": { "line": 32, "column": 24 }, "end": { "line": 32, "column": 36 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 784, "end": 789, "loc": { "start": { "line": 32, "column": 37 }, "end": { "line": 32, "column": 42 }, "identifierName": "debug" }, "name": "debug" }, "computed": false }, "property": { "type": "Identifier", "start": 790, "end": 810, "loc": { "start": { "line": 32, "column": 43 }, "end": { "line": 32, "column": 63 }, "identifierName": "disableSavegameWrite" }, "name": "disableSavegameWrite" }, "computed": false } }, "consequent": { "type": "BlockStatement", "start": 812, "end": 845, "loc": { "start": { "line": 32, "column": 65 }, "end": { "line": 34, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 827, "end": 834, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 19 } }, "argument": null } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 857, "end": 886, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 37 } }, "expression": { "type": "CallExpression", "start": 857, "end": 885, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 36 } }, "callee": { "type": "MemberExpression", "start": 857, "end": 883, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 34 } }, "object": { "type": "MemberExpression", "start": 857, "end": 876, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 27 } }, "object": { "type": "MemberExpression", "start": 857, "end": 866, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 17 } }, "object": { "type": "ThisExpression", "start": 857, "end": 861, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 } } }, "property": { "type": "Identifier", "start": 862, "end": 866, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 17 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 867, "end": 876, "loc": { "start": { "line": 36, "column": 18 }, "end": { "line": 36, "column": 27 }, "identifierName": "gameState" }, "name": "gameState" }, "computed": false }, "property": { "type": "Identifier", "start": 877, "end": 883, "loc": { "start": { "line": 36, "column": 28 }, "end": { "line": 36, "column": 34 }, "identifierName": "doSave" }, "name": "doSave" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 896, "end": 943, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 55 } }, "expression": { "type": "AssignmentExpression", "start": 896, "end": 942, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 54 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 896, "end": 915, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 27 } }, "object": { "type": "ThisExpression", "start": 896, "end": 900, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 12 } } }, "property": { "type": "Identifier", "start": 901, "end": 915, "loc": { "start": { "line": 37, "column": 13 }, "end": { "line": 37, "column": 27 }, "identifierName": "saveImportance" }, "name": "saveImportance" }, "computed": false }, "right": { "type": "MemberExpression", "start": 918, "end": 942, "loc": { "start": { "line": 37, "column": 30 }, "end": { "line": 37, "column": 54 } }, "object": { "type": "Identifier", "start": 918, "end": 934, "loc": { "start": { "line": 37, "column": 30 }, "end": { "line": 37, "column": 46 }, "identifierName": "enumSavePriority" }, "name": "enumSavePriority" }, "property": { "type": "Identifier", "start": 935, "end": 942, "loc": { "start": { "line": 37, "column": 47 }, "end": { "line": 37, "column": 54 }, "identifierName": "regular" }, "name": "regular" }, "computed": false } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 958, "end": 2245, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 78, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 958, "end": 964, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 40, "column": 10 }, "identifierName": "update" }, "name": "update" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 967, "end": 2245, "loc": { "start": { "line": 40, "column": 13 }, "end": { "line": 78, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 978, "end": 1068, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 44, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 982, "end": 1008, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 38 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 983, "end": 1008, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 38 } }, "object": { "type": "MemberExpression", "start": 983, "end": 992, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 22 } }, "object": { "type": "ThisExpression", "start": 983, "end": 987, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 17 } } }, "property": { "type": "Identifier", "start": 988, "end": 992, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 22 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 993, "end": 1008, "loc": { "start": { "line": 41, "column": 23 }, "end": { "line": 41, "column": 38 }, "identifierName": "gameInitialized" }, "name": "gameInitialized" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 1010, "end": 1068, "loc": { "start": { "line": 41, "column": 40 }, "end": { "line": 44, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 1050, "end": 1057, "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 19 } }, "argument": null, "leadingComments": [ { "type": "CommentLine", "value": " Bad idea", "start": 1025, "end": 1036, "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 23 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 1080, "end": 1153, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 46, "column": 81 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1086, "end": 1152, "loc": { "start": { "line": 46, "column": 14 }, "end": { "line": 46, "column": 80 } }, "id": { "type": "Identifier", "start": 1086, "end": 1098, "loc": { "start": { "line": 46, "column": 14 }, "end": { "line": 46, "column": 26 }, "identifierName": "saveInterval" }, "name": "saveInterval" }, "init": { "type": "CallExpression", "start": 1101, "end": 1152, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 1101, "end": 1150, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 78 } }, "object": { "type": "MemberExpression", "start": 1101, "end": 1123, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 51 } }, "object": { "type": "MemberExpression", "start": 1101, "end": 1114, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 42 } }, "object": { "type": "MemberExpression", "start": 1101, "end": 1110, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 38 } }, "object": { "type": "ThisExpression", "start": 1101, "end": 1105, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 33 } } }, "property": { "type": "Identifier", "start": 1106, "end": 1110, "loc": { "start": { "line": 46, "column": 34 }, "end": { "line": 46, "column": 38 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 1111, "end": 1114, "loc": { "start": { "line": 46, "column": 39 }, "end": { "line": 46, "column": 42 }, "identifierName": "app" }, "name": "app" }, "computed": false }, "property": { "type": "Identifier", "start": 1115, "end": 1123, "loc": { "start": { "line": 46, "column": 43 }, "end": { "line": 46, "column": 51 }, "identifierName": "settings" }, "name": "settings" }, "computed": false }, "property": { "type": "Identifier", "start": 1124, "end": 1150, "loc": { "start": { "line": 46, "column": 52 }, "end": { "line": 46, "column": 78 }, "identifierName": "getAutosaveIntervalSeconds" }, "name": "getAutosaveIntervalSeconds" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "IfStatement", "start": 1163, "end": 1240, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 50, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 1167, "end": 1180, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 25 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 1168, "end": 1180, "loc": { "start": { "line": 47, "column": 13 }, "end": { "line": 47, "column": 25 }, "identifierName": "saveInterval" }, "name": "saveInterval" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 1182, "end": 1240, "loc": { "start": { "line": 47, "column": 27 }, "end": { "line": 50, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 1222, "end": 1229, "loc": { "start": { "line": 49, "column": 12 }, "end": { "line": 49, "column": 19 } }, "argument": null, "leadingComments": [ { "type": "CommentLine", "value": " Disabled", "start": 1197, "end": 1208, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 23 } } } ] } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentLine", "value": " Check when the last save was, but make sure that if it fails, we don't spam", "start": 1252, "end": 1330, "loc": { "start": { "line": 52, "column": 8 }, "end": { "line": 52, "column": 86 } } } ] }, { "type": "VariableDeclaration", "start": 1340, "end": 1432, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 100 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1346, "end": 1431, "loc": { "start": { "line": 53, "column": 14 }, "end": { "line": 53, "column": 99 } }, "id": { "type": "Identifier", "start": 1346, "end": 1358, "loc": { "start": { "line": 53, "column": 14 }, "end": { "line": 53, "column": 26 }, "identifierName": "lastSaveTime" }, "name": "lastSaveTime", "leadingComments": null }, "init": { "type": "CallExpression", "start": 1361, "end": 1431, "loc": { "start": { "line": 53, "column": 29 }, "end": { "line": 53, "column": 99 } }, "callee": { "type": "MemberExpression", "start": 1361, "end": 1369, "loc": { "start": { "line": 53, "column": 29 }, "end": { "line": 53, "column": 37 } }, "object": { "type": "Identifier", "start": 1361, "end": 1365, "loc": { "start": { "line": 53, "column": 29 }, "end": { "line": 53, "column": 33 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 1366, "end": 1369, "loc": { "start": { "line": 53, "column": 34 }, "end": { "line": 53, "column": 37 }, "identifierName": "max" }, "name": "max" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 1370, "end": 1390, "loc": { "start": { "line": 53, "column": 38 }, "end": { "line": 53, "column": 58 } }, "object": { "type": "ThisExpression", "start": 1370, "end": 1374, "loc": { "start": { "line": 53, "column": 38 }, "end": { "line": 53, "column": 42 } } }, "property": { "type": "Identifier", "start": 1375, "end": 1390, "loc": { "start": { "line": 53, "column": 43 }, "end": { "line": 53, "column": 58 }, "identifierName": "lastSaveAttempt" }, "name": "lastSaveAttempt" }, "computed": false }, { "type": "CallExpression", "start": 1392, "end": 1430, "loc": { "start": { "line": 53, "column": 60 }, "end": { "line": 53, "column": 98 } }, "callee": { "type": "MemberExpression", "start": 1392, "end": 1428, "loc": { "start": { "line": 53, "column": 60 }, "end": { "line": 53, "column": 96 } }, "object": { "type": "MemberExpression", "start": 1392, "end": 1410, "loc": { "start": { "line": 53, "column": 60 }, "end": { "line": 53, "column": 78 } }, "object": { "type": "MemberExpression", "start": 1392, "end": 1401, "loc": { "start": { "line": 53, "column": 60 }, "end": { "line": 53, "column": 69 } }, "object": { "type": "ThisExpression", "start": 1392, "end": 1396, "loc": { "start": { "line": 53, "column": 60 }, "end": { "line": 53, "column": 64 } } }, "property": { "type": "Identifier", "start": 1397, "end": 1401, "loc": { "start": { "line": 53, "column": 65 }, "end": { "line": 53, "column": 69 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 1402, "end": 1410, "loc": { "start": { "line": 53, "column": 70 }, "end": { "line": 53, "column": 78 }, "identifierName": "savegame" }, "name": "savegame" }, "computed": false }, "property": { "type": "Identifier", "start": 1411, "end": 1428, "loc": { "start": { "line": 53, "column": 79 }, "end": { "line": 53, "column": 96 }, "identifierName": "getRealLastUpdate" }, "name": "getRealLastUpdate" }, "computed": false }, "arguments": [] } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Check when the last save was, but make sure that if it fails, we don't spam", "start": 1252, "end": 1330, "loc": { "start": { "line": 52, "column": 8 }, "end": { "line": 52, "column": 86 } } } ] }, { "type": "VariableDeclaration", "start": 1444, "end": 1510, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 74 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1450, "end": 1509, "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 73 } }, "id": { "type": "Identifier", "start": 1450, "end": 1470, "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 34 }, "identifierName": "secondsSinceLastSave" }, "name": "secondsSinceLastSave" }, "init": { "type": "BinaryExpression", "start": 1473, "end": 1509, "loc": { "start": { "line": 55, "column": 37 }, "end": { "line": 55, "column": 73 } }, "left": { "type": "BinaryExpression", "start": 1474, "end": 1499, "loc": { "start": { "line": 55, "column": 38 }, "end": { "line": 55, "column": 63 } }, "left": { "type": "CallExpression", "start": 1474, "end": 1484, "loc": { "start": { "line": 55, "column": 38 }, "end": { "line": 55, "column": 48 } }, "callee": { "type": "MemberExpression", "start": 1474, "end": 1482, "loc": { "start": { "line": 55, "column": 38 }, "end": { "line": 55, "column": 46 } }, "object": { "type": "Identifier", "start": 1474, "end": 1478, "loc": { "start": { "line": 55, "column": 38 }, "end": { "line": 55, "column": 42 }, "identifierName": "Date" }, "name": "Date" }, "property": { "type": "Identifier", "start": 1479, "end": 1482, "loc": { "start": { "line": 55, "column": 43 }, "end": { "line": 55, "column": 46 }, "identifierName": "now" }, "name": "now" }, "computed": false }, "arguments": [] }, "operator": "-", "right": { "type": "Identifier", "start": 1487, "end": 1499, "loc": { "start": { "line": 55, "column": 51 }, "end": { "line": 55, "column": 63 }, "identifierName": "lastSaveTime" }, "name": "lastSaveTime" }, "extra": { "parenthesized": true, "parenStart": 1473 } }, "operator": "/", "right": { "type": "NumericLiteral", "start": 1503, "end": 1509, "loc": { "start": { "line": 55, "column": 67 }, "end": { "line": 55, "column": 73 } }, "extra": { "rawValue": 1000, "raw": "1000.0" }, "value": 1000 } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 1520, "end": 1543, "loc": { "start": { "line": 56, "column": 8 }, "end": { "line": 56, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1524, "end": 1542, "loc": { "start": { "line": 56, "column": 12 }, "end": { "line": 56, "column": 30 } }, "id": { "type": "Identifier", "start": 1524, "end": 1534, "loc": { "start": { "line": 56, "column": 12 }, "end": { "line": 56, "column": 22 }, "identifierName": "shouldSave" }, "name": "shouldSave" }, "init": { "type": "BooleanLiteral", "start": 1537, "end": 1542, "loc": { "start": { "line": 56, "column": 25 }, "end": { "line": 56, "column": 30 } }, "value": false } } ], "kind": "let" }, { "type": "SwitchStatement", "start": 1555, "end": 2075, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 72, "column": 9 } }, "discriminant": { "type": "MemberExpression", "start": 1563, "end": 1582, "loc": { "start": { "line": 58, "column": 16 }, "end": { "line": 58, "column": 35 } }, "object": { "type": "ThisExpression", "start": 1563, "end": 1567, "loc": { "start": { "line": 58, "column": 16 }, "end": { "line": 58, "column": 20 } } }, "property": { "type": "Identifier", "start": 1568, "end": 1582, "loc": { "start": { "line": 58, "column": 21 }, "end": { "line": 58, "column": 35 }, "identifierName": "saveImportance" }, "name": "saveImportance" }, "computed": false }, "cases": [ { "type": "SwitchCase", "start": 1599, "end": 1730, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 62, "column": 22 } }, "consequent": [ { "type": "ExpressionStatement", "start": 1688, "end": 1706, "loc": { "start": { "line": 61, "column": 16 }, "end": { "line": 61, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 1688, "end": 1705, "loc": { "start": { "line": 61, "column": 16 }, "end": { "line": 61, "column": 33 } }, "operator": "=", "left": { "type": "Identifier", "start": 1688, "end": 1698, "loc": { "start": { "line": 61, "column": 16 }, "end": { "line": 61, "column": 26 }, "identifierName": "shouldSave" }, "name": "shouldSave", "leadingComments": null }, "right": { "type": "BooleanLiteral", "start": 1701, "end": 1705, "loc": { "start": { "line": 61, "column": 29 }, "end": { "line": 61, "column": 33 } }, "value": true }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " High always should save", "start": 1644, "end": 1670, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 42 } } } ] }, { "type": "BreakStatement", "start": 1724, "end": 1730, "loc": { "start": { "line": 62, "column": 16 }, "end": { "line": 62, "column": 22 } }, "label": null } ], "test": { "type": "MemberExpression", "start": 1604, "end": 1625, "loc": { "start": { "line": 59, "column": 17 }, "end": { "line": 59, "column": 38 } }, "object": { "type": "Identifier", "start": 1604, "end": 1620, "loc": { "start": { "line": 59, "column": 17 }, "end": { "line": 59, "column": 33 }, "identifierName": "enumSavePriority" }, "name": "enumSavePriority" }, "property": { "type": "Identifier", "start": 1621, "end": 1625, "loc": { "start": { "line": 59, "column": 34 }, "end": { "line": 59, "column": 38 }, "identifierName": "asap" }, "name": "asap" }, "computed": false } }, { "type": "SwitchCase", "start": 1746, "end": 1939, "loc": { "start": { "line": 64, "column": 12 }, "end": { "line": 67, "column": 22 } }, "consequent": [ { "type": "ExpressionStatement", "start": 1866, "end": 1915, "loc": { "start": { "line": 66, "column": 16 }, "end": { "line": 66, "column": 65 } }, "expression": { "type": "AssignmentExpression", "start": 1866, "end": 1914, "loc": { "start": { "line": 66, "column": 16 }, "end": { "line": 66, "column": 64 } }, "operator": "=", "left": { "type": "Identifier", "start": 1866, "end": 1876, "loc": { "start": { "line": 66, "column": 16 }, "end": { "line": 66, "column": 26 }, "identifierName": "shouldSave" }, "name": "shouldSave", "leadingComments": null }, "right": { "type": "BinaryExpression", "start": 1879, "end": 1914, "loc": { "start": { "line": 66, "column": 29 }, "end": { "line": 66, "column": 64 } }, "left": { "type": "Identifier", "start": 1879, "end": 1899, "loc": { "start": { "line": 66, "column": 29 }, "end": { "line": 66, "column": 49 }, "identifierName": "secondsSinceLastSave" }, "name": "secondsSinceLastSave" }, "operator": ">", "right": { "type": "Identifier", "start": 1902, "end": 1914, "loc": { "start": { "line": 66, "column": 52 }, "end": { "line": 66, "column": 64 }, "identifierName": "saveInterval" }, "name": "saveInterval" } }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Could determine if there is a good / bad point here", "start": 1794, "end": 1848, "loc": { "start": { "line": 65, "column": 16 }, "end": { "line": 65, "column": 70 } } } ] }, { "type": "BreakStatement", "start": 1933, "end": 1939, "loc": { "start": { "line": 67, "column": 16 }, "end": { "line": 67, "column": 22 } }, "label": null } ], "test": { "type": "MemberExpression", "start": 1751, "end": 1775, "loc": { "start": { "line": 64, "column": 17 }, "end": { "line": 64, "column": 41 } }, "object": { "type": "Identifier", "start": 1751, "end": 1767, "loc": { "start": { "line": 64, "column": 17 }, "end": { "line": 64, "column": 33 }, "identifierName": "enumSavePriority" }, "name": "enumSavePriority" }, "property": { "type": "Identifier", "start": 1768, "end": 1775, "loc": { "start": { "line": 64, "column": 34 }, "end": { "line": 64, "column": 41 }, "identifierName": "regular" }, "name": "regular" }, "computed": false } }, { "type": "SwitchCase", "start": 1955, "end": 2064, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 71, "column": 22 } }, "consequent": [ { "type": "ExpressionStatement", "start": 1981, "end": 2040, "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 75 } }, "expression": { "type": "CallExpression", "start": 1981, "end": 2039, "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 74 } }, "callee": { "type": "Identifier", "start": 1981, "end": 1987, "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 22 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BooleanLiteral", "start": 1988, "end": 1993, "loc": { "start": { "line": 70, "column": 23 }, "end": { "line": 70, "column": 28 } }, "value": false }, { "type": "BinaryExpression", "start": 1995, "end": 2038, "loc": { "start": { "line": 70, "column": 30 }, "end": { "line": 70, "column": 73 } }, "left": { "type": "StringLiteral", "start": 1995, "end": 2016, "loc": { "start": { "line": 70, "column": 30 }, "end": { "line": 70, "column": 51 } }, "extra": { "rawValue": "Unknown save prio: ", "raw": "\"Unknown save prio: \"" }, "value": "Unknown save prio: " }, "operator": "+", "right": { "type": "MemberExpression", "start": 2019, "end": 2038, "loc": { "start": { "line": 70, "column": 54 }, "end": { "line": 70, "column": 73 } }, "object": { "type": "ThisExpression", "start": 2019, "end": 2023, "loc": { "start": { "line": 70, "column": 54 }, "end": { "line": 70, "column": 58 } } }, "property": { "type": "Identifier", "start": 2024, "end": 2038, "loc": { "start": { "line": 70, "column": 59 }, "end": { "line": 70, "column": 73 }, "identifierName": "saveImportance" }, "name": "saveImportance" }, "computed": false } } ] } }, { "type": "BreakStatement", "start": 2058, "end": 2064, "loc": { "start": { "line": 71, "column": 16 }, "end": { "line": 71, "column": 22 } }, "label": null } ], "test": null } ] }, { "type": "IfStatement", "start": 2085, "end": 2238, "loc": { "start": { "line": 73, "column": 8 }, "end": { "line": 77, "column": 9 } }, "test": { "type": "Identifier", "start": 2089, "end": 2099, "loc": { "start": { "line": 73, "column": 12 }, "end": { "line": 73, "column": 22 }, "identifierName": "shouldSave" }, "name": "shouldSave" }, "consequent": { "type": "BlockStatement", "start": 2101, "end": 2238, "loc": { "start": { "line": 73, "column": 24 }, "end": { "line": 77, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 2116, "end": 2151, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 47 } }, "expression": { "type": "CallExpression", "start": 2116, "end": 2150, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 2116, "end": 2126, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 22 } }, "object": { "type": "Identifier", "start": 2116, "end": 2122, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 18 }, "identifierName": "logger" }, "name": "logger" }, "property": { "type": "Identifier", "start": 2123, "end": 2126, "loc": { "start": { "line": 74, "column": 19 }, "end": { "line": 74, "column": 22 }, "identifierName": "log" }, "name": "log" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2127, "end": 2149, "loc": { "start": { "line": 74, "column": 23 }, "end": { "line": 74, "column": 45 } }, "extra": { "rawValue": "Saving automatically", "raw": "\"Saving automatically\"" }, "value": "Saving automatically" } ] } }, { "type": "ExpressionStatement", "start": 2165, "end": 2199, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 46 } }, "expression": { "type": "AssignmentExpression", "start": 2165, "end": 2198, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 45 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2165, "end": 2185, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 32 } }, "object": { "type": "ThisExpression", "start": 2165, "end": 2169, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 16 } } }, "property": { "type": "Identifier", "start": 2170, "end": 2185, "loc": { "start": { "line": 75, "column": 17 }, "end": { "line": 75, "column": 32 }, "identifierName": "lastSaveAttempt" }, "name": "lastSaveAttempt" }, "computed": false }, "right": { "type": "CallExpression", "start": 2188, "end": 2198, "loc": { "start": { "line": 75, "column": 35 }, "end": { "line": 75, "column": 45 } }, "callee": { "type": "MemberExpression", "start": 2188, "end": 2196, "loc": { "start": { "line": 75, "column": 35 }, "end": { "line": 75, "column": 43 } }, "object": { "type": "Identifier", "start": 2188, "end": 2192, "loc": { "start": { "line": 75, "column": 35 }, "end": { "line": 75, "column": 39 }, "identifierName": "Date" }, "name": "Date" }, "property": { "type": "Identifier", "start": 2193, "end": 2196, "loc": { "start": { "line": 75, "column": 40 }, "end": { "line": 75, "column": 43 }, "identifierName": "now" }, "name": "now" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 2213, "end": 2227, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 26 } }, "expression": { "type": "CallExpression", "start": 2213, "end": 2226, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 25 } }, "callee": { "type": "MemberExpression", "start": 2213, "end": 2224, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 23 } }, "object": { "type": "ThisExpression", "start": 2213, "end": 2217, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 16 } } }, "property": { "type": "Identifier", "start": 2218, "end": 2224, "loc": { "start": { "line": 76, "column": 17 }, "end": { "line": 76, "column": 23 }, "identifierName": "doSave" }, "name": "doSave" }, "computed": false }, "arguments": [] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentLine", "value": " How important it is that a savegame is created", "start": 135, "end": 184, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 49 } } }, { "type": "CommentBlock", "value": "*\r\n * @enum {number}\r\n ", "start": 186, "end": 213, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } }, { "type": "CommentBlock", "value": "* @type {GameRoot} ", "start": 396, "end": 419, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 31 } } }, { "type": "CommentLine", "value": " Store the current maximum save importance", "start": 458, "end": 502, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 52 } } }, { "type": "CommentLine", "value": " Bad idea", "start": 1025, "end": 1036, "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 23 } } }, { "type": "CommentLine", "value": " Disabled", "start": 1197, "end": 1208, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 23 } } }, { "type": "CommentLine", "value": " Check when the last save was, but make sure that if it fails, we don't spam", "start": 1252, "end": 1330, "loc": { "start": { "line": 52, "column": 8 }, "end": { "line": 52, "column": 86 } } }, { "type": "CommentLine", "value": " High always should save", "start": 1644, "end": 1670, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 42 } } }, { "type": "CommentLine", "value": " Could determine if there is a good / bad point here", "start": 1794, "end": 1848, "loc": { "start": { "line": 65, "column": 16 }, "end": { "line": 65, "column": 70 } } } ], "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": "globalConfig", "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/config", "start": 29, "end": 45, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 45 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 45, "end": 46, "loc": { "start": { "line": 1, "column": 45 }, "end": { "line": 1, "column": 46 } } }, { "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": 48, "end": 54, "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": 55, "end": 56, "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": "createLogger", "start": 57, "end": 69, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 70, "end": 71, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 72, "end": 76, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "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": 77, "end": 94, "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 94, "end": 95, "loc": { "start": { "line": 2, "column": 46 }, "end": { "line": 2, "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": 97, "end": 103, "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": 104, "end": 105, "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": "GameRoot", "start": 106, "end": 114, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 115, "end": 116, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 117, "end": 121, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "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": 122, "end": 130, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 130, "end": 131, "loc": { "start": { "line": 3, "column": 33 }, "end": { "line": 3, "column": 34 } } }, { "type": "CommentLine", "value": " How important it is that a savegame is created", "start": 135, "end": 184, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 49 } } }, { "type": "CommentBlock", "value": "*\r\n * @enum {number}\r\n ", "start": 186, "end": 213, "loc": { "start": { "line": 6, "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": 215, "end": 221, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "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": 222, "end": 227, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSavePriority", "start": 228, "end": 244, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 245, "end": 246, "loc": { "start": { "line": 9, "column": 30 }, "end": { "line": 9, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 247, "end": 248, "loc": { "start": { "line": 9, "column": 32 }, "end": { "line": 9, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "regular", "start": 254, "end": 261, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 11 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 261, "end": 262, "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 12 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 263, "end": 264, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 14 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 264, "end": 265, "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "asap", "start": 271, "end": 275, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 8 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 275, "end": 276, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 9 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 100, "start": 277, "end": 280, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 13 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 280, "end": 281, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 14 } } }, { "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": 12, "column": 0 }, "end": { "line": 12, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 284, "end": 285, "loc": { "start": { "line": 12, "column": 1 }, "end": { "line": 12, "column": 2 } } }, { "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": 289, "end": 294, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "logger", "start": 295, "end": 301, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 302, "end": 303, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createLogger", "start": 304, "end": 316, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 316, "end": 317, "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "autosave", "start": 317, "end": 327, "loc": { "start": { "line": 14, "column": 28 }, "end": { "line": 14, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 327, "end": 328, "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 328, "end": 329, "loc": { "start": { "line": 14, "column": 39 }, "end": { "line": 14, "column": 40 } } }, { "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": 333, "end": 339, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "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": 340, "end": 345, "loc": { "start": { "line": 16, "column": 7 }, "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": "AutomaticSave", "start": 346, "end": 359, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 26 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 360, "end": 361, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 367, "end": 378, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 378, "end": 379, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 379, "end": 383, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 383, "end": 384, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 385, "end": 386, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 23 } } }, { "type": "CommentBlock", "value": "* @type {GameRoot} ", "start": 396, "end": 419, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 31 } } }, { "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": 429, "end": 433, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 433, "end": 434, "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 434, "end": 438, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 439, "end": 440, "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 441, "end": 445, "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 445, "end": 446, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 25 } } }, { "type": "CommentLine", "value": " Store the current maximum save importance", "start": 458, "end": 502, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 52 } } }, { "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": 512, "end": 516, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 516, "end": 517, "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveImportance", "start": 517, "end": 531, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 532, "end": 533, "loc": { "start": { "line": 22, "column": 28 }, "end": { "line": 22, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSavePriority", "start": 534, "end": 550, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 550, "end": 551, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "regular", "start": 551, "end": 558, "loc": { "start": { "line": 22, "column": 47 }, "end": { "line": 22, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 558, "end": 559, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 55 } } }, { "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": 571, "end": 575, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 575, "end": 576, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lastSaveAttempt", "start": 576, "end": 591, "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 592, "end": 593, "loc": { "start": { "line": 24, "column": 29 }, "end": { "line": 24, "column": 30 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 594, "end": 595, "loc": { "start": { "line": 24, "column": 31 }, "end": { "line": 24, "column": 32 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1000, "start": 595, "end": 599, "loc": { "start": { "line": 24, "column": 32 }, "end": { "line": 24, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 599, "end": 600, "loc": { "start": { "line": 24, "column": 36 }, "end": { "line": 24, "column": 37 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 606, "end": 607, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setSaveImportance", "start": 615, "end": 632, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 632, "end": 633, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "importance", "start": 633, "end": 643, "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 643, "end": 644, "loc": { "start": { "line": 27, "column": 32 }, "end": { "line": 27, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 645, "end": 646, "loc": { "start": { "line": 27, "column": 34 }, "end": { "line": 27, "column": 35 } } }, { "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": 656, "end": 660, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 660, "end": 661, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveImportance", "start": 661, "end": 675, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 676, "end": 677, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 678, "end": 682, "loc": { "start": { "line": 28, "column": 30 }, "end": { "line": 28, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 682, "end": 683, "loc": { "start": { "line": 28, "column": 34 }, "end": { "line": 28, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "max", "start": 683, "end": 686, "loc": { "start": { "line": 28, "column": 35 }, "end": { "line": 28, "column": 38 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 686, "end": 687, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 39 } } }, { "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": 687, "end": 691, "loc": { "start": { "line": 28, "column": 39 }, "end": { "line": 28, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 691, "end": 692, "loc": { "start": { "line": 28, "column": 43 }, "end": { "line": 28, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveImportance", "start": 692, "end": 706, "loc": { "start": { "line": 28, "column": 44 }, "end": { "line": 28, "column": 58 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 706, "end": 707, "loc": { "start": { "line": 28, "column": 58 }, "end": { "line": 28, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "importance", "start": 708, "end": 718, "loc": { "start": { "line": 28, "column": 60 }, "end": { "line": 28, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 718, "end": 719, "loc": { "start": { "line": 28, "column": 70 }, "end": { "line": 28, "column": 71 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 719, "end": 720, "loc": { "start": { "line": 28, "column": 71 }, "end": { "line": 28, "column": 72 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 726, "end": 727, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "doSave", "start": 735, "end": 741, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 741, "end": 742, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 11 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 742, "end": 743, "loc": { "start": { "line": 31, "column": 11 }, "end": { "line": 31, "column": 12 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 744, "end": 745, "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 31, "column": 14 } } }, { "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": 755, "end": 757, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 758, "end": 759, "loc": { "start": { "line": 32, "column": 11 }, "end": { "line": 32, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "G_IS_DEV", "start": 759, "end": 767, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 20 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 768, "end": 770, "loc": { "start": { "line": 32, "column": 21 }, "end": { "line": 32, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 771, "end": 783, "loc": { "start": { "line": 32, "column": 24 }, "end": { "line": 32, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 783, "end": 784, "loc": { "start": { "line": 32, "column": 36 }, "end": { "line": 32, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "debug", "start": 784, "end": 789, "loc": { "start": { "line": 32, "column": 37 }, "end": { "line": 32, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 789, "end": 790, "loc": { "start": { "line": 32, "column": 42 }, "end": { "line": 32, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "disableSavegameWrite", "start": 790, "end": 810, "loc": { "start": { "line": 32, "column": 43 }, "end": { "line": 32, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 810, "end": 811, "loc": { "start": { "line": 32, "column": 63 }, "end": { "line": 32, "column": 64 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 812, "end": 813, "loc": { "start": { "line": 32, "column": 65 }, "end": { "line": 32, "column": 66 } } }, { "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": 827, "end": 833, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 833, "end": 834, "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 19 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 844, "end": 845, "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 34, "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": 857, "end": 861, "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": 861, "end": 862, "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": "root", "start": 862, "end": 866, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 866, "end": 867, "loc": { "start": { "line": 36, "column": 17 }, "end": { "line": 36, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gameState", "start": 867, "end": 876, "loc": { "start": { "line": 36, "column": 18 }, "end": { "line": 36, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 876, "end": 877, "loc": { "start": { "line": 36, "column": 27 }, "end": { "line": 36, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "doSave", "start": 877, "end": 883, "loc": { "start": { "line": 36, "column": 28 }, "end": { "line": 36, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 883, "end": 884, "loc": { "start": { "line": 36, "column": 34 }, "end": { "line": 36, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 884, "end": 885, "loc": { "start": { "line": 36, "column": 35 }, "end": { "line": 36, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 885, "end": 886, "loc": { "start": { "line": 36, "column": 36 }, "end": { "line": 36, "column": 37 } } }, { "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": 896, "end": 900, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 900, "end": 901, "loc": { "start": { "line": 37, "column": 12 }, "end": { "line": 37, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveImportance", "start": 901, "end": 915, "loc": { "start": { "line": 37, "column": 13 }, "end": { "line": 37, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 916, "end": 917, "loc": { "start": { "line": 37, "column": 28 }, "end": { "line": 37, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSavePriority", "start": 918, "end": 934, "loc": { "start": { "line": 37, "column": 30 }, "end": { "line": 37, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 934, "end": 935, "loc": { "start": { "line": 37, "column": 46 }, "end": { "line": 37, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "regular", "start": 935, "end": 942, "loc": { "start": { "line": 37, "column": 47 }, "end": { "line": 37, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 942, "end": 943, "loc": { "start": { "line": 37, "column": 54 }, "end": { "line": 37, "column": 55 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 949, "end": 950, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "update", "start": 958, "end": 964, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 40, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 964, "end": 965, "loc": { "start": { "line": 40, "column": 10 }, "end": { "line": 40, "column": 11 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 965, "end": 966, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 40, "column": 12 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 967, "end": 968, "loc": { "start": { "line": 40, "column": 13 }, "end": { "line": 40, "column": 14 } } }, { "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": 978, "end": 980, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 981, "end": 982, "loc": { "start": { "line": 41, "column": 11 }, "end": { "line": 41, "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": 982, "end": 983, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "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": 983, "end": 987, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 987, "end": 988, "loc": { "start": { "line": 41, "column": 17 }, "end": { "line": 41, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 988, "end": 992, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 992, "end": 993, "loc": { "start": { "line": 41, "column": 22 }, "end": { "line": 41, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gameInitialized", "start": 993, "end": 1008, "loc": { "start": { "line": 41, "column": 23 }, "end": { "line": 41, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1008, "end": 1009, "loc": { "start": { "line": 41, "column": 38 }, "end": { "line": 41, "column": 39 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1010, "end": 1011, "loc": { "start": { "line": 41, "column": 40 }, "end": { "line": 41, "column": 41 } } }, { "type": "CommentLine", "value": " Bad idea", "start": 1025, "end": 1036, "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 23 } } }, { "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": 1050, "end": 1056, "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1056, "end": 1057, "loc": { "start": { "line": 43, "column": 18 }, "end": { "line": 43, "column": 19 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1067, "end": 1068, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "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": 1080, "end": 1085, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 46, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveInterval", "start": 1086, "end": 1098, "loc": { "start": { "line": 46, "column": 14 }, "end": { "line": 46, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1099, "end": 1100, "loc": { "start": { "line": 46, "column": 27 }, "end": { "line": 46, "column": 28 } } }, { "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": 1101, "end": 1105, "loc": { "start": { "line": 46, "column": 29 }, "end": { "line": 46, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1105, "end": 1106, "loc": { "start": { "line": 46, "column": 33 }, "end": { "line": 46, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 1106, "end": 1110, "loc": { "start": { "line": 46, "column": 34 }, "end": { "line": 46, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1110, "end": 1111, "loc": { "start": { "line": 46, "column": 38 }, "end": { "line": 46, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "app", "start": 1111, "end": 1114, "loc": { "start": { "line": 46, "column": 39 }, "end": { "line": 46, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1114, "end": 1115, "loc": { "start": { "line": 46, "column": 42 }, "end": { "line": 46, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "settings", "start": 1115, "end": 1123, "loc": { "start": { "line": 46, "column": 43 }, "end": { "line": 46, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1123, "end": 1124, "loc": { "start": { "line": 46, "column": 51 }, "end": { "line": 46, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getAutosaveIntervalSeconds", "start": 1124, "end": 1150, "loc": { "start": { "line": 46, "column": 52 }, "end": { "line": 46, "column": 78 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1150, "end": 1151, "loc": { "start": { "line": 46, "column": 78 }, "end": { "line": 46, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1151, "end": 1152, "loc": { "start": { "line": 46, "column": 79 }, "end": { "line": 46, "column": 80 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1152, "end": 1153, "loc": { "start": { "line": 46, "column": 80 }, "end": { "line": 46, "column": 81 } } }, { "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": 1163, "end": 1165, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 47, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1166, "end": 1167, "loc": { "start": { "line": 47, "column": 11 }, "end": { "line": 47, "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": 1167, "end": 1168, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveInterval", "start": 1168, "end": 1180, "loc": { "start": { "line": 47, "column": 13 }, "end": { "line": 47, "column": 25 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1180, "end": 1181, "loc": { "start": { "line": 47, "column": 25 }, "end": { "line": 47, "column": 26 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1182, "end": 1183, "loc": { "start": { "line": 47, "column": 27 }, "end": { "line": 47, "column": 28 } } }, { "type": "CommentLine", "value": " Disabled", "start": 1197, "end": 1208, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 23 } } }, { "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": 1222, "end": 1228, "loc": { "start": { "line": 49, "column": 12 }, "end": { "line": 49, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1228, "end": 1229, "loc": { "start": { "line": 49, "column": 18 }, "end": { "line": 49, "column": 19 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1239, "end": 1240, "loc": { "start": { "line": 50, "column": 8 }, "end": { "line": 50, "column": 9 } } }, { "type": "CommentLine", "value": " Check when the last save was, but make sure that if it fails, we don't spam", "start": 1252, "end": 1330, "loc": { "start": { "line": 52, "column": 8 }, "end": { "line": 52, "column": 86 } } }, { "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": 1340, "end": 1345, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lastSaveTime", "start": 1346, "end": 1358, "loc": { "start": { "line": 53, "column": 14 }, "end": { "line": 53, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1359, "end": 1360, "loc": { "start": { "line": 53, "column": 27 }, "end": { "line": 53, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 1361, "end": 1365, "loc": { "start": { "line": 53, "column": 29 }, "end": { "line": 53, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1365, "end": 1366, "loc": { "start": { "line": 53, "column": 33 }, "end": { "line": 53, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "max", "start": 1366, "end": 1369, "loc": { "start": { "line": 53, "column": 34 }, "end": { "line": 53, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1369, "end": 1370, "loc": { "start": { "line": 53, "column": 37 }, "end": { "line": 53, "column": 38 } } }, { "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": 1370, "end": 1374, "loc": { "start": { "line": 53, "column": 38 }, "end": { "line": 53, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1374, "end": 1375, "loc": { "start": { "line": 53, "column": 42 }, "end": { "line": 53, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lastSaveAttempt", "start": 1375, "end": 1390, "loc": { "start": { "line": 53, "column": 43 }, "end": { "line": 53, "column": 58 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1390, "end": 1391, "loc": { "start": { "line": 53, "column": 58 }, "end": { "line": 53, "column": 59 } } }, { "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": 1392, "end": 1396, "loc": { "start": { "line": 53, "column": 60 }, "end": { "line": 53, "column": 64 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1396, "end": 1397, "loc": { "start": { "line": 53, "column": 64 }, "end": { "line": 53, "column": 65 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 1397, "end": 1401, "loc": { "start": { "line": 53, "column": 65 }, "end": { "line": 53, "column": 69 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1401, "end": 1402, "loc": { "start": { "line": 53, "column": 69 }, "end": { "line": 53, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "savegame", "start": 1402, "end": 1410, "loc": { "start": { "line": 53, "column": 70 }, "end": { "line": 53, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1410, "end": 1411, "loc": { "start": { "line": 53, "column": 78 }, "end": { "line": 53, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getRealLastUpdate", "start": 1411, "end": 1428, "loc": { "start": { "line": 53, "column": 79 }, "end": { "line": 53, "column": 96 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1428, "end": 1429, "loc": { "start": { "line": 53, "column": 96 }, "end": { "line": 53, "column": 97 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1429, "end": 1430, "loc": { "start": { "line": 53, "column": 97 }, "end": { "line": 53, "column": 98 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1430, "end": 1431, "loc": { "start": { "line": 53, "column": 98 }, "end": { "line": 53, "column": 99 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1431, "end": 1432, "loc": { "start": { "line": 53, "column": 99 }, "end": { "line": 53, "column": 100 } } }, { "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": 1444, "end": 1449, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "secondsSinceLastSave", "start": 1450, "end": 1470, "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1471, "end": 1472, "loc": { "start": { "line": 55, "column": 35 }, "end": { "line": 55, "column": 36 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1473, "end": 1474, "loc": { "start": { "line": 55, "column": 37 }, "end": { "line": 55, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Date", "start": 1474, "end": 1478, "loc": { "start": { "line": 55, "column": 38 }, "end": { "line": 55, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1478, "end": 1479, "loc": { "start": { "line": 55, "column": 42 }, "end": { "line": 55, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "now", "start": 1479, "end": 1482, "loc": { "start": { "line": 55, "column": 43 }, "end": { "line": 55, "column": 46 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1482, "end": 1483, "loc": { "start": { "line": 55, "column": 46 }, "end": { "line": 55, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1483, "end": 1484, "loc": { "start": { "line": 55, "column": 47 }, "end": { "line": 55, "column": 48 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 1485, "end": 1486, "loc": { "start": { "line": 55, "column": 49 }, "end": { "line": 55, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lastSaveTime", "start": 1487, "end": 1499, "loc": { "start": { "line": 55, "column": 51 }, "end": { "line": 55, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1499, "end": 1500, "loc": { "start": { "line": 55, "column": 63 }, "end": { "line": 55, "column": 64 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 1501, "end": 1502, "loc": { "start": { "line": 55, "column": 65 }, "end": { "line": 55, "column": 66 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1000, "start": 1503, "end": 1509, "loc": { "start": { "line": 55, "column": 67 }, "end": { "line": 55, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1509, "end": 1510, "loc": { "start": { "line": 55, "column": 73 }, "end": { "line": 55, "column": 74 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 1520, "end": 1523, "loc": { "start": { "line": 56, "column": 8 }, "end": { "line": 56, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shouldSave", "start": 1524, "end": 1534, "loc": { "start": { "line": 56, "column": 12 }, "end": { "line": 56, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1535, "end": 1536, "loc": { "start": { "line": 56, "column": 23 }, "end": { "line": 56, "column": 24 } } }, { "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": 1537, "end": 1542, "loc": { "start": { "line": 56, "column": 25 }, "end": { "line": 56, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1542, "end": 1543, "loc": { "start": { "line": 56, "column": 30 }, "end": { "line": 56, "column": 31 } } }, { "type": { "label": "switch", "keyword": "switch", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "switch", "start": 1555, "end": 1561, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1562, "end": 1563, "loc": { "start": { "line": 58, "column": 15 }, "end": { "line": 58, "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": 1563, "end": 1567, "loc": { "start": { "line": 58, "column": 16 }, "end": { "line": 58, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1567, "end": 1568, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveImportance", "start": 1568, "end": 1582, "loc": { "start": { "line": 58, "column": 21 }, "end": { "line": 58, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1582, "end": 1583, "loc": { "start": { "line": 58, "column": 35 }, "end": { "line": 58, "column": 36 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1584, "end": 1585, "loc": { "start": { "line": 58, "column": 37 }, "end": { "line": 58, "column": 38 } } }, { "type": { "label": "case", "keyword": "case", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "case", "start": 1599, "end": 1603, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 59, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSavePriority", "start": 1604, "end": 1620, "loc": { "start": { "line": 59, "column": 17 }, "end": { "line": 59, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1620, "end": 1621, "loc": { "start": { "line": 59, "column": 33 }, "end": { "line": 59, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "asap", "start": 1621, "end": 1625, "loc": { "start": { "line": 59, "column": 34 }, "end": { "line": 59, "column": 38 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1625, "end": 1626, "loc": { "start": { "line": 59, "column": 38 }, "end": { "line": 59, "column": 39 } } }, { "type": "CommentLine", "value": " High always should save", "start": 1644, "end": 1670, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shouldSave", "start": 1688, "end": 1698, "loc": { "start": { "line": 61, "column": 16 }, "end": { "line": 61, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1699, "end": 1700, "loc": { "start": { "line": 61, "column": 27 }, "end": { "line": 61, "column": 28 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 1701, "end": 1705, "loc": { "start": { "line": 61, "column": 29 }, "end": { "line": 61, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1705, "end": 1706, "loc": { "start": { "line": 61, "column": 33 }, "end": { "line": 61, "column": 34 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 1724, "end": 1729, "loc": { "start": { "line": 62, "column": 16 }, "end": { "line": 62, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1729, "end": 1730, "loc": { "start": { "line": 62, "column": 21 }, "end": { "line": 62, "column": 22 } } }, { "type": { "label": "case", "keyword": "case", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "case", "start": 1746, "end": 1750, "loc": { "start": { "line": 64, "column": 12 }, "end": { "line": 64, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSavePriority", "start": 1751, "end": 1767, "loc": { "start": { "line": 64, "column": 17 }, "end": { "line": 64, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1767, "end": 1768, "loc": { "start": { "line": 64, "column": 33 }, "end": { "line": 64, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "regular", "start": 1768, "end": 1775, "loc": { "start": { "line": 64, "column": 34 }, "end": { "line": 64, "column": 41 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1775, "end": 1776, "loc": { "start": { "line": 64, "column": 41 }, "end": { "line": 64, "column": 42 } } }, { "type": "CommentLine", "value": " Could determine if there is a good / bad point here", "start": 1794, "end": 1848, "loc": { "start": { "line": 65, "column": 16 }, "end": { "line": 65, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shouldSave", "start": 1866, "end": 1876, "loc": { "start": { "line": 66, "column": 16 }, "end": { "line": 66, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1877, "end": 1878, "loc": { "start": { "line": 66, "column": 27 }, "end": { "line": 66, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "secondsSinceLastSave", "start": 1879, "end": 1899, "loc": { "start": { "line": 66, "column": 29 }, "end": { "line": 66, "column": 49 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">", "start": 1900, "end": 1901, "loc": { "start": { "line": 66, "column": 50 }, "end": { "line": 66, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveInterval", "start": 1902, "end": 1914, "loc": { "start": { "line": 66, "column": 52 }, "end": { "line": 66, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1914, "end": 1915, "loc": { "start": { "line": 66, "column": 64 }, "end": { "line": 66, "column": 65 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 1933, "end": 1938, "loc": { "start": { "line": 67, "column": 16 }, "end": { "line": 67, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1938, "end": 1939, "loc": { "start": { "line": 67, "column": 21 }, "end": { "line": 67, "column": 22 } } }, { "type": { "label": "default", "keyword": "default", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "default", "start": 1955, "end": 1962, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 19 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1962, "end": 1963, "loc": { "start": { "line": 69, "column": 19 }, "end": { "line": 69, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 1981, "end": 1987, "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1987, "end": 1988, "loc": { "start": { "line": 70, "column": 22 }, "end": { "line": 70, "column": 23 } } }, { "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": 1988, "end": 1993, "loc": { "start": { "line": 70, "column": 23 }, "end": { "line": 70, "column": 28 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1993, "end": 1994, "loc": { "start": { "line": 70, "column": 28 }, "end": { "line": 70, "column": 29 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Unknown save prio: ", "start": 1995, "end": 2016, "loc": { "start": { "line": 70, "column": 30 }, "end": { "line": 70, "column": 51 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2017, "end": 2018, "loc": { "start": { "line": 70, "column": 52 }, "end": { "line": 70, "column": 53 } } }, { "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": 2019, "end": 2023, "loc": { "start": { "line": 70, "column": 54 }, "end": { "line": 70, "column": 58 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2023, "end": 2024, "loc": { "start": { "line": 70, "column": 58 }, "end": { "line": 70, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "saveImportance", "start": 2024, "end": 2038, "loc": { "start": { "line": 70, "column": 59 }, "end": { "line": 70, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2038, "end": 2039, "loc": { "start": { "line": 70, "column": 73 }, "end": { "line": 70, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2039, "end": 2040, "loc": { "start": { "line": 70, "column": 74 }, "end": { "line": 70, "column": 75 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 2058, "end": 2063, "loc": { "start": { "line": 71, "column": 16 }, "end": { "line": 71, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2063, "end": 2064, "loc": { "start": { "line": 71, "column": 21 }, "end": { "line": 71, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2074, "end": 2075, "loc": { "start": { "line": 72, "column": 8 }, "end": { "line": 72, "column": 9 } } }, { "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": 2085, "end": 2087, "loc": { "start": { "line": 73, "column": 8 }, "end": { "line": 73, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2088, "end": 2089, "loc": { "start": { "line": 73, "column": 11 }, "end": { "line": 73, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shouldSave", "start": 2089, "end": 2099, "loc": { "start": { "line": 73, "column": 12 }, "end": { "line": 73, "column": 22 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2099, "end": 2100, "loc": { "start": { "line": 73, "column": 22 }, "end": { "line": 73, "column": 23 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2101, "end": 2102, "loc": { "start": { "line": 73, "column": 24 }, "end": { "line": 73, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "logger", "start": 2116, "end": 2122, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2122, "end": 2123, "loc": { "start": { "line": 74, "column": 18 }, "end": { "line": 74, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "log", "start": 2123, "end": 2126, "loc": { "start": { "line": 74, "column": 19 }, "end": { "line": 74, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2126, "end": 2127, "loc": { "start": { "line": 74, "column": 22 }, "end": { "line": 74, "column": 23 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Saving automatically", "start": 2127, "end": 2149, "loc": { "start": { "line": 74, "column": 23 }, "end": { "line": 74, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2149, "end": 2150, "loc": { "start": { "line": 74, "column": 45 }, "end": { "line": 74, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2150, "end": 2151, "loc": { "start": { "line": 74, "column": 46 }, "end": { "line": 74, "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": 2165, "end": 2169, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2169, "end": 2170, "loc": { "start": { "line": 75, "column": 16 }, "end": { "line": 75, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lastSaveAttempt", "start": 2170, "end": 2185, "loc": { "start": { "line": 75, "column": 17 }, "end": { "line": 75, "column": 32 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2186, "end": 2187, "loc": { "start": { "line": 75, "column": 33 }, "end": { "line": 75, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Date", "start": 2188, "end": 2192, "loc": { "start": { "line": 75, "column": 35 }, "end": { "line": 75, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2192, "end": 2193, "loc": { "start": { "line": 75, "column": 39 }, "end": { "line": 75, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "now", "start": 2193, "end": 2196, "loc": { "start": { "line": 75, "column": 40 }, "end": { "line": 75, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2196, "end": 2197, "loc": { "start": { "line": 75, "column": 43 }, "end": { "line": 75, "column": 44 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2197, "end": 2198, "loc": { "start": { "line": 75, "column": 44 }, "end": { "line": 75, "column": 45 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2198, "end": 2199, "loc": { "start": { "line": 75, "column": 45 }, "end": { "line": 75, "column": 46 } } }, { "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": 2213, "end": 2217, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2217, "end": 2218, "loc": { "start": { "line": 76, "column": 16 }, "end": { "line": 76, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "doSave", "start": 2218, "end": 2224, "loc": { "start": { "line": 76, "column": 17 }, "end": { "line": 76, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2224, "end": 2225, "loc": { "start": { "line": 76, "column": 23 }, "end": { "line": 76, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2225, "end": 2226, "loc": { "start": { "line": 76, "column": 24 }, "end": { "line": 76, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2226, "end": 2227, "loc": { "start": { "line": 76, "column": 25 }, "end": { "line": 76, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2237, "end": 2238, "loc": { "start": { "line": 77, "column": 8 }, "end": { "line": 77, "column": 9 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2244, "end": 2245, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 78, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2247, "end": 2248, "loc": { "start": { "line": 79, "column": 0 }, "end": { "line": 79, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2250, "end": 2250, "loc": { "start": { "line": 80, "column": 0 }, "end": { "line": 80, "column": 0 } } } ] }