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/belt_reader.js.json

4105 lines
98 KiB
JSON
Raw Normal View History

2021-02-26 14:20:37 +00:00
{
"type": "File",
"start": 0,
"end": 1080,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 44,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1080,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 44,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
}
}
],
"source": {
"type": "StringLiteral",
"start": 26,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 40
}
},
"extra": {
"rawValue": "../component",
"raw": "\"../component\""
},
"value": "../component"
}
},
{
"type": "ImportDeclaration",
"start": 43,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 52,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 52,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "BaseItem"
},
"name": "BaseItem"
},
"local": {
"type": "Identifier",
"start": 52,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "BaseItem"
},
"name": "BaseItem"
}
}
],
"source": {
"type": "StringLiteral",
"start": 68,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 39
}
},
"extra": {
"rawValue": "../base_item",
"raw": "\"../base_item\""
},
"value": "../base_item"
}
},
{
"type": "ImportDeclaration",
"start": 85,
"end": 138,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 53
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 94,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 26
}
},
"imported": {
"type": "Identifier",
"start": 94,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 26
},
"identifierName": "typeItemSingleton"
},
"name": "typeItemSingleton"
},
"local": {
"type": "Identifier",
"start": 94,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 26
},
"identifierName": "typeItemSingleton"
},
"name": "typeItemSingleton"
}
}
],
"source": {
"type": "StringLiteral",
"start": 119,
"end": 137,
"loc": {
"start": {
"line": 3,
"column": 34
},
"end": {
"line": 3,
"column": 52
}
},
"extra": {
"rawValue": "../item_resolver",
"raw": "\"../item_resolver\""
},
"value": "../item_resolver"
}
},
{
"type": "ImportDeclaration",
"start": 140,
"end": 193,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 53
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 149,
"end": 154,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 149,
"end": 154,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 14
},
"identifierName": "types"
},
"name": "types"
},
"local": {
"type": "Identifier",
"start": 149,
"end": 154,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 14
},
"identifierName": "types"
},
"name": "types"
}
}
],
"source": {
"type": "StringLiteral",
"start": 162,
"end": 192,
"loc": {
"start": {
"line": 4,
"column": 22
},
"end": {
"line": 4,
"column": 52
}
},
"extra": {
"rawValue": "../../savegame/serialization",
"raw": "\"../../savegame/serialization\""
},
"value": "../../savegame/serialization"
}
},
{
"type": "ExportNamedDeclaration",
"start": 197,
"end": 1080,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 44,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 204,
"end": 1080,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 44,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 210,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 32
},
"identifierName": "BeltReaderComponent"
},
"name": "BeltReaderComponent"
},
"superClass": {
"type": "Identifier",
"start": 238,
"end": 247,
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 50
},
"identifierName": "Component"
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 248,
"end": 1080,
"loc": {
"start": {
"line": 6,
"column": 51
},
"end": {
"line": 44,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 255,
"end": 308,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 262,
"end": 267,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 270,
"end": 308,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 281,
"end": 301,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 28
}
},
"argument": {
"type": "StringLiteral",
"start": 288,
"end": 300,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 27
}
},
"extra": {
"rawValue": "BeltReader",
"raw": "\"BeltReader\""
},
"value": "BeltReader"
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 316,
"end": 431,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 323,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 20
},
"identifierName": "getSchema"
},
"name": "getSchema"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 335,
"end": 431,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 346,
"end": 424,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 14,
"column": 10
}
},
"argument": {
"type": "ObjectExpression",
"start": 353,
"end": 423,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 14,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 368,
"end": 411,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 55
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 368,
"end": 376,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 20
},
"identifierName": "lastItem"
},
"name": "lastItem"
},
"value": {
"type": "CallExpression",
"start": 378,
"end": 411,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 55
}
},
"callee": {
"type": "MemberExpression",
"start": 378,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 378,
"end": 383,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 27
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 384,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 36
},
"identifierName": "nullable"
},
"name": "nullable"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 393,
"end": 410,
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 13,
"column": 54
},
"identifierName": "typeItemSingleton"
},
"name": "typeItemSingleton"
}
]
}
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 439,
"end": 1077,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 43,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 439,
"end": 450,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 453,
"end": 1077,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 43,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 464,
"end": 472,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 464,
"end": 471,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 464,
"end": 469,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 13
}
}
},
"arguments": []
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Which items went through the reader, we only store the time\r\n * @type {Array<number>}\r\n ",
"start": 484,
"end": 606,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 616,
"end": 640,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 616,
"end": 639,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 616,
"end": 634,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 616,
"end": 620,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 621,
"end": 634,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 26
},
"identifierName": "lastItemTimes"
},
"name": "lastItemTimes"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 637,
"end": 639,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 31
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Which items went through the reader, we only store the time\r\n * @type {Array<number>}\r\n ",
"start": 484,
"end": 606,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Which item passed the reader last\r\n * @type {BaseItem}\r\n ",
"start": 652,
"end": 743,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 753,
"end": 774,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 753,
"end": 773,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 753,
"end": 766,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 753,
"end": 757,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 758,
"end": 766,
"loc": {
"start": {
"line": 30,
"column": 13
},
"end": {
"line": 30,
"column": 21
},
"identifierName": "lastItem"
},
"name": "lastItem"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NullLiteral",
"start": 769,
"end": 773,
"loc": {
"start": {
"line": 30,
"column": 24
},
"end": {
"line": 30,
"column": 28
}
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Which item passed the reader last\r\n * @type {BaseItem}\r\n ",
"start": 652,
"end": 743,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Stores the last throughput we computed\r\n * @type {number}\r\n ",
"start": 786,
"end": 880,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 35,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 890,
"end": 914,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 890,
"end": 913,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 890,
"end": 909,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 890,
"end": 894,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 895,
"end": 909,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 27
},
"identifierName": "lastThroughput"
},
"name": "lastThroughput"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NumericLiteral",
"start": 912,
"end": 913,
"loc": {
"start": {
"line": 36,
"column": 30
},
"end": {
"line": 36,
"column": 31
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Stores the last throughput we computed\r\n * @type {number}\r\n ",
"start": 786,
"end": 880,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 35,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Stores when we last computed the throughput\r\n * @type {number}\r\n ",
"start": 926,
"end": 1025,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1035,
"end": 1070,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1035,
"end": 1069,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1035,
"end": 1065,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 1035,
"end": 1039,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1040,
"end": 1065,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 38
},
"identifierName": "lastThroughputComputation"
},
"name": "lastThroughputComputation"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NumericLiteral",
"start": 1068,
"end": 1069,
"loc": {
"start": {
"line": 42,
"column": 41
},
"end": {
"line": 42,
"column": 42
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Stores when we last computed the throughput\r\n * @type {number}\r\n ",
"start": 926,
"end": 1025,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
}
]
}
],
"directives": []
}
}
]
},
"leadingComments": [],
"trailingComments": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * Which items went through the reader, we only store the time\r\n * @type {Array<number>}\r\n ",
"start": 484,
"end": 606,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Which item passed the reader last\r\n * @type {BaseItem}\r\n ",
"start": 652,
"end": 743,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Stores the last throughput we computed\r\n * @type {number}\r\n ",
"start": 786,
"end": 880,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 35,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Stores when we last computed the throughput\r\n * @type {number}\r\n ",
"start": 926,
"end": 1025,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
}
],
"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": "Component",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 19,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 21,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"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": 26,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 40,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 41
}
}
},
{
"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": 43,
"end": 49,
"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": 50,
"end": 51,
"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": 52,
"end": 60,
"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": 61,
"end": 62,
"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": 63,
"end": 67,
"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": 68,
"end": 82,
"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": 82,
"end": 83,
"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": 85,
"end": 91,
"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": 92,
"end": 93,
"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": "typeItemSingleton",
"start": 94,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 112,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 27
},
"end": {
"line": 3,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 114,
"end": 118,
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 3,
"column": 33
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../item_resolver",
"start": 119,
"end": 137,
"loc": {
"start": {
"line": 3,
"column": 34
},
"end": {
"line": 3,
"column": 52
}
}
},
{
"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": 52
},
"end": {
"line": 3,
"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": 140,
"end": 146,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 147,
"end": 148,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 149,
"end": 154,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 155,
"end": 156,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 157,
"end": 161,
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"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": 162,
"end": 192,
"loc": {
"start": {
"line": 4,
"column": 22
},
"end": {
"line": 4,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 192,
"end": 193,
"loc": {
"start": {
"line": 4,
"column": 52
},
"end": {
"line": 4,
"column": 53
}
}
},
{
"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": 197,
"end": 203,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"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": 204,
"end": 209,
"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": "BeltReaderComponent",
"start": 210,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 32
}
}
},
{
"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": 230,
"end": 237,
"loc": {
"start": {
"line": 6,
"column": 33
},
"end": {
"line": 6,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Component",
"start": 238,
"end": 247,
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 50
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 248,
"end": 249,
"loc": {
"start": {
"line": 6,
"column": 51
},
"end": {
"line": 6,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 255,
"end": 261,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 262,
"end": 267,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 267,
"end": 268,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 268,
"end": 269,
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 270,
"end": 271,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"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": 281,
"end": 287,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "BeltReader",
"start": 288,
"end": 300,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 300,
"end": 301,
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 307,
"end": 308,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 316,
"end": 322,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSchema",
"start": 323,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 332,
"end": 333,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 333,
"end": 334,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 335,
"end": 336,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"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": 346,
"end": 352,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 353,
"end": 354,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lastItem",
"start": 368,
"end": 376,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 20
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 376,
"end": 377,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 378,
"end": 383,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 383,
"end": 384,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nullable",
"start": 384,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 392,
"end": 393,
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "typeItemSingleton",
"start": 393,
"end": 410,
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 13,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 410,
"end": 411,
"loc": {
"start": {
"line": 13,
"column": 54
},
"end": {
"line": 13,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 411,
"end": 412,
"loc": {
"start": {
"line": 13,
"column": 55
},
"end": {
"line": 13,
"column": 56
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 422,
"end": 423,
"loc": {
"start": {
"line": 14,
"column": 8
},
"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": 423,
"end": 424,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 430,
"end": 431,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 439,
"end": 450,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 450,
"end": 451,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 451,
"end": 452,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 453,
"end": 454,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 19
}
}
},
{
"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": 464,
"end": 469,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 469,
"end": 470,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 470,
"end": 471,
"loc": {
"start": {
"line": 18,
"column": 14
},
"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": 471,
"end": 472,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 16
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Which items went through the reader, we only store the time\r\n * @type {Array<number>}\r\n ",
"start": 484,
"end": 606,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"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": 616,
"end": 620,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 620,
"end": 621,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lastItemTimes",
"start": 621,
"end": 634,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 635,
"end": 636,
"loc": {
"start": {
"line": 24,
"column": 27
},
"end": {
"line": 24,
"column": 28
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 637,
"end": 638,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 30
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 638,
"end": 639,
"loc": {
"start": {
"line": 24,
"column": 30
},
"end": {
"line": 24,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 639,
"end": 640,
"loc": {
"start": {
"line": 24,
"column": 31
},
"end": {
"line": 24,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Which item passed the reader last\r\n * @type {BaseItem}\r\n ",
"start": 652,
"end": 743,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"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": 753,
"end": 757,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 757,
"end": 758,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lastItem",
"start": 758,
"end": 766,
"loc": {
"start": {
"line": 30,
"column": 13
},
"end": {
"line": 30,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 767,
"end": 768,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 23
}
}
},
{
"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": 769,
"end": 773,
"loc": {
"start": {
"line": 30,
"column": 24
},
"end": {
"line": 30,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 773,
"end": 774,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 29
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Stores the last throughput we computed\r\n * @type {number}\r\n ",
"start": 786,
"end": 880,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 35,
"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": 890,
"end": 894,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 894,
"end": 895,
"loc": {
"start": {
"line": 36,
"column": 12
},
"end": {
"line": 36,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lastThroughput",
"start": 895,
"end": 909,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 910,
"end": 911,
"loc": {
"start": {
"line": 36,
"column": 28
},
"end": {
"line": 36,
"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": 912,
"end": 913,
"loc": {
"start": {
"line": 36,
"column": 30
},
"end": {
"line": 36,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 913,
"end": 914,
"loc": {
"start": {
"line": 36,
"column": 31
},
"end": {
"line": 36,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Stores when we last computed the throughput\r\n * @type {number}\r\n ",
"start": 926,
"end": 1025,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 41,
"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": 1035,
"end": 1039,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1039,
"end": 1040,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lastThroughputComputation",
"start": 1040,
"end": 1065,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 38
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1066,
"end": 1067,
"loc": {
"start": {
"line": 42,
"column": 39
},
"end": {
"line": 42,
"column": 40
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1068,
"end": 1069,
"loc": {
"start": {
"line": 42,
"column": 41
},
"end": {
"line": 42,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1069,
"end": 1070,
"loc": {
"start": {
"line": 42,
"column": 42
},
"end": {
"line": 42,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1076,
"end": 1077,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 43,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1079,
"end": 1080,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 44,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1080,
"end": 1080,
"loc": {
"start": {
"line": 44,
"column": 1
},
"end": {
"line": 44,
"column": 1
}
}
}
]
}