1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-11 17:21:51 +00:00
tobspr_shapez.io/docs/ast/source/savegame/schemas/1002.js.json
2021-02-26 15:20:37 +01:00

6252 lines
153 KiB
JSON

{
"type": "File",
"start": 0,
"end": 1119,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 40,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1119,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 40,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 53
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
},
"identifierName": "createLogger"
},
"name": "createLogger"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
},
"identifierName": "createLogger"
},
"name": "createLogger"
}
}
],
"source": {
"type": "StringLiteral",
"start": 29,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 52
}
},
"extra": {
"rawValue": "../../core/logging.js",
"raw": "\"../../core/logging.js\""
},
"value": "../../core/logging.js"
}
},
{
"type": "ImportDeclaration",
"start": 55,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 42
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 64,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
}
},
"imported": {
"type": "Identifier",
"start": 64,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
},
"identifierName": "T"
},
"name": "T"
},
"local": {
"type": "Identifier",
"start": 64,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
},
"identifierName": "T"
},
"name": "T"
}
}
],
"source": {
"type": "StringLiteral",
"start": 73,
"end": 96,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 41
}
},
"extra": {
"rawValue": "../../translations.js",
"raw": "\"../../translations.js\""
},
"value": "../../translations.js"
}
},
{
"type": "ImportDeclaration",
"start": 99,
"end": 151,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 52
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 108,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
}
},
"imported": {
"type": "Identifier",
"start": 108,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
},
"identifierName": "SavegameInterface_V1001"
},
"name": "SavegameInterface_V1001"
},
"local": {
"type": "Identifier",
"start": 108,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
},
"identifierName": "SavegameInterface_V1001"
},
"name": "SavegameInterface_V1001"
}
}
],
"source": {
"type": "StringLiteral",
"start": 139,
"end": 150,
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 51
}
},
"extra": {
"rawValue": "./1001.js",
"raw": "\"./1001.js\""
},
"value": "./1001.js"
}
},
{
"type": "VariableDeclaration",
"start": 155,
"end": 193,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 38
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 161,
"end": 192,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 37
}
},
"id": {
"type": "Identifier",
"start": 161,
"end": 167,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 12
},
"identifierName": "schema"
},
"name": "schema"
},
"init": {
"type": "CallExpression",
"start": 170,
"end": 192,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 37
}
},
"callee": {
"type": "Identifier",
"start": 170,
"end": 177,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 22
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 178,
"end": 191,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 5,
"column": 36
}
},
"extra": {
"rawValue": "./1002.json",
"raw": "\"./1002.json\""
},
"value": "./1002.json"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 195,
"end": 250,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 55
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 201,
"end": 249,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 54
}
},
"id": {
"type": "Identifier",
"start": 201,
"end": 207,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 12
},
"identifierName": "logger"
},
"name": "logger"
},
"init": {
"type": "CallExpression",
"start": 210,
"end": 249,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 54
}
},
"callee": {
"type": "Identifier",
"start": 210,
"end": 222,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 27
},
"identifierName": "createLogger"
},
"name": "createLogger"
},
"arguments": [
{
"type": "StringLiteral",
"start": 223,
"end": 248,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 53
}
},
"extra": {
"rawValue": "savegame_interface/1002",
"raw": "\"savegame_interface/1002\""
},
"value": "savegame_interface/1002"
}
]
}
}
],
"kind": "const"
},
{
"type": "ExportNamedDeclaration",
"start": 254,
"end": 1117,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 39,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 261,
"end": 1117,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 39,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 267,
"end": 290,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 36
},
"identifierName": "SavegameInterface_V1002"
},
"name": "SavegameInterface_V1002"
},
"superClass": {
"type": "Identifier",
"start": 299,
"end": 322,
"loc": {
"start": {
"line": 8,
"column": 45
},
"end": {
"line": 8,
"column": 68
},
"identifierName": "SavegameInterface_V1001"
},
"name": "SavegameInterface_V1001"
},
"body": {
"type": "ClassBody",
"start": 323,
"end": 1117,
"loc": {
"start": {
"line": 8,
"column": 69
},
"end": {
"line": 39,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 330,
"end": 373,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 330,
"end": 340,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 14
},
"identifierName": "getVersion"
},
"name": "getVersion"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 343,
"end": 373,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 11,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 354,
"end": 366,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 20
}
},
"argument": {
"type": "NumericLiteral",
"start": 361,
"end": 365,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 19
}
},
"extra": {
"rawValue": 1002,
"raw": "1002"
},
"value": 1002
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 381,
"end": 433,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 381,
"end": 398,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 21
},
"identifierName": "getSchemaUncached"
},
"name": "getSchemaUncached"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 401,
"end": 433,
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 412,
"end": 426,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 22
}
},
"argument": {
"type": "Identifier",
"start": 419,
"end": 425,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 21
},
"identifierName": "schema"
},
"name": "schema"
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {import(\"../savegame_typedefs.js\").SavegameData} data\r\n ",
"start": 441,
"end": 522,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 528,
"end": 1114,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 38,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 535,
"end": 552,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 28
},
"identifierName": "migrate1001to1002"
},
"name": "migrate1001to1002"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 553,
"end": 557,
"loc": {
"start": {
"line": 20,
"column": 29
},
"end": {
"line": 20,
"column": 33
},
"identifierName": "data"
},
"name": "data"
}
],
"body": {
"type": "BlockStatement",
"start": 559,
"end": 1114,
"loc": {
"start": {
"line": 20,
"column": 35
},
"end": {
"line": 38,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 570,
"end": 607,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 570,
"end": 606,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 570,
"end": 580,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 570,
"end": 576,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 14
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 577,
"end": 580,
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 18
},
"identifierName": "log"
},
"name": "log"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 581,
"end": 605,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 21,
"column": 43
}
},
"extra": {
"rawValue": "Migrating 1001 to 1002",
"raw": "\"Migrating 1001 to 1002\""
},
"value": "Migrating 1001 to 1002"
}
]
}
},
{
"type": "VariableDeclaration",
"start": 617,
"end": 640,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 623,
"end": 639,
"loc": {
"start": {
"line": 22,
"column": 14
},
"end": {
"line": 22,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 623,
"end": 627,
"loc": {
"start": {
"line": 22,
"column": 14
},
"end": {
"line": 22,
"column": 18
},
"identifierName": "dump"
},
"name": "dump"
},
"init": {
"type": "MemberExpression",
"start": 630,
"end": 639,
"loc": {
"start": {
"line": 22,
"column": 21
},
"end": {
"line": 22,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 630,
"end": 634,
"loc": {
"start": {
"line": 22,
"column": 21
},
"end": {
"line": 22,
"column": 25
},
"identifierName": "data"
},
"name": "data"
},
"property": {
"type": "Identifier",
"start": 635,
"end": 639,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 30
},
"identifierName": "dump"
},
"name": "dump"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 650,
"end": 699,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 25,
"column": 9
}
},
"test": {
"type": "UnaryExpression",
"start": 654,
"end": 659,
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 17
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 655,
"end": 659,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 17
},
"identifierName": "dump"
},
"name": "dump"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 661,
"end": 699,
"loc": {
"start": {
"line": 23,
"column": 19
},
"end": {
"line": 25,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 676,
"end": 688,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 24
}
},
"argument": {
"type": "BooleanLiteral",
"start": 683,
"end": 687,
"loc": {
"start": {
"line": 24,
"column": 19
},
"end": {
"line": 24,
"column": 23
}
},
"value": true
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 711,
"end": 742,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 717,
"end": 741,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 38
}
},
"id": {
"type": "Identifier",
"start": 717,
"end": 725,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 22
},
"identifierName": "entities"
},
"name": "entities"
},
"init": {
"type": "MemberExpression",
"start": 728,
"end": 741,
"loc": {
"start": {
"line": 27,
"column": 25
},
"end": {
"line": 27,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 728,
"end": 732,
"loc": {
"start": {
"line": 27,
"column": 25
},
"end": {
"line": 27,
"column": 29
},
"identifierName": "dump"
},
"name": "dump"
},
"property": {
"type": "Identifier",
"start": 733,
"end": 741,
"loc": {
"start": {
"line": 27,
"column": 30
},
"end": {
"line": 27,
"column": 38
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ForStatement",
"start": 752,
"end": 1107,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 37,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 757,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 761,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 761,
"end": 762,
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 765,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 768,
"end": 787,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 43
}
},
"left": {
"type": "Identifier",
"start": 768,
"end": 769,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 25
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 772,
"end": 787,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 772,
"end": 780,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 36
},
"identifierName": "entities"
},
"name": "entities"
},
"property": {
"type": "Identifier",
"start": 781,
"end": 787,
"loc": {
"start": {
"line": 28,
"column": 37
},
"end": {
"line": 28,
"column": 43
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 789,
"end": 792,
"loc": {
"start": {
"line": 28,
"column": 45
},
"end": {
"line": 28,
"column": 48
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 791,
"end": 792,
"loc": {
"start": {
"line": 28,
"column": 47
},
"end": {
"line": 28,
"column": 48
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 794,
"end": 1107,
"loc": {
"start": {
"line": 28,
"column": 50
},
"end": {
"line": 37,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 809,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 815,
"end": 835,
"loc": {
"start": {
"line": 29,
"column": 18
},
"end": {
"line": 29,
"column": 38
}
},
"id": {
"type": "Identifier",
"start": 815,
"end": 821,
"loc": {
"start": {
"line": 29,
"column": 18
},
"end": {
"line": 29,
"column": 24
},
"identifierName": "entity"
},
"name": "entity"
},
"init": {
"type": "MemberExpression",
"start": 824,
"end": 835,
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 824,
"end": 832,
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 35
},
"identifierName": "entities"
},
"name": "entities"
},
"property": {
"type": "Identifier",
"start": 833,
"end": 834,
"loc": {
"start": {
"line": 29,
"column": 36
},
"end": {
"line": 29,
"column": 37
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 850,
"end": 890,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 52
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 856,
"end": 889,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 51
}
},
"id": {
"type": "Identifier",
"start": 856,
"end": 864,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 26
},
"identifierName": "beltComp"
},
"name": "beltComp"
},
"init": {
"type": "MemberExpression",
"start": 867,
"end": 889,
"loc": {
"start": {
"line": 30,
"column": 29
},
"end": {
"line": 30,
"column": 51
}
},
"object": {
"type": "MemberExpression",
"start": 867,
"end": 884,
"loc": {
"start": {
"line": 30,
"column": 29
},
"end": {
"line": 30,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 867,
"end": 873,
"loc": {
"start": {
"line": 30,
"column": 29
},
"end": {
"line": 30,
"column": 35
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 874,
"end": 884,
"loc": {
"start": {
"line": 30,
"column": 36
},
"end": {
"line": 30,
"column": 46
},
"identifierName": "components"
},
"name": "components"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 885,
"end": 889,
"loc": {
"start": {
"line": 30,
"column": 47
},
"end": {
"line": 30,
"column": 51
},
"identifierName": "Belt"
},
"name": "Belt"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 904,
"end": 954,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 62
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 910,
"end": 953,
"loc": {
"start": {
"line": 31,
"column": 18
},
"end": {
"line": 31,
"column": 61
}
},
"id": {
"type": "Identifier",
"start": 910,
"end": 921,
"loc": {
"start": {
"line": 31,
"column": 18
},
"end": {
"line": 31,
"column": 29
},
"identifierName": "ejectorComp"
},
"name": "ejectorComp"
},
"init": {
"type": "MemberExpression",
"start": 924,
"end": 953,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 61
}
},
"object": {
"type": "MemberExpression",
"start": 924,
"end": 941,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 924,
"end": 930,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 38
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 931,
"end": 941,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 49
},
"identifierName": "components"
},
"name": "components"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 942,
"end": 953,
"loc": {
"start": {
"line": 31,
"column": 50
},
"end": {
"line": 31,
"column": 61
},
"identifierName": "ItemEjector"
},
"name": "ItemEjector"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 970,
"end": 1096,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 36,
"column": 13
}
},
"test": {
"type": "LogicalExpression",
"start": 974,
"end": 997,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 39
}
},
"left": {
"type": "Identifier",
"start": 974,
"end": 982,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 24
},
"identifierName": "beltComp"
},
"name": "beltComp"
},
"operator": "&&",
"right": {
"type": "Identifier",
"start": 986,
"end": 997,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 39
},
"identifierName": "ejectorComp"
},
"name": "ejectorComp"
}
},
"consequent": {
"type": "BlockStatement",
"start": 999,
"end": 1096,
"loc": {
"start": {
"line": 33,
"column": 41
},
"end": {
"line": 36,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1049,
"end": 1081,
"loc": {
"start": {
"line": 35,
"column": 16
},
"end": {
"line": 35,
"column": 48
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1049,
"end": 1080,
"loc": {
"start": {
"line": 35,
"column": 16
},
"end": {
"line": 35,
"column": 47
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1049,
"end": 1073,
"loc": {
"start": {
"line": 35,
"column": 16
},
"end": {
"line": 35,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 1049,
"end": 1060,
"loc": {
"start": {
"line": 35,
"column": 16
},
"end": {
"line": 35,
"column": 27
},
"identifierName": "ejectorComp"
},
"name": "ejectorComp",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1061,
"end": 1073,
"loc": {
"start": {
"line": 35,
"column": 28
},
"end": {
"line": 35,
"column": 40
},
"identifierName": "instantEject"
},
"name": "instantEject"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "BooleanLiteral",
"start": 1076,
"end": 1080,
"loc": {
"start": {
"line": 35,
"column": 43
},
"end": {
"line": 35,
"column": 47
}
},
"value": true
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 1018,
"end": 1031,
"loc": {
"start": {
"line": 34,
"column": 16
},
"end": {
"line": 34,
"column": 29
}
}
}
]
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {import(\"../savegame_typedefs.js\").SavegameData} data\r\n ",
"start": 441,
"end": 522,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [],
"trailingComments": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {import(\"../savegame_typedefs.js\").SavegameData} data\r\n ",
"start": 441,
"end": 522,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 1018,
"end": 1031,
"loc": {
"start": {
"line": 34,
"column": 16
},
"end": {
"line": 34,
"column": 29
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createLogger",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 22,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 24,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../core/logging.js",
"start": 29,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 52
},
"end": {
"line": 1,
"column": 53
}
}
},
{
"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": 55,
"end": 61,
"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": 62,
"end": 63,
"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": "T",
"start": 64,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 66,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 68,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 13
},
"end": {
"line": 2,
"column": 17
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../translations.js",
"start": 73,
"end": 96,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 96,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 41
},
"end": {
"line": 2,
"column": 42
}
}
},
{
"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": 99,
"end": 105,
"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": 106,
"end": 107,
"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": "SavegameInterface_V1001",
"start": 108,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 132,
"end": 133,
"loc": {
"start": {
"line": 3,
"column": 33
},
"end": {
"line": 3,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 134,
"end": 138,
"loc": {
"start": {
"line": 3,
"column": 35
},
"end": {
"line": 3,
"column": 39
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./1001.js",
"start": 139,
"end": 150,
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 150,
"end": 151,
"loc": {
"start": {
"line": 3,
"column": 51
},
"end": {
"line": 3,
"column": 52
}
}
},
{
"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": 155,
"end": 160,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "schema",
"start": 161,
"end": 167,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 168,
"end": 169,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "require",
"start": 170,
"end": 177,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 177,
"end": 178,
"loc": {
"start": {
"line": 5,
"column": 22
},
"end": {
"line": 5,
"column": 23
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./1002.json",
"start": 178,
"end": 191,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 5,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 191,
"end": 192,
"loc": {
"start": {
"line": 5,
"column": 36
},
"end": {
"line": 5,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 192,
"end": 193,
"loc": {
"start": {
"line": 5,
"column": 37
},
"end": {
"line": 5,
"column": 38
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 195,
"end": 200,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 201,
"end": 207,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 208,
"end": 209,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createLogger",
"start": 210,
"end": 222,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 222,
"end": 223,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "savegame_interface/1002",
"start": 223,
"end": 248,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 248,
"end": 249,
"loc": {
"start": {
"line": 6,
"column": 53
},
"end": {
"line": 6,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 249,
"end": 250,
"loc": {
"start": {
"line": 6,
"column": 54
},
"end": {
"line": 6,
"column": 55
}
}
},
{
"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": 254,
"end": 260,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"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": 261,
"end": 266,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "SavegameInterface_V1002",
"start": 267,
"end": 290,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 36
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 291,
"end": 298,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 8,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "SavegameInterface_V1001",
"start": 299,
"end": 322,
"loc": {
"start": {
"line": 8,
"column": 45
},
"end": {
"line": 8,
"column": 68
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 323,
"end": 324,
"loc": {
"start": {
"line": 8,
"column": 69
},
"end": {
"line": 8,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getVersion",
"start": 330,
"end": 340,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 340,
"end": 341,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 341,
"end": 342,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 343,
"end": 344,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 18
}
}
},
{
"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": 354,
"end": 360,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 14
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1002,
"start": 361,
"end": 365,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 365,
"end": 366,
"loc": {
"start": {
"line": 10,
"column": 19
},
"end": {
"line": 10,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 372,
"end": 373,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSchemaUncached",
"start": 381,
"end": 398,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 398,
"end": 399,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 399,
"end": 400,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 401,
"end": 402,
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 25
}
}
},
{
"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": 412,
"end": 418,
"loc": {
"start": {
"line": 14,
"column": 8
},
"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": "schema",
"start": 419,
"end": 425,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 425,
"end": 426,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 432,
"end": 433,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @param {import(\"../savegame_typedefs.js\").SavegameData} data\r\n ",
"start": 441,
"end": 522,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 528,
"end": 534,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "migrate1001to1002",
"start": 535,
"end": 552,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 552,
"end": 553,
"loc": {
"start": {
"line": 20,
"column": 28
},
"end": {
"line": 20,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 553,
"end": 557,
"loc": {
"start": {
"line": 20,
"column": 29
},
"end": {
"line": 20,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 557,
"end": 558,
"loc": {
"start": {
"line": 20,
"column": 33
},
"end": {
"line": 20,
"column": 34
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 559,
"end": 560,
"loc": {
"start": {
"line": 20,
"column": 35
},
"end": {
"line": 20,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 570,
"end": 576,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 576,
"end": 577,
"loc": {
"start": {
"line": 21,
"column": 14
},
"end": {
"line": 21,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "log",
"start": 577,
"end": 580,
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 580,
"end": 581,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"column": 19
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Migrating 1001 to 1002",
"start": 581,
"end": 605,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 21,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 605,
"end": 606,
"loc": {
"start": {
"line": 21,
"column": 43
},
"end": {
"line": 21,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 606,
"end": 607,
"loc": {
"start": {
"line": 21,
"column": 44
},
"end": {
"line": 21,
"column": 45
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 617,
"end": 622,
"loc": {
"start": {
"line": 22,
"column": 8
},
"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": "dump",
"start": 623,
"end": 627,
"loc": {
"start": {
"line": 22,
"column": 14
},
"end": {
"line": 22,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 628,
"end": 629,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 630,
"end": 634,
"loc": {
"start": {
"line": 22,
"column": 21
},
"end": {
"line": 22,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 634,
"end": 635,
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dump",
"start": 635,
"end": 639,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 639,
"end": 640,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 31
}
}
},
{
"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": 650,
"end": 652,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 653,
"end": 654,
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"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": 654,
"end": 655,
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dump",
"start": 655,
"end": 659,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 659,
"end": 660,
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 661,
"end": 662,
"loc": {
"start": {
"line": 23,
"column": 19
},
"end": {
"line": 23,
"column": 20
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 676,
"end": 682,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 18
}
}
},
{
"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": 683,
"end": 687,
"loc": {
"start": {
"line": 24,
"column": 19
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 687,
"end": 688,
"loc": {
"start": {
"line": 24,
"column": 23
},
"end": {
"line": 24,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 698,
"end": 699,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"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": 711,
"end": 716,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 717,
"end": 725,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 726,
"end": 727,
"loc": {
"start": {
"line": 27,
"column": 23
},
"end": {
"line": 27,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dump",
"start": 728,
"end": 732,
"loc": {
"start": {
"line": 27,
"column": 25
},
"end": {
"line": 27,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 732,
"end": 733,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 733,
"end": 741,
"loc": {
"start": {
"line": 27,
"column": 30
},
"end": {
"line": 27,
"column": 38
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 741,
"end": 742,
"loc": {
"start": {
"line": 27,
"column": 38
},
"end": {
"line": 27,
"column": 39
}
}
},
{
"type": {
"label": "for",
"keyword": "for",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "for",
"start": 752,
"end": 755,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 756,
"end": 757,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 13
}
}
},
{
"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": 757,
"end": 760,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 761,
"end": 762,
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 763,
"end": 764,
"loc": {
"start": {
"line": 28,
"column": 19
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 765,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 766,
"end": 767,
"loc": {
"start": {
"line": 28,
"column": 22
},
"end": {
"line": 28,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 768,
"end": 769,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 25
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 770,
"end": 771,
"loc": {
"start": {
"line": 28,
"column": 26
},
"end": {
"line": 28,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 772,
"end": 780,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 780,
"end": 781,
"loc": {
"start": {
"line": 28,
"column": 36
},
"end": {
"line": 28,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 781,
"end": 787,
"loc": {
"start": {
"line": 28,
"column": 37
},
"end": {
"line": 28,
"column": 43
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 787,
"end": 788,
"loc": {
"start": {
"line": 28,
"column": 43
},
"end": {
"line": 28,
"column": 44
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 789,
"end": 791,
"loc": {
"start": {
"line": 28,
"column": 45
},
"end": {
"line": 28,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 791,
"end": 792,
"loc": {
"start": {
"line": 28,
"column": 47
},
"end": {
"line": 28,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 792,
"end": 793,
"loc": {
"start": {
"line": 28,
"column": 48
},
"end": {
"line": 28,
"column": 49
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 794,
"end": 795,
"loc": {
"start": {
"line": 28,
"column": 50
},
"end": {
"line": 28,
"column": 51
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 809,
"end": 814,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 815,
"end": 821,
"loc": {
"start": {
"line": 29,
"column": 18
},
"end": {
"line": 29,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 822,
"end": 823,
"loc": {
"start": {
"line": 29,
"column": 25
},
"end": {
"line": 29,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 824,
"end": 832,
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 35
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 832,
"end": 833,
"loc": {
"start": {
"line": 29,
"column": 35
},
"end": {
"line": 29,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 833,
"end": 834,
"loc": {
"start": {
"line": 29,
"column": 36
},
"end": {
"line": 29,
"column": 37
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 834,
"end": 835,
"loc": {
"start": {
"line": 29,
"column": 37
},
"end": {
"line": 29,
"column": 38
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 835,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 38
},
"end": {
"line": 29,
"column": 39
}
}
},
{
"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": 850,
"end": 855,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "beltComp",
"start": 856,
"end": 864,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 865,
"end": 866,
"loc": {
"start": {
"line": 30,
"column": 27
},
"end": {
"line": 30,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 867,
"end": 873,
"loc": {
"start": {
"line": 30,
"column": 29
},
"end": {
"line": 30,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 873,
"end": 874,
"loc": {
"start": {
"line": 30,
"column": 35
},
"end": {
"line": 30,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "components",
"start": 874,
"end": 884,
"loc": {
"start": {
"line": 30,
"column": 36
},
"end": {
"line": 30,
"column": 46
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 884,
"end": 885,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Belt",
"start": 885,
"end": 889,
"loc": {
"start": {
"line": 30,
"column": 47
},
"end": {
"line": 30,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 889,
"end": 890,
"loc": {
"start": {
"line": 30,
"column": 51
},
"end": {
"line": 30,
"column": 52
}
}
},
{
"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": 904,
"end": 909,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ejectorComp",
"start": 910,
"end": 921,
"loc": {
"start": {
"line": 31,
"column": 18
},
"end": {
"line": 31,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 922,
"end": 923,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 924,
"end": 930,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 930,
"end": 931,
"loc": {
"start": {
"line": 31,
"column": 38
},
"end": {
"line": 31,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "components",
"start": 931,
"end": 941,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 941,
"end": 942,
"loc": {
"start": {
"line": 31,
"column": 49
},
"end": {
"line": 31,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ItemEjector",
"start": 942,
"end": 953,
"loc": {
"start": {
"line": 31,
"column": 50
},
"end": {
"line": 31,
"column": 61
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 953,
"end": 954,
"loc": {
"start": {
"line": 31,
"column": 61
},
"end": {
"line": 31,
"column": 62
}
}
},
{
"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": 970,
"end": 972,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 973,
"end": 974,
"loc": {
"start": {
"line": 33,
"column": 15
},
"end": {
"line": 33,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "beltComp",
"start": 974,
"end": 982,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 24
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 983,
"end": 985,
"loc": {
"start": {
"line": 33,
"column": 25
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ejectorComp",
"start": 986,
"end": 997,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 997,
"end": 998,
"loc": {
"start": {
"line": 33,
"column": 39
},
"end": {
"line": 33,
"column": 40
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 999,
"end": 1000,
"loc": {
"start": {
"line": 33,
"column": 41
},
"end": {
"line": 33,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 1018,
"end": 1031,
"loc": {
"start": {
"line": 34,
"column": 16
},
"end": {
"line": 34,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ejectorComp",
"start": 1049,
"end": 1060,
"loc": {
"start": {
"line": 35,
"column": 16
},
"end": {
"line": 35,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1060,
"end": 1061,
"loc": {
"start": {
"line": 35,
"column": 27
},
"end": {
"line": 35,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instantEject",
"start": 1061,
"end": 1073,
"loc": {
"start": {
"line": 35,
"column": 28
},
"end": {
"line": 35,
"column": 40
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1074,
"end": 1075,
"loc": {
"start": {
"line": 35,
"column": 41
},
"end": {
"line": 35,
"column": 42
}
}
},
{
"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": 1076,
"end": 1080,
"loc": {
"start": {
"line": 35,
"column": 43
},
"end": {
"line": 35,
"column": 47
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1080,
"end": 1081,
"loc": {
"start": {
"line": 35,
"column": 47
},
"end": {
"line": 35,
"column": 48
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1095,
"end": 1096,
"loc": {
"start": {
"line": 36,
"column": 12
},
"end": {
"line": 36,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1106,
"end": 1107,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1113,
"end": 1114,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1116,
"end": 1117,
"loc": {
"start": {
"line": 39,
"column": 0
},
"end": {
"line": 39,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1119,
"end": 1119,
"loc": {
"start": {
"line": 40,
"column": 0
},
"end": {
"line": 40,
"column": 0
}
}
}
]
}