1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/docs/ast/source/game/components/item_processor.js.json
2021-02-26 15:20:37 +01:00

13490 lines
345 KiB
JSON

{
"type": "File",
"start": 0,
"end": 3721,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 125,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3721,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 125,
"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": 14,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 14
},
"identifierName": "types"
},
"name": "types"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 14
},
"identifierName": "types"
},
"name": "types"
}
}
],
"source": {
"type": "StringLiteral",
"start": 22,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 52
}
},
"extra": {
"rawValue": "../../savegame/serialization",
"raw": "\"../../savegame/serialization\""
},
"value": "../../savegame/serialization"
}
},
{
"type": "ImportDeclaration",
"start": 55,
"end": 95,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 64,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 64,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "BaseItem"
},
"name": "BaseItem"
},
"local": {
"type": "Identifier",
"start": 64,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "BaseItem"
},
"name": "BaseItem"
}
}
],
"source": {
"type": "StringLiteral",
"start": 80,
"end": 94,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 39
}
},
"extra": {
"rawValue": "../base_item",
"raw": "\"../base_item\""
},
"value": "../base_item"
}
},
{
"type": "ImportDeclaration",
"start": 97,
"end": 138,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 106,
"end": 115,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 106,
"end": 115,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 106,
"end": 115,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
}
}
],
"source": {
"type": "StringLiteral",
"start": 123,
"end": 137,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 40
}
},
"extra": {
"rawValue": "../component",
"raw": "\"../component\""
},
"value": "../component"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 142,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 21
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 165,
"end": 601,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 22,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 172,
"end": 601,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 22,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 178,
"end": 600,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 22,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 178,
"end": 200,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 35
},
"identifierName": "enumItemProcessorTypes"
},
"name": "enumItemProcessorTypes",
"leadingComments": null
},
"init": {
"type": "ObjectExpression",
"start": 203,
"end": 600,
"loc": {
"start": {
"line": 6,
"column": 38
},
"end": {
"line": 22,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 210,
"end": 230,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 24
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 210,
"end": 218,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 12
},
"identifierName": "balancer"
},
"name": "balancer"
},
"value": {
"type": "StringLiteral",
"start": 220,
"end": 230,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 24
}
},
"extra": {
"rawValue": "balancer",
"raw": "\"balancer\""
},
"value": "balancer"
}
},
{
"type": "ObjectProperty",
"start": 237,
"end": 253,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 20
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 237,
"end": 243,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 10
},
"identifierName": "cutter"
},
"name": "cutter"
},
"value": {
"type": "StringLiteral",
"start": 245,
"end": 253,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 20
}
},
"extra": {
"rawValue": "cutter",
"raw": "\"cutter\""
},
"value": "cutter"
}
},
{
"type": "ObjectProperty",
"start": 260,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 28
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 260,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 14
},
"identifierName": "cutterQuad"
},
"name": "cutterQuad"
},
"value": {
"type": "StringLiteral",
"start": 272,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 28
}
},
"extra": {
"rawValue": "cutterQuad",
"raw": "\"cutterQuad\""
},
"value": "cutterQuad"
}
},
{
"type": "ObjectProperty",
"start": 291,
"end": 309,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 291,
"end": 298,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 11
},
"identifierName": "rotater"
},
"name": "rotater"
},
"value": {
"type": "StringLiteral",
"start": 300,
"end": 309,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 22
}
},
"extra": {
"rawValue": "rotater",
"raw": "\"rotater\""
},
"value": "rotater"
}
},
{
"type": "ObjectProperty",
"start": 316,
"end": 340,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 28
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 316,
"end": 326,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 14
},
"identifierName": "rotaterCCW"
},
"name": "rotaterCCW"
},
"value": {
"type": "StringLiteral",
"start": 328,
"end": 340,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 28
}
},
"extra": {
"rawValue": "rotaterCCW",
"raw": "\"rotaterCCW\""
},
"value": "rotaterCCW"
}
},
{
"type": "ObjectProperty",
"start": 347,
"end": 371,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 28
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 347,
"end": 357,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 14
},
"identifierName": "rotater180"
},
"name": "rotater180"
},
"value": {
"type": "StringLiteral",
"start": 359,
"end": 371,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 28
}
},
"extra": {
"rawValue": "rotater180",
"raw": "\"rotater180\""
},
"value": "rotater180"
}
},
{
"type": "ObjectProperty",
"start": 378,
"end": 396,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 378,
"end": 385,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 11
},
"identifierName": "stacker"
},
"name": "stacker"
},
"value": {
"type": "StringLiteral",
"start": 387,
"end": 396,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 22
}
},
"extra": {
"rawValue": "stacker",
"raw": "\"stacker\""
},
"value": "stacker"
}
},
{
"type": "ObjectProperty",
"start": 403,
"end": 417,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 403,
"end": 408,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 9
},
"identifierName": "trash"
},
"name": "trash"
},
"value": {
"type": "StringLiteral",
"start": 410,
"end": 417,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 18
}
},
"extra": {
"rawValue": "trash",
"raw": "\"trash\""
},
"value": "trash"
}
},
{
"type": "ObjectProperty",
"start": 424,
"end": 438,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 424,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 9
},
"identifierName": "mixer"
},
"name": "mixer"
},
"value": {
"type": "StringLiteral",
"start": 431,
"end": 438,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 18
}
},
"extra": {
"rawValue": "mixer",
"raw": "\"mixer\""
},
"value": "mixer"
}
},
{
"type": "ObjectProperty",
"start": 445,
"end": 463,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 445,
"end": 452,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 11
},
"identifierName": "painter"
},
"name": "painter"
},
"value": {
"type": "StringLiteral",
"start": 454,
"end": 463,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 22
}
},
"extra": {
"rawValue": "painter",
"raw": "\"painter\""
},
"value": "painter"
}
},
{
"type": "ObjectProperty",
"start": 470,
"end": 500,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 34
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 470,
"end": 483,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 17
},
"identifierName": "painterDouble"
},
"name": "painterDouble"
},
"value": {
"type": "StringLiteral",
"start": 485,
"end": 500,
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 34
}
},
"extra": {
"rawValue": "painterDouble",
"raw": "\"painterDouble\""
},
"value": "painterDouble"
}
},
{
"type": "ObjectProperty",
"start": 507,
"end": 533,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 30
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 507,
"end": 518,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 15
},
"identifierName": "painterQuad"
},
"name": "painterQuad"
},
"value": {
"type": "StringLiteral",
"start": 520,
"end": 533,
"loc": {
"start": {
"line": 18,
"column": 17
},
"end": {
"line": 18,
"column": 30
}
},
"extra": {
"rawValue": "painterQuad",
"raw": "\"painterQuad\""
},
"value": "painterQuad"
}
},
{
"type": "ObjectProperty",
"start": 540,
"end": 550,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 14
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 540,
"end": 543,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 7
},
"identifierName": "hub"
},
"name": "hub"
},
"value": {
"type": "StringLiteral",
"start": 545,
"end": 550,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 14
}
},
"extra": {
"rawValue": "hub",
"raw": "\"hub\""
},
"value": "hub"
}
},
{
"type": "ObjectProperty",
"start": 557,
"end": 573,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 20
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 557,
"end": 563,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
},
"identifierName": "filter"
},
"name": "filter"
},
"value": {
"type": "StringLiteral",
"start": 565,
"end": 573,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 20
}
},
"extra": {
"rawValue": "filter",
"raw": "\"filter\""
},
"value": "filter"
}
},
{
"type": "ObjectProperty",
"start": 580,
"end": 596,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 20
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 580,
"end": 586,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 10
},
"identifierName": "reader"
},
"name": "reader"
},
"value": {
"type": "StringLiteral",
"start": 588,
"end": 596,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 20
}
},
"extra": {
"rawValue": "reader",
"raw": "\"reader\""
},
"value": "reader"
}
}
]
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 142,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 21
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 605,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 21
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 142,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 21
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 605,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 21
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 628,
"end": 711,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 27,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 635,
"end": 711,
"loc": {
"start": {
"line": 25,
"column": 7
},
"end": {
"line": 27,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 641,
"end": 710,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 27,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 641,
"end": 670,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 42
},
"identifierName": "enumItemProcessorRequirements"
},
"name": "enumItemProcessorRequirements",
"leadingComments": null
},
"init": {
"type": "ObjectExpression",
"start": 673,
"end": 710,
"loc": {
"start": {
"line": 25,
"column": 45
},
"end": {
"line": 27,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 680,
"end": 706,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 30
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 680,
"end": 691,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 15
},
"identifierName": "painterQuad"
},
"name": "painterQuad"
},
"value": {
"type": "StringLiteral",
"start": 693,
"end": 706,
"loc": {
"start": {
"line": 26,
"column": 17
},
"end": {
"line": 26,
"column": 30
}
},
"extra": {
"rawValue": "painterQuad",
"raw": "\"painterQuad\""
},
"value": "painterQuad"
}
}
]
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 605,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 21
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * item: BaseItem,\r\n * requiredSlot?: number,\r\n * preferredSlot?: number\r\n * }} EjectorItemToEject ",
"start": 715,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * remainingTime: number,\r\n * items: Array<EjectorItemToEject>,\r\n * }} EjectorCharge ",
"start": 840,
"end": 946,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 38,
"column": 22
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 605,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 21
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * item: BaseItem,\r\n * requiredSlot?: number,\r\n * preferredSlot?: number\r\n * }} EjectorItemToEject ",
"start": 715,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * remainingTime: number,\r\n * items: Array<EjectorItemToEject>,\r\n * }} EjectorCharge ",
"start": 840,
"end": 946,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 38,
"column": 22
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 950,
"end": 3719,
"loc": {
"start": {
"line": 40,
"column": 0
},
"end": {
"line": 124,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 957,
"end": 3719,
"loc": {
"start": {
"line": 40,
"column": 7
},
"end": {
"line": 124,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 963,
"end": 985,
"loc": {
"start": {
"line": 40,
"column": 13
},
"end": {
"line": 40,
"column": 35
},
"identifierName": "ItemProcessorComponent"
},
"name": "ItemProcessorComponent",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 994,
"end": 1003,
"loc": {
"start": {
"line": 40,
"column": 44
},
"end": {
"line": 40,
"column": 53
},
"identifierName": "Component"
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 1004,
"end": 3719,
"loc": {
"start": {
"line": 40,
"column": 54
},
"end": {
"line": 124,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 1011,
"end": 1067,
"loc": {
"start": {
"line": 41,
"column": 4
},
"end": {
"line": 43,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1018,
"end": 1023,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 41,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1026,
"end": 1067,
"loc": {
"start": {
"line": 41,
"column": 19
},
"end": {
"line": 43,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1037,
"end": 1060,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 31
}
},
"argument": {
"type": "StringLiteral",
"start": 1044,
"end": 1059,
"loc": {
"start": {
"line": 42,
"column": 15
},
"end": {
"line": 42,
"column": 30
}
},
"extra": {
"rawValue": "ItemProcessor",
"raw": "\"ItemProcessor\""
},
"value": "ItemProcessor"
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1075,
"end": 1173,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 49,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1082,
"end": 1091,
"loc": {
"start": {
"line": 45,
"column": 11
},
"end": {
"line": 45,
"column": 20
},
"identifierName": "getSchema"
},
"name": "getSchema"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1094,
"end": 1173,
"loc": {
"start": {
"line": 45,
"column": 23
},
"end": {
"line": 49,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1105,
"end": 1166,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 48,
"column": 10
}
},
"argument": {
"type": "ObjectExpression",
"start": 1112,
"end": 1165,
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 48,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1127,
"end": 1153,
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 38
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1127,
"end": 1141,
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 26
},
"identifierName": "nextOutputSlot"
},
"name": "nextOutputSlot"
},
"value": {
"type": "MemberExpression",
"start": 1143,
"end": 1153,
"loc": {
"start": {
"line": 47,
"column": 28
},
"end": {
"line": 47,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 1143,
"end": 1148,
"loc": {
"start": {
"line": 47,
"column": 28
},
"end": {
"line": 47,
"column": 33
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 1149,
"end": 1153,
"loc": {
"start": {
"line": 47,
"column": 34
},
"end": {
"line": 47,
"column": 38
},
"identifierName": "uint"
},
"name": "uint"
},
"computed": false
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumItemProcessorTypes=} param0.processorType Which type of processor this is\r\n * @param {enumItemProcessorRequirements=} param0.processingRequirement Applied processing requirement\r\n * @param {number=} param0.inputsPerCharge How many items this machine needs until it can start working\r\n *\r\n ",
"start": 1181,
"end": 1551,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 58,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1557,
"end": 2939,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 99,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1557,
"end": 1568,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 59,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "ObjectPattern",
"start": 1569,
"end": 1704,
"loc": {
"start": {
"line": 59,
"column": 16
},
"end": {
"line": 63,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1580,
"end": 1627,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 55
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1580,
"end": 1593,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 21
},
"identifierName": "processorType"
},
"name": "processorType"
},
"value": {
"type": "AssignmentPattern",
"start": 1580,
"end": 1627,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 55
}
},
"left": {
"type": "Identifier",
"start": 1580,
"end": 1593,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 21
},
"identifierName": "processorType"
},
"name": "processorType"
},
"right": {
"type": "MemberExpression",
"start": 1596,
"end": 1627,
"loc": {
"start": {
"line": 60,
"column": 24
},
"end": {
"line": 60,
"column": 55
}
},
"object": {
"type": "Identifier",
"start": 1596,
"end": 1618,
"loc": {
"start": {
"line": 60,
"column": 24
},
"end": {
"line": 60,
"column": 46
},
"identifierName": "enumItemProcessorTypes"
},
"name": "enumItemProcessorTypes"
},
"property": {
"type": "Identifier",
"start": 1619,
"end": 1627,
"loc": {
"start": {
"line": 60,
"column": 47
},
"end": {
"line": 60,
"column": 55
},
"identifierName": "balancer"
},
"name": "balancer"
},
"computed": false
}
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1638,
"end": 1666,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 36
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1638,
"end": 1659,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 29
},
"identifierName": "processingRequirement"
},
"name": "processingRequirement"
},
"value": {
"type": "AssignmentPattern",
"start": 1638,
"end": 1666,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 36
}
},
"left": {
"type": "Identifier",
"start": 1638,
"end": 1659,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 29
},
"identifierName": "processingRequirement"
},
"name": "processingRequirement"
},
"right": {
"type": "NullLiteral",
"start": 1662,
"end": 1666,
"loc": {
"start": {
"line": 61,
"column": 32
},
"end": {
"line": 61,
"column": 36
}
}
}
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1677,
"end": 1696,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 27
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1677,
"end": 1692,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 23
},
"identifierName": "inputsPerCharge"
},
"name": "inputsPerCharge"
},
"value": {
"type": "AssignmentPattern",
"start": 1677,
"end": 1696,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 27
}
},
"left": {
"type": "Identifier",
"start": 1677,
"end": 1692,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 23
},
"identifierName": "inputsPerCharge"
},
"name": "inputsPerCharge"
},
"right": {
"type": "NumericLiteral",
"start": 1695,
"end": 1696,
"loc": {
"start": {
"line": 62,
"column": 26
},
"end": {
"line": 62,
"column": 27
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
"extra": {
"shorthand": true
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start": 1706,
"end": 2939,
"loc": {
"start": {
"line": 63,
"column": 7
},
"end": {
"line": 99,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1717,
"end": 1725,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 1717,
"end": 1724,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 1717,
"end": 1722,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 13
}
}
},
"arguments": []
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Which slot to emit next, this is only a preference and if it can't emit",
"start": 1737,
"end": 1811,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 82
}
}
},
{
"type": "CommentLine",
"value": " it will take the other one. Some machines ignore this (e.g. the balancer) to make",
"start": 1821,
"end": 1905,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 92
}
}
},
{
"type": "CommentLine",
"value": " sure the outputs always match",
"start": 1915,
"end": 1947,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 40
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1957,
"end": 1981,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1957,
"end": 1980,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1957,
"end": 1976,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 1957,
"end": 1961,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1962,
"end": 1976,
"loc": {
"start": {
"line": 69,
"column": 13
},
"end": {
"line": 69,
"column": 27
},
"identifierName": "nextOutputSlot"
},
"name": "nextOutputSlot"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NumericLiteral",
"start": 1979,
"end": 1980,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 31
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Which slot to emit next, this is only a preference and if it can't emit",
"start": 1737,
"end": 1811,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 82
}
}
},
{
"type": "CommentLine",
"value": " it will take the other one. Some machines ignore this (e.g. the balancer) to make",
"start": 1821,
"end": 1905,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 92
}
}
},
{
"type": "CommentLine",
"value": " sure the outputs always match",
"start": 1915,
"end": 1947,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 40
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Type of the processor",
"start": 1993,
"end": 2017,
"loc": {
"start": {
"line": 71,
"column": 8
},
"end": {
"line": 71,
"column": 32
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2027,
"end": 2053,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2027,
"end": 2052,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2027,
"end": 2036,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 2027,
"end": 2031,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2032,
"end": 2036,
"loc": {
"start": {
"line": 72,
"column": 13
},
"end": {
"line": 72,
"column": 17
},
"identifierName": "type"
},
"name": "type"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 2039,
"end": 2052,
"loc": {
"start": {
"line": 72,
"column": 20
},
"end": {
"line": 72,
"column": 33
},
"identifierName": "processorType"
},
"name": "processorType"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Type of the processor",
"start": 1993,
"end": 2017,
"loc": {
"start": {
"line": 71,
"column": 8
},
"end": {
"line": 71,
"column": 32
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Type of processing requirement",
"start": 2065,
"end": 2098,
"loc": {
"start": {
"line": 74,
"column": 8
},
"end": {
"line": 74,
"column": 41
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2108,
"end": 2159,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 59
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2108,
"end": 2158,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 58
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2108,
"end": 2134,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 2108,
"end": 2112,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2113,
"end": 2134,
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 75,
"column": 34
},
"identifierName": "processingRequirement"
},
"name": "processingRequirement"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 2137,
"end": 2158,
"loc": {
"start": {
"line": 75,
"column": 37
},
"end": {
"line": 75,
"column": 58
},
"identifierName": "processingRequirement"
},
"name": "processingRequirement"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Type of processing requirement",
"start": 2065,
"end": 2098,
"loc": {
"start": {
"line": 74,
"column": 8
},
"end": {
"line": 74,
"column": 41
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " How many inputs we need for one charge",
"start": 2171,
"end": 2212,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 49
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2222,
"end": 2261,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 47
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2222,
"end": 2260,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 46
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2222,
"end": 2242,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 2222,
"end": 2226,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2227,
"end": 2242,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 28
},
"identifierName": "inputsPerCharge"
},
"name": "inputsPerCharge"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 2245,
"end": 2260,
"loc": {
"start": {
"line": 78,
"column": 31
},
"end": {
"line": 78,
"column": 46
},
"identifierName": "inputsPerCharge"
},
"name": "inputsPerCharge"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " How many inputs we need for one charge",
"start": 2171,
"end": 2212,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 49
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Our current inputs\r\n * @type {Array<{ item: BaseItem, sourceSlot: number }>}\r\n ",
"start": 2273,
"end": 2386,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 83,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2396,
"end": 2417,
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2396,
"end": 2416,
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2396,
"end": 2411,
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 2396,
"end": 2400,
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2401,
"end": 2411,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 23
},
"identifierName": "inputSlots"
},
"name": "inputSlots"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 2414,
"end": 2416,
"loc": {
"start": {
"line": 84,
"column": 26
},
"end": {
"line": 84,
"column": 28
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Our current inputs\r\n * @type {Array<{ item: BaseItem, sourceSlot: number }>}\r\n ",
"start": 2273,
"end": 2386,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 83,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * What we are currently processing, empty if we don't produce anything rn\r\n * requiredSlot: Item *must* be ejected on this slot\r\n * preferredSlot: Item *can* be ejected on this slot, but others are fine too if the one is not usable\r\n * @type {Array<EjectorCharge>}\r\n ",
"start": 2429,
"end": 2744,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 91,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2754,
"end": 2779,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2754,
"end": 2778,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2754,
"end": 2773,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 2754,
"end": 2758,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2759,
"end": 2773,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 27
},
"identifierName": "ongoingCharges"
},
"name": "ongoingCharges"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 2776,
"end": 2778,
"loc": {
"start": {
"line": 92,
"column": 30
},
"end": {
"line": 92,
"column": 32
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * What we are currently processing, empty if we don't produce anything rn\r\n * requiredSlot: Item *must* be ejected on this slot\r\n * preferredSlot: Item *can* be ejected on this slot, but others are fine too if the one is not usable\r\n * @type {Array<EjectorCharge>}\r\n ",
"start": 2429,
"end": 2744,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 91,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * How much processing time we have left from the last tick\r\n * @type {number}\r\n ",
"start": 2791,
"end": 2903,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 97,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2913,
"end": 2932,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2913,
"end": 2931,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2913,
"end": 2927,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 2913,
"end": 2917,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2918,
"end": 2927,
"loc": {
"start": {
"line": 98,
"column": 13
},
"end": {
"line": 98,
"column": 22
},
"identifierName": "bonusTime"
},
"name": "bonusTime"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NumericLiteral",
"start": 2930,
"end": 2931,
"loc": {
"start": {
"line": 98,
"column": 25
},
"end": {
"line": 98,
"column": 26
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * How much processing time we have left from the last tick\r\n * @type {number}\r\n ",
"start": 2791,
"end": 2903,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 97,
"column": 11
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumItemProcessorTypes=} param0.processorType Which type of processor this is\r\n * @param {enumItemProcessorRequirements=} param0.processingRequirement Applied processing requirement\r\n * @param {number=} param0.inputsPerCharge How many items this machine needs until it can start working\r\n *\r\n ",
"start": 1181,
"end": 1551,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 58,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tries to take the item\r\n * @param {BaseItem} item\r\n * @param {number} sourceSlot\r\n ",
"start": 2947,
"end": 3056,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 105,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3062,
"end": 3716,
"loc": {
"start": {
"line": 106,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3062,
"end": 3073,
"loc": {
"start": {
"line": 106,
"column": 4
},
"end": {
"line": 106,
"column": 15
},
"identifierName": "tryTakeItem"
},
"name": "tryTakeItem",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3074,
"end": 3078,
"loc": {
"start": {
"line": 106,
"column": 16
},
"end": {
"line": 106,
"column": 20
},
"identifierName": "item"
},
"name": "item"
},
{
"type": "Identifier",
"start": 3080,
"end": 3090,
"loc": {
"start": {
"line": 106,
"column": 22
},
"end": {
"line": 106,
"column": 32
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
}
],
"body": {
"type": "BlockStatement",
"start": 3092,
"end": 3716,
"loc": {
"start": {
"line": 106,
"column": 34
},
"end": {
"line": 123,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 3103,
"end": 3362,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 111,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 3107,
"end": 3193,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 98
}
},
"left": {
"type": "BinaryExpression",
"start": 3107,
"end": 3147,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 52
}
},
"left": {
"type": "MemberExpression",
"start": 3107,
"end": 3116,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 3107,
"end": 3111,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 3112,
"end": 3116,
"loc": {
"start": {
"line": 107,
"column": 17
},
"end": {
"line": 107,
"column": 21
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 3121,
"end": 3147,
"loc": {
"start": {
"line": 107,
"column": 26
},
"end": {
"line": 107,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 3121,
"end": 3143,
"loc": {
"start": {
"line": 107,
"column": 26
},
"end": {
"line": 107,
"column": 48
},
"identifierName": "enumItemProcessorTypes"
},
"name": "enumItemProcessorTypes"
},
"property": {
"type": "Identifier",
"start": 3144,
"end": 3147,
"loc": {
"start": {
"line": 107,
"column": 49
},
"end": {
"line": 107,
"column": 52
},
"identifierName": "hub"
},
"name": "hub"
},
"computed": false
}
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 3151,
"end": 3193,
"loc": {
"start": {
"line": 107,
"column": 56
},
"end": {
"line": 107,
"column": 98
}
},
"left": {
"type": "MemberExpression",
"start": 3151,
"end": 3160,
"loc": {
"start": {
"line": 107,
"column": 56
},
"end": {
"line": 107,
"column": 65
}
},
"object": {
"type": "ThisExpression",
"start": 3151,
"end": 3155,
"loc": {
"start": {
"line": 107,
"column": 56
},
"end": {
"line": 107,
"column": 60
}
}
},
"property": {
"type": "Identifier",
"start": 3156,
"end": 3160,
"loc": {
"start": {
"line": 107,
"column": 61
},
"end": {
"line": 107,
"column": 65
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 3165,
"end": 3193,
"loc": {
"start": {
"line": 107,
"column": 70
},
"end": {
"line": 107,
"column": 98
}
},
"object": {
"type": "Identifier",
"start": 3165,
"end": 3187,
"loc": {
"start": {
"line": 107,
"column": 70
},
"end": {
"line": 107,
"column": 92
},
"identifierName": "enumItemProcessorTypes"
},
"name": "enumItemProcessorTypes"
},
"property": {
"type": "Identifier",
"start": 3188,
"end": 3193,
"loc": {
"start": {
"line": 107,
"column": 93
},
"end": {
"line": 107,
"column": 98
},
"identifierName": "trash"
},
"name": "trash"
},
"computed": false
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3195,
"end": 3362,
"loc": {
"start": {
"line": 107,
"column": 100
},
"end": {
"line": 111,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3282,
"end": 3325,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 55
}
},
"expression": {
"type": "CallExpression",
"start": 3282,
"end": 3324,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 3282,
"end": 3302,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 32
}
},
"object": {
"type": "MemberExpression",
"start": 3282,
"end": 3297,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 3282,
"end": 3286,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 16
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3287,
"end": 3297,
"loc": {
"start": {
"line": 109,
"column": 17
},
"end": {
"line": 109,
"column": 27
},
"identifierName": "inputSlots"
},
"name": "inputSlots"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3298,
"end": 3302,
"loc": {
"start": {
"line": 109,
"column": 28
},
"end": {
"line": 109,
"column": 32
},
"identifierName": "push"
},
"name": "push"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "ObjectExpression",
"start": 3303,
"end": 3323,
"loc": {
"start": {
"line": 109,
"column": 33
},
"end": {
"line": 109,
"column": 53
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3305,
"end": 3309,
"loc": {
"start": {
"line": 109,
"column": 35
},
"end": {
"line": 109,
"column": 39
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 3305,
"end": 3309,
"loc": {
"start": {
"line": 109,
"column": 35
},
"end": {
"line": 109,
"column": 39
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "Identifier",
"start": 3305,
"end": 3309,
"loc": {
"start": {
"line": 109,
"column": 35
},
"end": {
"line": 109,
"column": 39
},
"identifierName": "item"
},
"name": "item"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 3311,
"end": 3321,
"loc": {
"start": {
"line": 109,
"column": 41
},
"end": {
"line": 109,
"column": 51
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 3311,
"end": 3321,
"loc": {
"start": {
"line": 109,
"column": 41
},
"end": {
"line": 109,
"column": 51
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
},
"value": {
"type": "Identifier",
"start": 3311,
"end": 3321,
"loc": {
"start": {
"line": 109,
"column": 41
},
"end": {
"line": 109,
"column": 51
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
},
"extra": {
"shorthand": true
}
}
]
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Hub has special logic .. not really nice but efficient.",
"start": 3210,
"end": 3268,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 70
}
}
}
]
},
{
"type": "ReturnStatement",
"start": 3339,
"end": 3351,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 24
}
},
"argument": {
"type": "BooleanLiteral",
"start": 3346,
"end": 3350,
"loc": {
"start": {
"line": 110,
"column": 19
},
"end": {
"line": 110,
"column": 23
}
},
"value": true
}
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " Check that we only take one item per slot",
"start": 3374,
"end": 3418,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 52
}
}
}
]
},
{
"type": "ForStatement",
"start": 3428,
"end": 3632,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 119,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 3433,
"end": 3442,
"loc": {
"start": {
"line": 114,
"column": 13
},
"end": {
"line": 114,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3437,
"end": 3442,
"loc": {
"start": {
"line": 114,
"column": 17
},
"end": {
"line": 114,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 3437,
"end": 3438,
"loc": {
"start": {
"line": 114,
"column": 17
},
"end": {
"line": 114,
"column": 18
},
"identifierName": "i"
},
"name": "i",
"leadingComments": null
},
"init": {
"type": "NumericLiteral",
"start": 3441,
"end": 3442,
"loc": {
"start": {
"line": 114,
"column": 21
},
"end": {
"line": 114,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"leadingComments": null
}
],
"kind": "let",
"leadingComments": null
},
"test": {
"type": "BinaryExpression",
"start": 3444,
"end": 3470,
"loc": {
"start": {
"line": 114,
"column": 24
},
"end": {
"line": 114,
"column": 50
}
},
"left": {
"type": "Identifier",
"start": 3444,
"end": 3445,
"loc": {
"start": {
"line": 114,
"column": 24
},
"end": {
"line": 114,
"column": 25
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 3448,
"end": 3470,
"loc": {
"start": {
"line": 114,
"column": 28
},
"end": {
"line": 114,
"column": 50
}
},
"object": {
"type": "MemberExpression",
"start": 3448,
"end": 3463,
"loc": {
"start": {
"line": 114,
"column": 28
},
"end": {
"line": 114,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 3448,
"end": 3452,
"loc": {
"start": {
"line": 114,
"column": 28
},
"end": {
"line": 114,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 3453,
"end": 3463,
"loc": {
"start": {
"line": 114,
"column": 33
},
"end": {
"line": 114,
"column": 43
},
"identifierName": "inputSlots"
},
"name": "inputSlots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3464,
"end": 3470,
"loc": {
"start": {
"line": 114,
"column": 44
},
"end": {
"line": 114,
"column": 50
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 3472,
"end": 3475,
"loc": {
"start": {
"line": 114,
"column": 52
},
"end": {
"line": 114,
"column": 55
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 3474,
"end": 3475,
"loc": {
"start": {
"line": 114,
"column": 54
},
"end": {
"line": 114,
"column": 55
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 3477,
"end": 3632,
"loc": {
"start": {
"line": 114,
"column": 57
},
"end": {
"line": 119,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 3492,
"end": 3524,
"loc": {
"start": {
"line": 115,
"column": 12
},
"end": {
"line": 115,
"column": 44
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3498,
"end": 3523,
"loc": {
"start": {
"line": 115,
"column": 18
},
"end": {
"line": 115,
"column": 43
}
},
"id": {
"type": "Identifier",
"start": 3498,
"end": 3502,
"loc": {
"start": {
"line": 115,
"column": 18
},
"end": {
"line": 115,
"column": 22
},
"identifierName": "slot"
},
"name": "slot"
},
"init": {
"type": "MemberExpression",
"start": 3505,
"end": 3523,
"loc": {
"start": {
"line": 115,
"column": 25
},
"end": {
"line": 115,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 3505,
"end": 3520,
"loc": {
"start": {
"line": 115,
"column": 25
},
"end": {
"line": 115,
"column": 40
}
},
"object": {
"type": "ThisExpression",
"start": 3505,
"end": 3509,
"loc": {
"start": {
"line": 115,
"column": 25
},
"end": {
"line": 115,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 3510,
"end": 3520,
"loc": {
"start": {
"line": 115,
"column": 30
},
"end": {
"line": 115,
"column": 40
},
"identifierName": "inputSlots"
},
"name": "inputSlots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3521,
"end": 3522,
"loc": {
"start": {
"line": 115,
"column": 41
},
"end": {
"line": 115,
"column": 42
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 3538,
"end": 3621,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 118,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
"start": 3542,
"end": 3572,
"loc": {
"start": {
"line": 116,
"column": 16
},
"end": {
"line": 116,
"column": 46
}
},
"left": {
"type": "MemberExpression",
"start": 3542,
"end": 3557,
"loc": {
"start": {
"line": 116,
"column": 16
},
"end": {
"line": 116,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 3542,
"end": 3546,
"loc": {
"start": {
"line": 116,
"column": 16
},
"end": {
"line": 116,
"column": 20
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 3547,
"end": 3557,
"loc": {
"start": {
"line": 116,
"column": 21
},
"end": {
"line": 116,
"column": 31
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 3562,
"end": 3572,
"loc": {
"start": {
"line": 116,
"column": 36
},
"end": {
"line": 116,
"column": 46
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
}
},
"consequent": {
"type": "BlockStatement",
"start": 3574,
"end": 3621,
"loc": {
"start": {
"line": 116,
"column": 48
},
"end": {
"line": 118,
"column": 13
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3593,
"end": 3606,
"loc": {
"start": {
"line": 117,
"column": 16
},
"end": {
"line": 117,
"column": 29
}
},
"argument": {
"type": "BooleanLiteral",
"start": 3600,
"end": 3605,
"loc": {
"start": {
"line": 117,
"column": 23
},
"end": {
"line": 117,
"column": 28
}
},
"value": false
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Check that we only take one item per slot",
"start": 3374,
"end": 3418,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 52
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 3644,
"end": 3687,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 51
}
},
"expression": {
"type": "CallExpression",
"start": 3644,
"end": 3686,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 3644,
"end": 3664,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 3644,
"end": 3659,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 3644,
"end": 3648,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3649,
"end": 3659,
"loc": {
"start": {
"line": 121,
"column": 13
},
"end": {
"line": 121,
"column": 23
},
"identifierName": "inputSlots"
},
"name": "inputSlots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3660,
"end": 3664,
"loc": {
"start": {
"line": 121,
"column": 24
},
"end": {
"line": 121,
"column": 28
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 3665,
"end": 3685,
"loc": {
"start": {
"line": 121,
"column": 29
},
"end": {
"line": 121,
"column": 49
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3667,
"end": 3671,
"loc": {
"start": {
"line": 121,
"column": 31
},
"end": {
"line": 121,
"column": 35
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 3667,
"end": 3671,
"loc": {
"start": {
"line": 121,
"column": 31
},
"end": {
"line": 121,
"column": 35
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "Identifier",
"start": 3667,
"end": 3671,
"loc": {
"start": {
"line": 121,
"column": 31
},
"end": {
"line": 121,
"column": 35
},
"identifierName": "item"
},
"name": "item"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 3673,
"end": 3683,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 47
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 3673,
"end": 3683,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 47
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
},
"value": {
"type": "Identifier",
"start": 3673,
"end": 3683,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 47
},
"identifierName": "sourceSlot"
},
"name": "sourceSlot"
},
"extra": {
"shorthand": true
}
}
]
}
]
}
},
{
"type": "ReturnStatement",
"start": 3697,
"end": 3709,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 20
}
},
"argument": {
"type": "BooleanLiteral",
"start": 3704,
"end": 3708,
"loc": {
"start": {
"line": 122,
"column": 15
},
"end": {
"line": 122,
"column": 19
}
},
"value": true
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tries to take the item\r\n * @param {BaseItem} item\r\n * @param {number} sourceSlot\r\n ",
"start": 2947,
"end": 3056,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 105,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * item: BaseItem,\r\n * requiredSlot?: number,\r\n * preferredSlot?: number\r\n * }} EjectorItemToEject ",
"start": 715,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * remainingTime: number,\r\n * items: Array<EjectorItemToEject>,\r\n * }} EjectorCharge ",
"start": 840,
"end": 946,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 38,
"column": 22
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * item: BaseItem,\r\n * requiredSlot?: number,\r\n * preferredSlot?: number\r\n * }} EjectorItemToEject ",
"start": 715,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * remainingTime: number,\r\n * items: Array<EjectorItemToEject>,\r\n * }} EjectorCharge ",
"start": 840,
"end": 946,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 38,
"column": 22
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 142,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 21
}
}
},
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 605,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 21
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * item: BaseItem,\r\n * requiredSlot?: number,\r\n * preferredSlot?: number\r\n * }} EjectorItemToEject ",
"start": 715,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * remainingTime: number,\r\n * items: Array<EjectorItemToEject>,\r\n * }} EjectorCharge ",
"start": 840,
"end": 946,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 38,
"column": 22
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumItemProcessorTypes=} param0.processorType Which type of processor this is\r\n * @param {enumItemProcessorRequirements=} param0.processingRequirement Applied processing requirement\r\n * @param {number=} param0.inputsPerCharge How many items this machine needs until it can start working\r\n *\r\n ",
"start": 1181,
"end": 1551,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 58,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Which slot to emit next, this is only a preference and if it can't emit",
"start": 1737,
"end": 1811,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 82
}
}
},
{
"type": "CommentLine",
"value": " it will take the other one. Some machines ignore this (e.g. the balancer) to make",
"start": 1821,
"end": 1905,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 92
}
}
},
{
"type": "CommentLine",
"value": " sure the outputs always match",
"start": 1915,
"end": 1947,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 40
}
}
},
{
"type": "CommentLine",
"value": " Type of the processor",
"start": 1993,
"end": 2017,
"loc": {
"start": {
"line": 71,
"column": 8
},
"end": {
"line": 71,
"column": 32
}
}
},
{
"type": "CommentLine",
"value": " Type of processing requirement",
"start": 2065,
"end": 2098,
"loc": {
"start": {
"line": 74,
"column": 8
},
"end": {
"line": 74,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " How many inputs we need for one charge",
"start": 2171,
"end": 2212,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 49
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Our current inputs\r\n * @type {Array<{ item: BaseItem, sourceSlot: number }>}\r\n ",
"start": 2273,
"end": 2386,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 83,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * What we are currently processing, empty if we don't produce anything rn\r\n * requiredSlot: Item *must* be ejected on this slot\r\n * preferredSlot: Item *can* be ejected on this slot, but others are fine too if the one is not usable\r\n * @type {Array<EjectorCharge>}\r\n ",
"start": 2429,
"end": 2744,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 91,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * How much processing time we have left from the last tick\r\n * @type {number}\r\n ",
"start": 2791,
"end": 2903,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 97,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tries to take the item\r\n * @param {BaseItem} item\r\n * @param {number} sourceSlot\r\n ",
"start": 2947,
"end": 3056,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 105,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Hub has special logic .. not really nice but efficient.",
"start": 3210,
"end": 3268,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 70
}
}
},
{
"type": "CommentLine",
"value": " Check that we only take one item per slot",
"start": 3374,
"end": 3418,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 52
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 9,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 15,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 17,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 21
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../savegame/serialization",
"start": 22,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 22
},
"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": "BaseItem",
"start": 64,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 73,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 75,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 20
},
"end": {
"line": 2,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../base_item",
"start": 80,
"end": 94,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 39
}
}
},
{
"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": 39
},
"end": {
"line": 2,
"column": 40
}
}
},
{
"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": "Component",
"start": 106,
"end": 115,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 116,
"end": 117,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 118,
"end": 122,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../component",
"start": 123,
"end": 137,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 137,
"end": 138,
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 41
}
}
},
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 142,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 21
}
}
},
{
"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": 165,
"end": 171,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"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": 172,
"end": 177,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumItemProcessorTypes",
"start": 178,
"end": 200,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 35
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 201,
"end": 202,
"loc": {
"start": {
"line": 6,
"column": 36
},
"end": {
"line": 6,
"column": 37
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 203,
"end": 204,
"loc": {
"start": {
"line": 6,
"column": 38
},
"end": {
"line": 6,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "balancer",
"start": 210,
"end": 218,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 12
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 218,
"end": 219,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 13
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "balancer",
"start": 220,
"end": 230,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 24
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 230,
"end": 231,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cutter",
"start": 237,
"end": 243,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 10
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 243,
"end": 244,
"loc": {
"start": {
"line": 8,
"column": 10
},
"end": {
"line": 8,
"column": 11
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "cutter",
"start": 245,
"end": 253,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 253,
"end": 254,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cutterQuad",
"start": 260,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 14
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 270,
"end": 271,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 15
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "cutterQuad",
"start": 272,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 28
}
}
},
{
"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": 9,
"column": 28
},
"end": {
"line": 9,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotater",
"start": 291,
"end": 298,
"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": 298,
"end": 299,
"loc": {
"start": {
"line": 10,
"column": 11
},
"end": {
"line": 10,
"column": 12
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "rotater",
"start": 300,
"end": 309,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 309,
"end": 310,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotaterCCW",
"start": 316,
"end": 326,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 14
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 326,
"end": 327,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 15
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "rotaterCCW",
"start": 328,
"end": 340,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 340,
"end": 341,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotater180",
"start": 347,
"end": 357,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 14
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 357,
"end": 358,
"loc": {
"start": {
"line": 12,
"column": 14
},
"end": {
"line": 12,
"column": 15
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "rotater180",
"start": 359,
"end": 371,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 371,
"end": 372,
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stacker",
"start": 378,
"end": 385,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 11
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 385,
"end": 386,
"loc": {
"start": {
"line": 13,
"column": 11
},
"end": {
"line": 13,
"column": 12
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "stacker",
"start": 387,
"end": 396,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 396,
"end": 397,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trash",
"start": 403,
"end": 408,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 9
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 408,
"end": 409,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 10
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "trash",
"start": 410,
"end": 417,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 417,
"end": 418,
"loc": {
"start": {
"line": 14,
"column": 18
},
"end": {
"line": 14,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "mixer",
"start": 424,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 9
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 429,
"end": 430,
"loc": {
"start": {
"line": 15,
"column": 9
},
"end": {
"line": 15,
"column": 10
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "mixer",
"start": 431,
"end": 438,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 438,
"end": 439,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "painter",
"start": 445,
"end": 452,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 11
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 452,
"end": 453,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 12
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "painter",
"start": 454,
"end": 463,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 463,
"end": 464,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "painterDouble",
"start": 470,
"end": 483,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 17
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 483,
"end": 484,
"loc": {
"start": {
"line": 17,
"column": 17
},
"end": {
"line": 17,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "painterDouble",
"start": 485,
"end": 500,
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 500,
"end": 501,
"loc": {
"start": {
"line": 17,
"column": 34
},
"end": {
"line": 17,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "painterQuad",
"start": 507,
"end": 518,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 15
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 518,
"end": 519,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 16
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "painterQuad",
"start": 520,
"end": 533,
"loc": {
"start": {
"line": 18,
"column": 17
},
"end": {
"line": 18,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 533,
"end": 534,
"loc": {
"start": {
"line": 18,
"column": 30
},
"end": {
"line": 18,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "hub",
"start": 540,
"end": 543,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 543,
"end": 544,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 8
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "hub",
"start": 545,
"end": 550,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 14
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 550,
"end": 551,
"loc": {
"start": {
"line": 19,
"column": 14
},
"end": {
"line": 19,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "filter",
"start": 557,
"end": 563,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 563,
"end": 564,
"loc": {
"start": {
"line": 20,
"column": 10
},
"end": {
"line": 20,
"column": 11
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "filter",
"start": 565,
"end": 573,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 573,
"end": 574,
"loc": {
"start": {
"line": 20,
"column": 20
},
"end": {
"line": 20,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "reader",
"start": 580,
"end": 586,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 10
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 586,
"end": 587,
"loc": {
"start": {
"line": 21,
"column": 10
},
"end": {
"line": 21,
"column": 11
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "reader",
"start": 588,
"end": 596,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 596,
"end": 597,
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 599,
"end": 600,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 600,
"end": 601,
"loc": {
"start": {
"line": 22,
"column": 1
},
"end": {
"line": 22,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 605,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 21
}
}
},
{
"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": 628,
"end": 634,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 25,
"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": 635,
"end": 640,
"loc": {
"start": {
"line": 25,
"column": 7
},
"end": {
"line": 25,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumItemProcessorRequirements",
"start": 641,
"end": 670,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 42
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 671,
"end": 672,
"loc": {
"start": {
"line": 25,
"column": 43
},
"end": {
"line": 25,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 673,
"end": 674,
"loc": {
"start": {
"line": 25,
"column": 45
},
"end": {
"line": 25,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "painterQuad",
"start": 680,
"end": 691,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 15
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 691,
"end": 692,
"loc": {
"start": {
"line": 26,
"column": 15
},
"end": {
"line": 26,
"column": 16
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "painterQuad",
"start": 693,
"end": 706,
"loc": {
"start": {
"line": 26,
"column": 17
},
"end": {
"line": 26,
"column": 30
}
}
},
{
"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": 26,
"column": 30
},
"end": {
"line": 26,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 709,
"end": 710,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 27,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 710,
"end": 711,
"loc": {
"start": {
"line": 27,
"column": 1
},
"end": {
"line": 27,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * item: BaseItem,\r\n * requiredSlot?: number,\r\n * preferredSlot?: number\r\n * }} EjectorItemToEject ",
"start": 715,
"end": 836,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @typedef {{\r\n * remainingTime: number,\r\n * items: Array<EjectorItemToEject>,\r\n * }} EjectorCharge ",
"start": 840,
"end": 946,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 38,
"column": 22
}
}
},
{
"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": 950,
"end": 956,
"loc": {
"start": {
"line": 40,
"column": 0
},
"end": {
"line": 40,
"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": 957,
"end": 962,
"loc": {
"start": {
"line": 40,
"column": 7
},
"end": {
"line": 40,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ItemProcessorComponent",
"start": 963,
"end": 985,
"loc": {
"start": {
"line": 40,
"column": 13
},
"end": {
"line": 40,
"column": 35
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 986,
"end": 993,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Component",
"start": 994,
"end": 1003,
"loc": {
"start": {
"line": 40,
"column": 44
},
"end": {
"line": 40,
"column": 53
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1004,
"end": 1005,
"loc": {
"start": {
"line": 40,
"column": 54
},
"end": {
"line": 40,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 1011,
"end": 1017,
"loc": {
"start": {
"line": 41,
"column": 4
},
"end": {
"line": 41,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 1018,
"end": 1023,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 41,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1023,
"end": 1024,
"loc": {
"start": {
"line": 41,
"column": 16
},
"end": {
"line": 41,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1024,
"end": 1025,
"loc": {
"start": {
"line": 41,
"column": 17
},
"end": {
"line": 41,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1026,
"end": 1027,
"loc": {
"start": {
"line": 41,
"column": 19
},
"end": {
"line": 41,
"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": 1037,
"end": 1043,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "ItemProcessor",
"start": 1044,
"end": 1059,
"loc": {
"start": {
"line": 42,
"column": 15
},
"end": {
"line": 42,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1059,
"end": 1060,
"loc": {
"start": {
"line": 42,
"column": 30
},
"end": {
"line": 42,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1066,
"end": 1067,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 43,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 1075,
"end": 1081,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 45,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSchema",
"start": 1082,
"end": 1091,
"loc": {
"start": {
"line": 45,
"column": 11
},
"end": {
"line": 45,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1091,
"end": 1092,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 45,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1092,
"end": 1093,
"loc": {
"start": {
"line": 45,
"column": 21
},
"end": {
"line": 45,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1094,
"end": 1095,
"loc": {
"start": {
"line": 45,
"column": 23
},
"end": {
"line": 45,
"column": 24
}
}
},
{
"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": 1105,
"end": 1111,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1112,
"end": 1113,
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextOutputSlot",
"start": 1127,
"end": 1141,
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 26
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1141,
"end": 1142,
"loc": {
"start": {
"line": 47,
"column": 26
},
"end": {
"line": 47,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 1143,
"end": 1148,
"loc": {
"start": {
"line": 47,
"column": 28
},
"end": {
"line": 47,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1148,
"end": 1149,
"loc": {
"start": {
"line": 47,
"column": 33
},
"end": {
"line": 47,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uint",
"start": 1149,
"end": 1153,
"loc": {
"start": {
"line": 47,
"column": 34
},
"end": {
"line": 47,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1153,
"end": 1154,
"loc": {
"start": {
"line": 47,
"column": 38
},
"end": {
"line": 47,
"column": 39
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1164,
"end": 1165,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1165,
"end": 1166,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1172,
"end": 1173,
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 49,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumItemProcessorTypes=} param0.processorType Which type of processor this is\r\n * @param {enumItemProcessorRequirements=} param0.processingRequirement Applied processing requirement\r\n * @param {number=} param0.inputsPerCharge How many items this machine needs until it can start working\r\n *\r\n ",
"start": 1181,
"end": 1551,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 58,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 1557,
"end": 1568,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 59,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1568,
"end": 1569,
"loc": {
"start": {
"line": 59,
"column": 15
},
"end": {
"line": 59,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1569,
"end": 1570,
"loc": {
"start": {
"line": 59,
"column": 16
},
"end": {
"line": 59,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "processorType",
"start": 1580,
"end": 1593,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1594,
"end": 1595,
"loc": {
"start": {
"line": 60,
"column": 22
},
"end": {
"line": 60,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumItemProcessorTypes",
"start": 1596,
"end": 1618,
"loc": {
"start": {
"line": 60,
"column": 24
},
"end": {
"line": 60,
"column": 46
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1618,
"end": 1619,
"loc": {
"start": {
"line": 60,
"column": 46
},
"end": {
"line": 60,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "balancer",
"start": 1619,
"end": 1627,
"loc": {
"start": {
"line": 60,
"column": 47
},
"end": {
"line": 60,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1627,
"end": 1628,
"loc": {
"start": {
"line": 60,
"column": 55
},
"end": {
"line": 60,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "processingRequirement",
"start": 1638,
"end": 1659,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1660,
"end": 1661,
"loc": {
"start": {
"line": 61,
"column": 30
},
"end": {
"line": 61,
"column": 31
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 1662,
"end": 1666,
"loc": {
"start": {
"line": 61,
"column": 32
},
"end": {
"line": 61,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1666,
"end": 1667,
"loc": {
"start": {
"line": 61,
"column": 36
},
"end": {
"line": 61,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputsPerCharge",
"start": 1677,
"end": 1692,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1693,
"end": 1694,
"loc": {
"start": {
"line": 62,
"column": 24
},
"end": {
"line": 62,
"column": 25
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 1695,
"end": 1696,
"loc": {
"start": {
"line": 62,
"column": 26
},
"end": {
"line": 62,
"column": 27
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1696,
"end": 1697,
"loc": {
"start": {
"line": 62,
"column": 27
},
"end": {
"line": 62,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1703,
"end": 1704,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1704,
"end": 1705,
"loc": {
"start": {
"line": 63,
"column": 5
},
"end": {
"line": 63,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1706,
"end": 1707,
"loc": {
"start": {
"line": 63,
"column": 7
},
"end": {
"line": 63,
"column": 8
}
}
},
{
"type": {
"label": "super",
"keyword": "super",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "super",
"start": 1717,
"end": 1722,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1722,
"end": 1723,
"loc": {
"start": {
"line": 64,
"column": 13
},
"end": {
"line": 64,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1723,
"end": 1724,
"loc": {
"start": {
"line": 64,
"column": 14
},
"end": {
"line": 64,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1724,
"end": 1725,
"loc": {
"start": {
"line": 64,
"column": 15
},
"end": {
"line": 64,
"column": 16
}
}
},
{
"type": "CommentLine",
"value": " Which slot to emit next, this is only a preference and if it can't emit",
"start": 1737,
"end": 1811,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 82
}
}
},
{
"type": "CommentLine",
"value": " it will take the other one. Some machines ignore this (e.g. the balancer) to make",
"start": 1821,
"end": 1905,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 92
}
}
},
{
"type": "CommentLine",
"value": " sure the outputs always match",
"start": 1915,
"end": 1947,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 40
}
}
},
{
"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": 1957,
"end": 1961,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1961,
"end": 1962,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextOutputSlot",
"start": 1962,
"end": 1976,
"loc": {
"start": {
"line": 69,
"column": 13
},
"end": {
"line": 69,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1977,
"end": 1978,
"loc": {
"start": {
"line": 69,
"column": 28
},
"end": {
"line": 69,
"column": 29
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1979,
"end": 1980,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1980,
"end": 1981,
"loc": {
"start": {
"line": 69,
"column": 31
},
"end": {
"line": 69,
"column": 32
}
}
},
{
"type": "CommentLine",
"value": " Type of the processor",
"start": 1993,
"end": 2017,
"loc": {
"start": {
"line": 71,
"column": 8
},
"end": {
"line": 71,
"column": 32
}
}
},
{
"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": 2027,
"end": 2031,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2031,
"end": 2032,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 2032,
"end": 2036,
"loc": {
"start": {
"line": 72,
"column": 13
},
"end": {
"line": 72,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2037,
"end": 2038,
"loc": {
"start": {
"line": 72,
"column": 18
},
"end": {
"line": 72,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "processorType",
"start": 2039,
"end": 2052,
"loc": {
"start": {
"line": 72,
"column": 20
},
"end": {
"line": 72,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2052,
"end": 2053,
"loc": {
"start": {
"line": 72,
"column": 33
},
"end": {
"line": 72,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " Type of processing requirement",
"start": 2065,
"end": 2098,
"loc": {
"start": {
"line": 74,
"column": 8
},
"end": {
"line": 74,
"column": 41
}
}
},
{
"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": 2108,
"end": 2112,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2112,
"end": 2113,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "processingRequirement",
"start": 2113,
"end": 2134,
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 75,
"column": 34
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2135,
"end": 2136,
"loc": {
"start": {
"line": 75,
"column": 35
},
"end": {
"line": 75,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "processingRequirement",
"start": 2137,
"end": 2158,
"loc": {
"start": {
"line": 75,
"column": 37
},
"end": {
"line": 75,
"column": 58
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2158,
"end": 2159,
"loc": {
"start": {
"line": 75,
"column": 58
},
"end": {
"line": 75,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " How many inputs we need for one charge",
"start": 2171,
"end": 2212,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 49
}
}
},
{
"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": 2222,
"end": 2226,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2226,
"end": 2227,
"loc": {
"start": {
"line": 78,
"column": 12
},
"end": {
"line": 78,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputsPerCharge",
"start": 2227,
"end": 2242,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2243,
"end": 2244,
"loc": {
"start": {
"line": 78,
"column": 29
},
"end": {
"line": 78,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputsPerCharge",
"start": 2245,
"end": 2260,
"loc": {
"start": {
"line": 78,
"column": 31
},
"end": {
"line": 78,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2260,
"end": 2261,
"loc": {
"start": {
"line": 78,
"column": 46
},
"end": {
"line": 78,
"column": 47
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Our current inputs\r\n * @type {Array<{ item: BaseItem, sourceSlot: number }>}\r\n ",
"start": 2273,
"end": 2386,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 83,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2396,
"end": 2400,
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2400,
"end": 2401,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputSlots",
"start": 2401,
"end": 2411,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2412,
"end": 2413,
"loc": {
"start": {
"line": 84,
"column": 24
},
"end": {
"line": 84,
"column": 25
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2414,
"end": 2415,
"loc": {
"start": {
"line": 84,
"column": 26
},
"end": {
"line": 84,
"column": 27
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2415,
"end": 2416,
"loc": {
"start": {
"line": 84,
"column": 27
},
"end": {
"line": 84,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2416,
"end": 2417,
"loc": {
"start": {
"line": 84,
"column": 28
},
"end": {
"line": 84,
"column": 29
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * What we are currently processing, empty if we don't produce anything rn\r\n * requiredSlot: Item *must* be ejected on this slot\r\n * preferredSlot: Item *can* be ejected on this slot, but others are fine too if the one is not usable\r\n * @type {Array<EjectorCharge>}\r\n ",
"start": 2429,
"end": 2744,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 91,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2754,
"end": 2758,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2758,
"end": 2759,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ongoingCharges",
"start": 2759,
"end": 2773,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2774,
"end": 2775,
"loc": {
"start": {
"line": 92,
"column": 28
},
"end": {
"line": 92,
"column": 29
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2776,
"end": 2777,
"loc": {
"start": {
"line": 92,
"column": 30
},
"end": {
"line": 92,
"column": 31
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2777,
"end": 2778,
"loc": {
"start": {
"line": 92,
"column": 31
},
"end": {
"line": 92,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2778,
"end": 2779,
"loc": {
"start": {
"line": 92,
"column": 32
},
"end": {
"line": 92,
"column": 33
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * How much processing time we have left from the last tick\r\n * @type {number}\r\n ",
"start": 2791,
"end": 2903,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 97,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2913,
"end": 2917,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2917,
"end": 2918,
"loc": {
"start": {
"line": 98,
"column": 12
},
"end": {
"line": 98,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bonusTime",
"start": 2918,
"end": 2927,
"loc": {
"start": {
"line": 98,
"column": 13
},
"end": {
"line": 98,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2928,
"end": 2929,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 24
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2930,
"end": 2931,
"loc": {
"start": {
"line": 98,
"column": 25
},
"end": {
"line": 98,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2931,
"end": 2932,
"loc": {
"start": {
"line": 98,
"column": 26
},
"end": {
"line": 98,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2938,
"end": 2939,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tries to take the item\r\n * @param {BaseItem} item\r\n * @param {number} sourceSlot\r\n ",
"start": 2947,
"end": 3056,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 105,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tryTakeItem",
"start": 3062,
"end": 3073,
"loc": {
"start": {
"line": 106,
"column": 4
},
"end": {
"line": 106,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3073,
"end": 3074,
"loc": {
"start": {
"line": 106,
"column": 15
},
"end": {
"line": 106,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3074,
"end": 3078,
"loc": {
"start": {
"line": 106,
"column": 16
},
"end": {
"line": 106,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3078,
"end": 3079,
"loc": {
"start": {
"line": 106,
"column": 20
},
"end": {
"line": 106,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sourceSlot",
"start": 3080,
"end": 3090,
"loc": {
"start": {
"line": 106,
"column": 22
},
"end": {
"line": 106,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3090,
"end": 3091,
"loc": {
"start": {
"line": 106,
"column": 32
},
"end": {
"line": 106,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3092,
"end": 3093,
"loc": {
"start": {
"line": 106,
"column": 34
},
"end": {
"line": 106,
"column": 35
}
}
},
{
"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": 3103,
"end": 3105,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3106,
"end": 3107,
"loc": {
"start": {
"line": 107,
"column": 11
},
"end": {
"line": 107,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3107,
"end": 3111,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3111,
"end": 3112,
"loc": {
"start": {
"line": 107,
"column": 16
},
"end": {
"line": 107,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 3112,
"end": 3116,
"loc": {
"start": {
"line": 107,
"column": 17
},
"end": {
"line": 107,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3117,
"end": 3120,
"loc": {
"start": {
"line": 107,
"column": 22
},
"end": {
"line": 107,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumItemProcessorTypes",
"start": 3121,
"end": 3143,
"loc": {
"start": {
"line": 107,
"column": 26
},
"end": {
"line": 107,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3143,
"end": 3144,
"loc": {
"start": {
"line": 107,
"column": 48
},
"end": {
"line": 107,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "hub",
"start": 3144,
"end": 3147,
"loc": {
"start": {
"line": 107,
"column": 49
},
"end": {
"line": 107,
"column": 52
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 3148,
"end": 3150,
"loc": {
"start": {
"line": 107,
"column": 53
},
"end": {
"line": 107,
"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": 3151,
"end": 3155,
"loc": {
"start": {
"line": 107,
"column": 56
},
"end": {
"line": 107,
"column": 60
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3155,
"end": 3156,
"loc": {
"start": {
"line": 107,
"column": 60
},
"end": {
"line": 107,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 3156,
"end": 3160,
"loc": {
"start": {
"line": 107,
"column": 61
},
"end": {
"line": 107,
"column": 65
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3161,
"end": 3164,
"loc": {
"start": {
"line": 107,
"column": 66
},
"end": {
"line": 107,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumItemProcessorTypes",
"start": 3165,
"end": 3187,
"loc": {
"start": {
"line": 107,
"column": 70
},
"end": {
"line": 107,
"column": 92
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3187,
"end": 3188,
"loc": {
"start": {
"line": 107,
"column": 92
},
"end": {
"line": 107,
"column": 93
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trash",
"start": 3188,
"end": 3193,
"loc": {
"start": {
"line": 107,
"column": 93
},
"end": {
"line": 107,
"column": 98
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3193,
"end": 3194,
"loc": {
"start": {
"line": 107,
"column": 98
},
"end": {
"line": 107,
"column": 99
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3195,
"end": 3196,
"loc": {
"start": {
"line": 107,
"column": 100
},
"end": {
"line": 107,
"column": 101
}
}
},
{
"type": "CommentLine",
"value": " Hub has special logic .. not really nice but efficient.",
"start": 3210,
"end": 3268,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 70
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3282,
"end": 3286,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3286,
"end": 3287,
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputSlots",
"start": 3287,
"end": 3297,
"loc": {
"start": {
"line": 109,
"column": 17
},
"end": {
"line": 109,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3297,
"end": 3298,
"loc": {
"start": {
"line": 109,
"column": 27
},
"end": {
"line": 109,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 3298,
"end": 3302,
"loc": {
"start": {
"line": 109,
"column": 28
},
"end": {
"line": 109,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3302,
"end": 3303,
"loc": {
"start": {
"line": 109,
"column": 32
},
"end": {
"line": 109,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3303,
"end": 3304,
"loc": {
"start": {
"line": 109,
"column": 33
},
"end": {
"line": 109,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3305,
"end": 3309,
"loc": {
"start": {
"line": 109,
"column": 35
},
"end": {
"line": 109,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3309,
"end": 3310,
"loc": {
"start": {
"line": 109,
"column": 39
},
"end": {
"line": 109,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sourceSlot",
"start": 3311,
"end": 3321,
"loc": {
"start": {
"line": 109,
"column": 41
},
"end": {
"line": 109,
"column": 51
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3322,
"end": 3323,
"loc": {
"start": {
"line": 109,
"column": 52
},
"end": {
"line": 109,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3323,
"end": 3324,
"loc": {
"start": {
"line": 109,
"column": 53
},
"end": {
"line": 109,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3324,
"end": 3325,
"loc": {
"start": {
"line": 109,
"column": 54
},
"end": {
"line": 109,
"column": 55
}
}
},
{
"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": 3339,
"end": 3345,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"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": 3346,
"end": 3350,
"loc": {
"start": {
"line": 110,
"column": 19
},
"end": {
"line": 110,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3350,
"end": 3351,
"loc": {
"start": {
"line": 110,
"column": 23
},
"end": {
"line": 110,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3361,
"end": 3362,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " Check that we only take one item per slot",
"start": 3374,
"end": 3418,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 52
}
}
},
{
"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": 3428,
"end": 3431,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3432,
"end": 3433,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"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": 3433,
"end": 3436,
"loc": {
"start": {
"line": 114,
"column": 13
},
"end": {
"line": 114,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3437,
"end": 3438,
"loc": {
"start": {
"line": 114,
"column": 17
},
"end": {
"line": 114,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3439,
"end": 3440,
"loc": {
"start": {
"line": 114,
"column": 19
},
"end": {
"line": 114,
"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": 3441,
"end": 3442,
"loc": {
"start": {
"line": 114,
"column": 21
},
"end": {
"line": 114,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3442,
"end": 3443,
"loc": {
"start": {
"line": 114,
"column": 22
},
"end": {
"line": 114,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3444,
"end": 3445,
"loc": {
"start": {
"line": 114,
"column": 24
},
"end": {
"line": 114,
"column": 25
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 3446,
"end": 3447,
"loc": {
"start": {
"line": 114,
"column": 26
},
"end": {
"line": 114,
"column": 27
}
}
},
{
"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": 3448,
"end": 3452,
"loc": {
"start": {
"line": 114,
"column": 28
},
"end": {
"line": 114,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3452,
"end": 3453,
"loc": {
"start": {
"line": 114,
"column": 32
},
"end": {
"line": 114,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputSlots",
"start": 3453,
"end": 3463,
"loc": {
"start": {
"line": 114,
"column": 33
},
"end": {
"line": 114,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3463,
"end": 3464,
"loc": {
"start": {
"line": 114,
"column": 43
},
"end": {
"line": 114,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 3464,
"end": 3470,
"loc": {
"start": {
"line": 114,
"column": 44
},
"end": {
"line": 114,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3470,
"end": 3471,
"loc": {
"start": {
"line": 114,
"column": 50
},
"end": {
"line": 114,
"column": 51
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 3472,
"end": 3474,
"loc": {
"start": {
"line": 114,
"column": 52
},
"end": {
"line": 114,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3474,
"end": 3475,
"loc": {
"start": {
"line": 114,
"column": 54
},
"end": {
"line": 114,
"column": 55
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3475,
"end": 3476,
"loc": {
"start": {
"line": 114,
"column": 55
},
"end": {
"line": 114,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3477,
"end": 3478,
"loc": {
"start": {
"line": 114,
"column": 57
},
"end": {
"line": 114,
"column": 58
}
}
},
{
"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": 3492,
"end": 3497,
"loc": {
"start": {
"line": 115,
"column": 12
},
"end": {
"line": 115,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 3498,
"end": 3502,
"loc": {
"start": {
"line": 115,
"column": 18
},
"end": {
"line": 115,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3503,
"end": 3504,
"loc": {
"start": {
"line": 115,
"column": 23
},
"end": {
"line": 115,
"column": 24
}
}
},
{
"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": 3505,
"end": 3509,
"loc": {
"start": {
"line": 115,
"column": 25
},
"end": {
"line": 115,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3509,
"end": 3510,
"loc": {
"start": {
"line": 115,
"column": 29
},
"end": {
"line": 115,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputSlots",
"start": 3510,
"end": 3520,
"loc": {
"start": {
"line": 115,
"column": 30
},
"end": {
"line": 115,
"column": 40
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3520,
"end": 3521,
"loc": {
"start": {
"line": 115,
"column": 40
},
"end": {
"line": 115,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3521,
"end": 3522,
"loc": {
"start": {
"line": 115,
"column": 41
},
"end": {
"line": 115,
"column": 42
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3522,
"end": 3523,
"loc": {
"start": {
"line": 115,
"column": 42
},
"end": {
"line": 115,
"column": 43
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3523,
"end": 3524,
"loc": {
"start": {
"line": 115,
"column": 43
},
"end": {
"line": 115,
"column": 44
}
}
},
{
"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": 3538,
"end": 3540,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3541,
"end": 3542,
"loc": {
"start": {
"line": 116,
"column": 15
},
"end": {
"line": 116,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 3542,
"end": 3546,
"loc": {
"start": {
"line": 116,
"column": 16
},
"end": {
"line": 116,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3546,
"end": 3547,
"loc": {
"start": {
"line": 116,
"column": 20
},
"end": {
"line": 116,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sourceSlot",
"start": 3547,
"end": 3557,
"loc": {
"start": {
"line": 116,
"column": 21
},
"end": {
"line": 116,
"column": 31
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3558,
"end": 3561,
"loc": {
"start": {
"line": 116,
"column": 32
},
"end": {
"line": 116,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sourceSlot",
"start": 3562,
"end": 3572,
"loc": {
"start": {
"line": 116,
"column": 36
},
"end": {
"line": 116,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3572,
"end": 3573,
"loc": {
"start": {
"line": 116,
"column": 46
},
"end": {
"line": 116,
"column": 47
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3574,
"end": 3575,
"loc": {
"start": {
"line": 116,
"column": 48
},
"end": {
"line": 116,
"column": 49
}
}
},
{
"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": 3593,
"end": 3599,
"loc": {
"start": {
"line": 117,
"column": 16
},
"end": {
"line": 117,
"column": 22
}
}
},
{
"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": 3600,
"end": 3605,
"loc": {
"start": {
"line": 117,
"column": 23
},
"end": {
"line": 117,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3605,
"end": 3606,
"loc": {
"start": {
"line": 117,
"column": 28
},
"end": {
"line": 117,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3620,
"end": 3621,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3631,
"end": 3632,
"loc": {
"start": {
"line": 119,
"column": 8
},
"end": {
"line": 119,
"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": 3644,
"end": 3648,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3648,
"end": 3649,
"loc": {
"start": {
"line": 121,
"column": 12
},
"end": {
"line": 121,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "inputSlots",
"start": 3649,
"end": 3659,
"loc": {
"start": {
"line": 121,
"column": 13
},
"end": {
"line": 121,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3659,
"end": 3660,
"loc": {
"start": {
"line": 121,
"column": 23
},
"end": {
"line": 121,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 3660,
"end": 3664,
"loc": {
"start": {
"line": 121,
"column": 24
},
"end": {
"line": 121,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3664,
"end": 3665,
"loc": {
"start": {
"line": 121,
"column": 28
},
"end": {
"line": 121,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3665,
"end": 3666,
"loc": {
"start": {
"line": 121,
"column": 29
},
"end": {
"line": 121,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3667,
"end": 3671,
"loc": {
"start": {
"line": 121,
"column": 31
},
"end": {
"line": 121,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3671,
"end": 3672,
"loc": {
"start": {
"line": 121,
"column": 35
},
"end": {
"line": 121,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sourceSlot",
"start": 3673,
"end": 3683,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 47
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3684,
"end": 3685,
"loc": {
"start": {
"line": 121,
"column": 48
},
"end": {
"line": 121,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3685,
"end": 3686,
"loc": {
"start": {
"line": 121,
"column": 49
},
"end": {
"line": 121,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3686,
"end": 3687,
"loc": {
"start": {
"line": 121,
"column": 50
},
"end": {
"line": 121,
"column": 51
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 3697,
"end": 3703,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 14
}
}
},
{
"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": 3704,
"end": 3708,
"loc": {
"start": {
"line": 122,
"column": 15
},
"end": {
"line": 122,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3708,
"end": 3709,
"loc": {
"start": {
"line": 122,
"column": 19
},
"end": {
"line": 122,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3715,
"end": 3716,
"loc": {
"start": {
"line": 123,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3718,
"end": 3719,
"loc": {
"start": {
"line": 124,
"column": 0
},
"end": {
"line": 124,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3721,
"end": 3721,
"loc": {
"start": {
"line": 125,
"column": 0
},
"end": {
"line": 125,
"column": 0
}
}
}
]
}