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.js.json
2021-02-26 15:20:37 +01:00

19188 lines
505 KiB
JSON

{
"type": "File",
"start": 0,
"end": 3900,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 118,
"column": 2
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3900,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 118,
"column": 2
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 58,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 58
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
}
},
{
"type": "ImportSpecifier",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 30
}
},
"imported": {
"type": "Identifier",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 30
},
"identifierName": "Vector"
},
"name": "Vector"
},
"local": {
"type": "Identifier",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 30
},
"identifierName": "Vector"
},
"name": "Vector"
}
}
],
"source": {
"type": "StringLiteral",
"start": 38,
"end": 57,
"loc": {
"start": {
"line": 1,
"column": 38
},
"end": {
"line": 1,
"column": 57
}
},
"extra": {
"rawValue": "../../core/vector",
"raw": "\"../../core/vector\""
},
"value": "../../core/vector"
}
},
{
"type": "ImportDeclaration",
"start": 60,
"end": 100,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 69,
"end": 77,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 69,
"end": 77,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "BeltPath"
},
"name": "BeltPath"
},
"local": {
"type": "Identifier",
"start": 69,
"end": 77,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "BeltPath"
},
"name": "BeltPath"
}
}
],
"source": {
"type": "StringLiteral",
"start": 85,
"end": 99,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 39
}
},
"extra": {
"rawValue": "../belt_path",
"raw": "\"../belt_path\""
},
"value": "../belt_path"
}
},
{
"type": "ImportDeclaration",
"start": 102,
"end": 143,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 111,
"end": 120,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 111,
"end": 120,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 111,
"end": 120,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
}
}
],
"source": {
"type": "StringLiteral",
"start": 128,
"end": 142,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 40
}
},
"extra": {
"rawValue": "../component",
"raw": "\"../component\""
},
"value": "../component"
}
},
{
"type": "ExportNamedDeclaration",
"start": 147,
"end": 3062,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 86,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 154,
"end": 3062,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 86,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 160,
"end": 173,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 26
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"superClass": {
"type": "Identifier",
"start": 182,
"end": 191,
"loc": {
"start": {
"line": 5,
"column": 35
},
"end": {
"line": 5,
"column": 44
},
"identifierName": "Component"
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 192,
"end": 3062,
"loc": {
"start": {
"line": 5,
"column": 45
},
"end": {
"line": 86,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 199,
"end": 246,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 206,
"end": 211,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 214,
"end": 246,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 8,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 225,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 22
}
},
"argument": {
"type": "StringLiteral",
"start": 232,
"end": 238,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 21
}
},
"extra": {
"rawValue": "Belt",
"raw": "\"Belt\""
},
"value": "Belt"
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumDirection=} param0.direction The direction of the belt\r\n ",
"start": 254,
"end": 380,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 386,
"end": 653,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 386,
"end": 397,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "ObjectPattern",
"start": 398,
"end": 431,
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 49
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 400,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 47
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 400,
"end": 409,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 27
},
"identifierName": "direction"
},
"name": "direction"
},
"value": {
"type": "AssignmentPattern",
"start": 400,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 47
}
},
"left": {
"type": "Identifier",
"start": 400,
"end": 409,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 27
},
"identifierName": "direction"
},
"name": "direction"
},
"right": {
"type": "MemberExpression",
"start": 412,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 30
},
"end": {
"line": 15,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 412,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 30
},
"end": {
"line": 15,
"column": 43
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 426,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 44
},
"end": {
"line": 15,
"column": 47
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
}
},
"extra": {
"shorthand": true
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start": 433,
"end": 653,
"loc": {
"start": {
"line": 15,
"column": 51
},
"end": {
"line": 25,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 444,
"end": 452,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 444,
"end": 451,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 444,
"end": 449,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 464,
"end": 491,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 35
}
},
"expression": {
"type": "AssignmentExpression",
"start": 464,
"end": 490,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 34
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 464,
"end": 478,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 464,
"end": 468,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 469,
"end": 478,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 22
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 481,
"end": 490,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 34
},
"identifierName": "direction"
},
"name": "direction"
}
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * The path this belt is contained in, not serialized\r\n * @type {BeltPath}\r\n ",
"start": 503,
"end": 611,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 621,
"end": 646,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 621,
"end": 645,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 621,
"end": 638,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 621,
"end": 625,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 626,
"end": 638,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 25
},
"identifierName": "assignedPath"
},
"name": "assignedPath"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NullLiteral",
"start": 641,
"end": 645,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 32
}
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * The path this belt is contained in, not serialized\r\n * @type {BeltPath}\r\n ",
"start": 503,
"end": 611,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumDirection=} param0.direction The direction of the belt\r\n ",
"start": 254,
"end": 380,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the effective length of this belt in tile space\r\n * @returns {number}\r\n ",
"start": 661,
"end": 763,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 30,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 769,
"end": 896,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 33,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 769,
"end": 792,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 27
},
"identifierName": "getEffectiveLengthTiles"
},
"name": "getEffectiveLengthTiles",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 795,
"end": 896,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 33,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 806,
"end": 889,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 91
}
},
"argument": {
"type": "ConditionalExpression",
"start": 813,
"end": 888,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 90
}
},
"test": {
"type": "BinaryExpression",
"start": 813,
"end": 849,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 51
}
},
"left": {
"type": "MemberExpression",
"start": 813,
"end": 827,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 813,
"end": 817,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 818,
"end": 827,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 29
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 832,
"end": 849,
"loc": {
"start": {
"line": 32,
"column": 34
},
"end": {
"line": 32,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 832,
"end": 845,
"loc": {
"start": {
"line": 32,
"column": 34
},
"end": {
"line": 32,
"column": 47
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 846,
"end": 849,
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 32,
"column": 51
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
}
},
"consequent": {
"type": "NumericLiteral",
"start": 852,
"end": 855,
"loc": {
"start": {
"line": 32,
"column": 54
},
"end": {
"line": 32,
"column": 57
}
},
"extra": {
"rawValue": 1,
"raw": "1.0"
},
"value": 1
},
"alternate": {
"type": "MemberExpression",
"start": 858,
"end": 888,
"loc": {
"start": {
"line": 32,
"column": 60
},
"end": {
"line": 32,
"column": 90
}
},
"object": {
"type": "Identifier",
"start": 858,
"end": 871,
"loc": {
"start": {
"line": 32,
"column": 60
},
"end": {
"line": 32,
"column": 73
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 872,
"end": 888,
"loc": {
"start": {
"line": 32,
"column": 74
},
"end": {
"line": 32,
"column": 90
},
"identifierName": "curvedBeltLength"
},
"name": "curvedBeltLength"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the effective length of this belt in tile space\r\n * @returns {number}\r\n ",
"start": 661,
"end": 763,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 30,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_acceptor\").ItemAcceptorSlot}\r\n ",
"start": 904,
"end": 1031,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1037,
"end": 1122,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 41,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1037,
"end": 1056,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 23
},
"identifierName": "getFakeAcceptorSlot"
},
"name": "getFakeAcceptorSlot",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1059,
"end": 1122,
"loc": {
"start": {
"line": 39,
"column": 26
},
"end": {
"line": 41,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1070,
"end": 1115,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 53
}
},
"argument": {
"type": "MemberExpression",
"start": 1077,
"end": 1114,
"loc": {
"start": {
"line": 40,
"column": 15
},
"end": {
"line": 40,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 1077,
"end": 1090,
"loc": {
"start": {
"line": 40,
"column": 15
},
"end": {
"line": 40,
"column": 28
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 1091,
"end": 1114,
"loc": {
"start": {
"line": 40,
"column": 29
},
"end": {
"line": 40,
"column": 52
},
"identifierName": "fake_belt_acceptor_slot"
},
"name": "fake_belt_acceptor_slot"
},
"computed": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_acceptor\").ItemAcceptorSlot}\r\n ",
"start": 904,
"end": 1031,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_ejector\").ItemEjectorSlot}\r\n ",
"start": 1130,
"end": 1255,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 46,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1261,
"end": 1551,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1261,
"end": 1279,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 22
},
"identifierName": "getFakeEjectorSlot"
},
"name": "getFakeEjectorSlot",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1282,
"end": 1551,
"loc": {
"start": {
"line": 47,
"column": 25
},
"end": {
"line": 54,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1293,
"end": 1461,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 52,
"column": 10
}
},
"expression": {
"type": "CallExpression",
"start": 1293,
"end": 1460,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 52,
"column": 9
}
},
"callee": {
"type": "Identifier",
"start": 1293,
"end": 1299,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 14
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "MemberExpression",
"start": 1314,
"end": 1379,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 77
}
},
"object": {
"type": "MemberExpression",
"start": 1314,
"end": 1363,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 61
}
},
"object": {
"type": "Identifier",
"start": 1314,
"end": 1327,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 25
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 1328,
"end": 1363,
"loc": {
"start": {
"line": 49,
"column": 26
},
"end": {
"line": 49,
"column": 61
},
"identifierName": "fake_belt_ejector_slot_by_direction"
},
"name": "fake_belt_ejector_slot_by_direction"
},
"computed": false
},
"property": {
"type": "MemberExpression",
"start": 1364,
"end": 1378,
"loc": {
"start": {
"line": 49,
"column": 62
},
"end": {
"line": 49,
"column": 76
}
},
"object": {
"type": "ThisExpression",
"start": 1364,
"end": 1368,
"loc": {
"start": {
"line": 49,
"column": 62
},
"end": {
"line": 49,
"column": 66
}
}
},
"property": {
"type": "Identifier",
"start": 1369,
"end": 1378,
"loc": {
"start": {
"line": 49,
"column": 67
},
"end": {
"line": 49,
"column": 76
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
},
"computed": true
},
{
"type": "StringLiteral",
"start": 1394,
"end": 1420,
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 38
}
},
"extra": {
"rawValue": "Invalid belt direction: ",
"raw": "\"Invalid belt direction: \""
},
"value": "Invalid belt direction: "
},
{
"type": "MemberExpression",
"start": 1435,
"end": 1449,
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 1435,
"end": 1439,
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1440,
"end": 1449,
"loc": {
"start": {
"line": 51,
"column": 17
},
"end": {
"line": 51,
"column": 26
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
}
]
}
},
{
"type": "ReturnStatement",
"start": 1471,
"end": 1544,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 81
}
},
"argument": {
"type": "MemberExpression",
"start": 1478,
"end": 1543,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 80
}
},
"object": {
"type": "MemberExpression",
"start": 1478,
"end": 1527,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 64
}
},
"object": {
"type": "Identifier",
"start": 1478,
"end": 1491,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 28
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 1492,
"end": 1527,
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 64
},
"identifierName": "fake_belt_ejector_slot_by_direction"
},
"name": "fake_belt_ejector_slot_by_direction"
},
"computed": false
},
"property": {
"type": "MemberExpression",
"start": 1528,
"end": 1542,
"loc": {
"start": {
"line": 53,
"column": 65
},
"end": {
"line": 53,
"column": 79
}
},
"object": {
"type": "ThisExpression",
"start": 1528,
"end": 1532,
"loc": {
"start": {
"line": 53,
"column": 65
},
"end": {
"line": 53,
"column": 69
}
}
},
"property": {
"type": "Identifier",
"start": 1533,
"end": 1542,
"loc": {
"start": {
"line": 53,
"column": 70
},
"end": {
"line": 53,
"column": 79
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
},
"computed": true
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_ejector\").ItemEjectorSlot}\r\n ",
"start": 1130,
"end": 1255,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 46,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Converts from belt space (0 = start of belt ... 1 = end of belt) to the local\r\n * belt coordinates (-0.5|-0.5 to 0.5|0.5)\r\n * @param {number} progress\r\n * @returns {Vector}\r\n ",
"start": 1559,
"end": 1764,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1770,
"end": 3059,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 85,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1770,
"end": 1795,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 29
},
"identifierName": "transformBeltToLocalSpace"
},
"name": "transformBeltToLocalSpace",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1796,
"end": 1804,
"loc": {
"start": {
"line": 62,
"column": 30
},
"end": {
"line": 62,
"column": 38
},
"identifierName": "progress"
},
"name": "progress"
}
],
"body": {
"type": "BlockStatement",
"start": 1806,
"end": 3059,
"loc": {
"start": {
"line": 62,
"column": 40
},
"end": {
"line": 85,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1817,
"end": 1881,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 72
}
},
"expression": {
"type": "CallExpression",
"start": 1817,
"end": 1880,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 71
}
},
"callee": {
"type": "Identifier",
"start": 1817,
"end": 1823,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 1824,
"end": 1839,
"loc": {
"start": {
"line": 63,
"column": 15
},
"end": {
"line": 63,
"column": 30
}
},
"left": {
"type": "Identifier",
"start": 1824,
"end": 1832,
"loc": {
"start": {
"line": 63,
"column": 15
},
"end": {
"line": 63,
"column": 23
},
"identifierName": "progress"
},
"name": "progress"
},
"operator": ">=",
"right": {
"type": "NumericLiteral",
"start": 1836,
"end": 1839,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 30
}
},
"extra": {
"rawValue": 0,
"raw": "0.0"
},
"value": 0
}
},
{
"type": "BinaryExpression",
"start": 1841,
"end": 1879,
"loc": {
"start": {
"line": 63,
"column": 32
},
"end": {
"line": 63,
"column": 70
}
},
"left": {
"type": "StringLiteral",
"start": 1841,
"end": 1868,
"loc": {
"start": {
"line": 63,
"column": 32
},
"end": {
"line": 63,
"column": 59
}
},
"extra": {
"rawValue": "Invalid progress ( < 0): ",
"raw": "\"Invalid progress ( < 0): \""
},
"value": "Invalid progress ( < 0): "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 1871,
"end": 1879,
"loc": {
"start": {
"line": 63,
"column": 62
},
"end": {
"line": 63,
"column": 70
},
"identifierName": "progress"
},
"name": "progress"
}
}
]
}
},
{
"type": "SwitchStatement",
"start": 1891,
"end": 3052,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 84,
"column": 9
}
},
"discriminant": {
"type": "MemberExpression",
"start": 1899,
"end": 1913,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 1899,
"end": 1903,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 1904,
"end": 1913,
"loc": {
"start": {
"line": 64,
"column": 21
},
"end": {
"line": 64,
"column": 30
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
},
"cases": [
{
"type": "SwitchCase",
"start": 1930,
"end": 2084,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 67,
"column": 53
}
},
"consequent": [
{
"type": "ExpressionStatement",
"start": 1971,
"end": 2029,
"loc": {
"start": {
"line": 66,
"column": 16
},
"end": {
"line": 66,
"column": 74
}
},
"expression": {
"type": "CallExpression",
"start": 1971,
"end": 2028,
"loc": {
"start": {
"line": 66,
"column": 16
},
"end": {
"line": 66,
"column": 73
}
},
"callee": {
"type": "Identifier",
"start": 1971,
"end": 1977,
"loc": {
"start": {
"line": 66,
"column": 16
},
"end": {
"line": 66,
"column": 22
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 1978,
"end": 1994,
"loc": {
"start": {
"line": 66,
"column": 23
},
"end": {
"line": 66,
"column": 39
}
},
"left": {
"type": "Identifier",
"start": 1978,
"end": 1986,
"loc": {
"start": {
"line": 66,
"column": 23
},
"end": {
"line": 66,
"column": 31
},
"identifierName": "progress"
},
"name": "progress"
},
"operator": "<=",
"right": {
"type": "NumericLiteral",
"start": 1990,
"end": 1994,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 39
}
},
"extra": {
"rawValue": 1.02,
"raw": "1.02"
},
"value": 1.02
}
},
{
"type": "BinaryExpression",
"start": 1996,
"end": 2027,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 72
}
},
"left": {
"type": "StringLiteral",
"start": 1996,
"end": 2016,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 61
}
},
"extra": {
"rawValue": "Invalid progress: ",
"raw": "\"Invalid progress: \""
},
"value": "Invalid progress: "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2019,
"end": 2027,
"loc": {
"start": {
"line": 66,
"column": 64
},
"end": {
"line": 66,
"column": 72
},
"identifierName": "progress"
},
"name": "progress"
}
}
]
}
},
{
"type": "ReturnStatement",
"start": 2047,
"end": 2084,
"loc": {
"start": {
"line": 67,
"column": 16
},
"end": {
"line": 67,
"column": 53
}
},
"argument": {
"type": "NewExpression",
"start": 2054,
"end": 2083,
"loc": {
"start": {
"line": 67,
"column": 23
},
"end": {
"line": 67,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 2058,
"end": 2064,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 33
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 2065,
"end": 2066,
"loc": {
"start": {
"line": 67,
"column": 34
},
"end": {
"line": 67,
"column": 35
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "BinaryExpression",
"start": 2068,
"end": 2082,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 51
}
},
"left": {
"type": "NumericLiteral",
"start": 2068,
"end": 2071,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 40
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 2074,
"end": 2082,
"loc": {
"start": {
"line": 67,
"column": 43
},
"end": {
"line": 67,
"column": 51
},
"identifierName": "progress"
},
"name": "progress"
}
}
]
}
}
],
"test": {
"type": "MemberExpression",
"start": 1935,
"end": 1952,
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 1935,
"end": 1948,
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 30
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 1949,
"end": 1952,
"loc": {
"start": {
"line": 65,
"column": 31
},
"end": {
"line": 65,
"column": 34
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
}
},
{
"type": "SwitchCase",
"start": 2100,
"end": 2490,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 74,
"column": 17
}
},
"consequent": [
{
"type": "BlockStatement",
"start": 2143,
"end": 2490,
"loc": {
"start": {
"line": 70,
"column": 16
},
"end": {
"line": 74,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2166,
"end": 2259,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 113
}
},
"expression": {
"type": "CallExpression",
"start": 2166,
"end": 2258,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 112
}
},
"callee": {
"type": "Identifier",
"start": 2166,
"end": 2172,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 26
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2173,
"end": 2222,
"loc": {
"start": {
"line": 71,
"column": 27
},
"end": {
"line": 71,
"column": 76
}
},
"left": {
"type": "Identifier",
"start": 2173,
"end": 2181,
"loc": {
"start": {
"line": 71,
"column": 27
},
"end": {
"line": 71,
"column": 35
},
"identifierName": "progress"
},
"name": "progress"
},
"operator": "<=",
"right": {
"type": "BinaryExpression",
"start": 2185,
"end": 2222,
"loc": {
"start": {
"line": 71,
"column": 39
},
"end": {
"line": 71,
"column": 76
}
},
"left": {
"type": "MemberExpression",
"start": 2185,
"end": 2215,
"loc": {
"start": {
"line": 71,
"column": 39
},
"end": {
"line": 71,
"column": 69
}
},
"object": {
"type": "Identifier",
"start": 2185,
"end": 2198,
"loc": {
"start": {
"line": 71,
"column": 39
},
"end": {
"line": 71,
"column": 52
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 2199,
"end": 2215,
"loc": {
"start": {
"line": 71,
"column": 53
},
"end": {
"line": 71,
"column": 69
},
"identifierName": "curvedBeltLength"
},
"name": "curvedBeltLength"
},
"computed": false
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start": 2218,
"end": 2222,
"loc": {
"start": {
"line": 71,
"column": 72
},
"end": {
"line": 71,
"column": 76
}
},
"extra": {
"rawValue": 0.02,
"raw": "0.02"
},
"value": 0.02
}
}
},
{
"type": "BinaryExpression",
"start": 2224,
"end": 2257,
"loc": {
"start": {
"line": 71,
"column": 78
},
"end": {
"line": 71,
"column": 111
}
},
"left": {
"type": "StringLiteral",
"start": 2224,
"end": 2246,
"loc": {
"start": {
"line": 71,
"column": 78
},
"end": {
"line": 71,
"column": 100
}
},
"extra": {
"rawValue": "Invalid progress 2: ",
"raw": "\"Invalid progress 2: \""
},
"value": "Invalid progress 2: "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2249,
"end": 2257,
"loc": {
"start": {
"line": 71,
"column": 103
},
"end": {
"line": 71,
"column": 111
},
"identifierName": "progress"
},
"name": "progress"
}
}
]
}
},
{
"type": "VariableDeclaration",
"start": 2281,
"end": 2361,
"loc": {
"start": {
"line": 72,
"column": 20
},
"end": {
"line": 72,
"column": 100
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2287,
"end": 2360,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 99
}
},
"id": {
"type": "Identifier",
"start": 2287,
"end": 2298,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 37
},
"identifierName": "arcProgress"
},
"name": "arcProgress"
},
"init": {
"type": "BinaryExpression",
"start": 2301,
"end": 2360,
"loc": {
"start": {
"line": 72,
"column": 40
},
"end": {
"line": 72,
"column": 99
}
},
"left": {
"type": "BinaryExpression",
"start": 2301,
"end": 2350,
"loc": {
"start": {
"line": 72,
"column": 40
},
"end": {
"line": 72,
"column": 89
}
},
"left": {
"type": "BinaryExpression",
"start": 2302,
"end": 2343,
"loc": {
"start": {
"line": 72,
"column": 41
},
"end": {
"line": 72,
"column": 82
}
},
"left": {
"type": "Identifier",
"start": 2302,
"end": 2310,
"loc": {
"start": {
"line": 72,
"column": 41
},
"end": {
"line": 72,
"column": 49
},
"identifierName": "progress"
},
"name": "progress"
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 2313,
"end": 2343,
"loc": {
"start": {
"line": 72,
"column": 52
},
"end": {
"line": 72,
"column": 82
}
},
"object": {
"type": "Identifier",
"start": 2313,
"end": 2326,
"loc": {
"start": {
"line": 72,
"column": 52
},
"end": {
"line": 72,
"column": 65
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 2327,
"end": 2343,
"loc": {
"start": {
"line": 72,
"column": 66
},
"end": {
"line": 72,
"column": 82
},
"identifierName": "curvedBeltLength"
},
"name": "curvedBeltLength"
},
"computed": false
},
"extra": {
"parenthesized": true,
"parenStart": 2301
}
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 2347,
"end": 2350,
"loc": {
"start": {
"line": 72,
"column": 86
},
"end": {
"line": 72,
"column": 89
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
}
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 2353,
"end": 2360,
"loc": {
"start": {
"line": 72,
"column": 92
},
"end": {
"line": 72,
"column": 99
}
},
"object": {
"type": "Identifier",
"start": 2353,
"end": 2357,
"loc": {
"start": {
"line": 72,
"column": 92
},
"end": {
"line": 72,
"column": 96
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2358,
"end": 2360,
"loc": {
"start": {
"line": 72,
"column": 97
},
"end": {
"line": 72,
"column": 99
},
"identifierName": "PI"
},
"name": "PI"
},
"computed": false
}
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start": 2383,
"end": 2471,
"loc": {
"start": {
"line": 73,
"column": 20
},
"end": {
"line": 73,
"column": 108
}
},
"argument": {
"type": "NewExpression",
"start": 2390,
"end": 2470,
"loc": {
"start": {
"line": 73,
"column": 27
},
"end": {
"line": 73,
"column": 107
}
},
"callee": {
"type": "Identifier",
"start": 2394,
"end": 2400,
"loc": {
"start": {
"line": 73,
"column": 31
},
"end": {
"line": 73,
"column": 37
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2401,
"end": 2434,
"loc": {
"start": {
"line": 73,
"column": 38
},
"end": {
"line": 73,
"column": 71
}
},
"left": {
"type": "NumericLiteral",
"start": 2401,
"end": 2404,
"loc": {
"start": {
"line": 73,
"column": 38
},
"end": {
"line": 73,
"column": 41
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 2407,
"end": 2434,
"loc": {
"start": {
"line": 73,
"column": 44
},
"end": {
"line": 73,
"column": 71
}
},
"left": {
"type": "NumericLiteral",
"start": 2407,
"end": 2410,
"loc": {
"start": {
"line": 73,
"column": 44
},
"end": {
"line": 73,
"column": 47
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "*",
"right": {
"type": "CallExpression",
"start": 2413,
"end": 2434,
"loc": {
"start": {
"line": 73,
"column": 50
},
"end": {
"line": 73,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2413,
"end": 2421,
"loc": {
"start": {
"line": 73,
"column": 50
},
"end": {
"line": 73,
"column": 58
}
},
"object": {
"type": "Identifier",
"start": 2413,
"end": 2417,
"loc": {
"start": {
"line": 73,
"column": 50
},
"end": {
"line": 73,
"column": 54
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2418,
"end": 2421,
"loc": {
"start": {
"line": 73,
"column": 55
},
"end": {
"line": 73,
"column": 58
},
"identifierName": "cos"
},
"name": "cos"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2422,
"end": 2433,
"loc": {
"start": {
"line": 73,
"column": 59
},
"end": {
"line": 73,
"column": 70
},
"identifierName": "arcProgress"
},
"name": "arcProgress"
}
]
}
}
},
{
"type": "BinaryExpression",
"start": 2436,
"end": 2469,
"loc": {
"start": {
"line": 73,
"column": 73
},
"end": {
"line": 73,
"column": 106
}
},
"left": {
"type": "NumericLiteral",
"start": 2436,
"end": 2439,
"loc": {
"start": {
"line": 73,
"column": 73
},
"end": {
"line": 73,
"column": 76
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 2442,
"end": 2469,
"loc": {
"start": {
"line": 73,
"column": 79
},
"end": {
"line": 73,
"column": 106
}
},
"left": {
"type": "NumericLiteral",
"start": 2442,
"end": 2445,
"loc": {
"start": {
"line": 73,
"column": 79
},
"end": {
"line": 73,
"column": 82
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "*",
"right": {
"type": "CallExpression",
"start": 2448,
"end": 2469,
"loc": {
"start": {
"line": 73,
"column": 85
},
"end": {
"line": 73,
"column": 106
}
},
"callee": {
"type": "MemberExpression",
"start": 2448,
"end": 2456,
"loc": {
"start": {
"line": 73,
"column": 85
},
"end": {
"line": 73,
"column": 93
}
},
"object": {
"type": "Identifier",
"start": 2448,
"end": 2452,
"loc": {
"start": {
"line": 73,
"column": 85
},
"end": {
"line": 73,
"column": 89
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2453,
"end": 2456,
"loc": {
"start": {
"line": 73,
"column": 90
},
"end": {
"line": 73,
"column": 93
},
"identifierName": "sin"
},
"name": "sin"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2457,
"end": 2468,
"loc": {
"start": {
"line": 73,
"column": 94
},
"end": {
"line": 73,
"column": 105
},
"identifierName": "arcProgress"
},
"name": "arcProgress"
}
]
}
}
}
]
}
}
],
"directives": []
}
],
"test": {
"type": "MemberExpression",
"start": 2105,
"end": 2124,
"loc": {
"start": {
"line": 69,
"column": 17
},
"end": {
"line": 69,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 2105,
"end": 2118,
"loc": {
"start": {
"line": 69,
"column": 17
},
"end": {
"line": 69,
"column": 30
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 2119,
"end": 2124,
"loc": {
"start": {
"line": 69,
"column": 31
},
"end": {
"line": 69,
"column": 36
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
},
{
"type": "SwitchCase",
"start": 2504,
"end": 2894,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 80,
"column": 17
}
},
"consequent": [
{
"type": "BlockStatement",
"start": 2546,
"end": 2894,
"loc": {
"start": {
"line": 76,
"column": 16
},
"end": {
"line": 80,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2569,
"end": 2662,
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 113
}
},
"expression": {
"type": "CallExpression",
"start": 2569,
"end": 2661,
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 112
}
},
"callee": {
"type": "Identifier",
"start": 2569,
"end": 2575,
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 26
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2576,
"end": 2625,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 76
}
},
"left": {
"type": "Identifier",
"start": 2576,
"end": 2584,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 35
},
"identifierName": "progress"
},
"name": "progress"
},
"operator": "<=",
"right": {
"type": "BinaryExpression",
"start": 2588,
"end": 2625,
"loc": {
"start": {
"line": 77,
"column": 39
},
"end": {
"line": 77,
"column": 76
}
},
"left": {
"type": "MemberExpression",
"start": 2588,
"end": 2618,
"loc": {
"start": {
"line": 77,
"column": 39
},
"end": {
"line": 77,
"column": 69
}
},
"object": {
"type": "Identifier",
"start": 2588,
"end": 2601,
"loc": {
"start": {
"line": 77,
"column": 39
},
"end": {
"line": 77,
"column": 52
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 2602,
"end": 2618,
"loc": {
"start": {
"line": 77,
"column": 53
},
"end": {
"line": 77,
"column": 69
},
"identifierName": "curvedBeltLength"
},
"name": "curvedBeltLength"
},
"computed": false
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start": 2621,
"end": 2625,
"loc": {
"start": {
"line": 77,
"column": 72
},
"end": {
"line": 77,
"column": 76
}
},
"extra": {
"rawValue": 0.02,
"raw": "0.02"
},
"value": 0.02
}
}
},
{
"type": "BinaryExpression",
"start": 2627,
"end": 2660,
"loc": {
"start": {
"line": 77,
"column": 78
},
"end": {
"line": 77,
"column": 111
}
},
"left": {
"type": "StringLiteral",
"start": 2627,
"end": 2649,
"loc": {
"start": {
"line": 77,
"column": 78
},
"end": {
"line": 77,
"column": 100
}
},
"extra": {
"rawValue": "Invalid progress 3: ",
"raw": "\"Invalid progress 3: \""
},
"value": "Invalid progress 3: "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2652,
"end": 2660,
"loc": {
"start": {
"line": 77,
"column": 103
},
"end": {
"line": 77,
"column": 111
},
"identifierName": "progress"
},
"name": "progress"
}
}
]
}
},
{
"type": "VariableDeclaration",
"start": 2684,
"end": 2764,
"loc": {
"start": {
"line": 78,
"column": 20
},
"end": {
"line": 78,
"column": 100
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2690,
"end": 2763,
"loc": {
"start": {
"line": 78,
"column": 26
},
"end": {
"line": 78,
"column": 99
}
},
"id": {
"type": "Identifier",
"start": 2690,
"end": 2701,
"loc": {
"start": {
"line": 78,
"column": 26
},
"end": {
"line": 78,
"column": 37
},
"identifierName": "arcProgress"
},
"name": "arcProgress"
},
"init": {
"type": "BinaryExpression",
"start": 2704,
"end": 2763,
"loc": {
"start": {
"line": 78,
"column": 40
},
"end": {
"line": 78,
"column": 99
}
},
"left": {
"type": "BinaryExpression",
"start": 2704,
"end": 2753,
"loc": {
"start": {
"line": 78,
"column": 40
},
"end": {
"line": 78,
"column": 89
}
},
"left": {
"type": "BinaryExpression",
"start": 2705,
"end": 2746,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 82
}
},
"left": {
"type": "Identifier",
"start": 2705,
"end": 2713,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 49
},
"identifierName": "progress"
},
"name": "progress"
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 2716,
"end": 2746,
"loc": {
"start": {
"line": 78,
"column": 52
},
"end": {
"line": 78,
"column": 82
}
},
"object": {
"type": "Identifier",
"start": 2716,
"end": 2729,
"loc": {
"start": {
"line": 78,
"column": 52
},
"end": {
"line": 78,
"column": 65
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 2730,
"end": 2746,
"loc": {
"start": {
"line": 78,
"column": 66
},
"end": {
"line": 78,
"column": 82
},
"identifierName": "curvedBeltLength"
},
"name": "curvedBeltLength"
},
"computed": false
},
"extra": {
"parenthesized": true,
"parenStart": 2704
}
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 2750,
"end": 2753,
"loc": {
"start": {
"line": 78,
"column": 86
},
"end": {
"line": 78,
"column": 89
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
}
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 2756,
"end": 2763,
"loc": {
"start": {
"line": 78,
"column": 92
},
"end": {
"line": 78,
"column": 99
}
},
"object": {
"type": "Identifier",
"start": 2756,
"end": 2760,
"loc": {
"start": {
"line": 78,
"column": 92
},
"end": {
"line": 78,
"column": 96
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2761,
"end": 2763,
"loc": {
"start": {
"line": 78,
"column": 97
},
"end": {
"line": 78,
"column": 99
},
"identifierName": "PI"
},
"name": "PI"
},
"computed": false
}
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start": 2786,
"end": 2875,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 109
}
},
"argument": {
"type": "NewExpression",
"start": 2793,
"end": 2874,
"loc": {
"start": {
"line": 79,
"column": 27
},
"end": {
"line": 79,
"column": 108
}
},
"callee": {
"type": "Identifier",
"start": 2797,
"end": 2803,
"loc": {
"start": {
"line": 79,
"column": 31
},
"end": {
"line": 79,
"column": 37
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2804,
"end": 2838,
"loc": {
"start": {
"line": 79,
"column": 38
},
"end": {
"line": 79,
"column": 72
}
},
"left": {
"type": "UnaryExpression",
"start": 2804,
"end": 2808,
"loc": {
"start": {
"line": 79,
"column": 38
},
"end": {
"line": 79,
"column": 42
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 2805,
"end": 2808,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 42
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "+",
"right": {
"type": "BinaryExpression",
"start": 2811,
"end": 2838,
"loc": {
"start": {
"line": 79,
"column": 45
},
"end": {
"line": 79,
"column": 72
}
},
"left": {
"type": "NumericLiteral",
"start": 2811,
"end": 2814,
"loc": {
"start": {
"line": 79,
"column": 45
},
"end": {
"line": 79,
"column": 48
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "*",
"right": {
"type": "CallExpression",
"start": 2817,
"end": 2838,
"loc": {
"start": {
"line": 79,
"column": 51
},
"end": {
"line": 79,
"column": 72
}
},
"callee": {
"type": "MemberExpression",
"start": 2817,
"end": 2825,
"loc": {
"start": {
"line": 79,
"column": 51
},
"end": {
"line": 79,
"column": 59
}
},
"object": {
"type": "Identifier",
"start": 2817,
"end": 2821,
"loc": {
"start": {
"line": 79,
"column": 51
},
"end": {
"line": 79,
"column": 55
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2822,
"end": 2825,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 59
},
"identifierName": "cos"
},
"name": "cos"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2826,
"end": 2837,
"loc": {
"start": {
"line": 79,
"column": 60
},
"end": {
"line": 79,
"column": 71
},
"identifierName": "arcProgress"
},
"name": "arcProgress"
}
]
}
}
},
{
"type": "BinaryExpression",
"start": 2840,
"end": 2873,
"loc": {
"start": {
"line": 79,
"column": 74
},
"end": {
"line": 79,
"column": 107
}
},
"left": {
"type": "NumericLiteral",
"start": 2840,
"end": 2843,
"loc": {
"start": {
"line": 79,
"column": 74
},
"end": {
"line": 79,
"column": 77
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 2846,
"end": 2873,
"loc": {
"start": {
"line": 79,
"column": 80
},
"end": {
"line": 79,
"column": 107
}
},
"left": {
"type": "NumericLiteral",
"start": 2846,
"end": 2849,
"loc": {
"start": {
"line": 79,
"column": 80
},
"end": {
"line": 79,
"column": 83
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "*",
"right": {
"type": "CallExpression",
"start": 2852,
"end": 2873,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 107
}
},
"callee": {
"type": "MemberExpression",
"start": 2852,
"end": 2860,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 94
}
},
"object": {
"type": "Identifier",
"start": 2852,
"end": 2856,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 90
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2857,
"end": 2860,
"loc": {
"start": {
"line": 79,
"column": 91
},
"end": {
"line": 79,
"column": 94
},
"identifierName": "sin"
},
"name": "sin"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2861,
"end": 2872,
"loc": {
"start": {
"line": 79,
"column": 95
},
"end": {
"line": 79,
"column": 106
},
"identifierName": "arcProgress"
},
"name": "arcProgress"
}
]
}
}
}
]
}
}
],
"directives": []
}
],
"test": {
"type": "MemberExpression",
"start": 2509,
"end": 2527,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2509,
"end": 2522,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 30
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 2523,
"end": 2527,
"loc": {
"start": {
"line": 75,
"column": 31
},
"end": {
"line": 75,
"column": 35
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
{
"type": "SwitchCase",
"start": 2908,
"end": 3041,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 83,
"column": 40
}
},
"consequent": [
{
"type": "ExpressionStatement",
"start": 2934,
"end": 2999,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 81
}
},
"expression": {
"type": "CallExpression",
"start": 2934,
"end": 2998,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 80
}
},
"callee": {
"type": "Identifier",
"start": 2934,
"end": 2946,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 28
},
"identifierName": "assertAlways"
},
"name": "assertAlways"
},
"arguments": [
{
"type": "BooleanLiteral",
"start": 2947,
"end": 2952,
"loc": {
"start": {
"line": 82,
"column": 29
},
"end": {
"line": 82,
"column": 34
}
},
"value": false
},
{
"type": "BinaryExpression",
"start": 2954,
"end": 2997,
"loc": {
"start": {
"line": 82,
"column": 36
},
"end": {
"line": 82,
"column": 79
}
},
"left": {
"type": "StringLiteral",
"start": 2954,
"end": 2980,
"loc": {
"start": {
"line": 82,
"column": 36
},
"end": {
"line": 82,
"column": 62
}
},
"extra": {
"rawValue": "Invalid belt direction: ",
"raw": "\"Invalid belt direction: \""
},
"value": "Invalid belt direction: "
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 2983,
"end": 2997,
"loc": {
"start": {
"line": 82,
"column": 65
},
"end": {
"line": 82,
"column": 79
}
},
"object": {
"type": "ThisExpression",
"start": 2983,
"end": 2987,
"loc": {
"start": {
"line": 82,
"column": 65
},
"end": {
"line": 82,
"column": 69
}
}
},
"property": {
"type": "Identifier",
"start": 2988,
"end": 2997,
"loc": {
"start": {
"line": 82,
"column": 70
},
"end": {
"line": 82,
"column": 79
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
}
}
]
}
},
{
"type": "ReturnStatement",
"start": 3017,
"end": 3041,
"loc": {
"start": {
"line": 83,
"column": 16
},
"end": {
"line": 83,
"column": 40
}
},
"argument": {
"type": "NewExpression",
"start": 3024,
"end": 3040,
"loc": {
"start": {
"line": 83,
"column": 23
},
"end": {
"line": 83,
"column": 39
}
},
"callee": {
"type": "Identifier",
"start": 3028,
"end": 3034,
"loc": {
"start": {
"line": 83,
"column": 27
},
"end": {
"line": 83,
"column": 33
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 3035,
"end": 3036,
"loc": {
"start": {
"line": 83,
"column": 34
},
"end": {
"line": 83,
"column": 35
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 3038,
"end": 3039,
"loc": {
"start": {
"line": 83,
"column": 37
},
"end": {
"line": 83,
"column": 38
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
}
}
],
"test": null
}
]
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Converts from belt space (0 = start of belt ... 1 = end of belt) to the local\r\n * belt coordinates (-0.5|-0.5 to 0.5|0.5)\r\n * @param {number} progress\r\n * @returns {Vector}\r\n ",
"start": 1559,
"end": 1764,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [],
"trailingComments": []
}
},
{
"type": "ExpressionStatement",
"start": 3066,
"end": 3122,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 56
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3066,
"end": 3121,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 55
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3066,
"end": 3096,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 3066,
"end": 3079,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 13
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent"
},
"property": {
"type": "Identifier",
"start": 3080,
"end": 3096,
"loc": {
"start": {
"line": 88,
"column": 14
},
"end": {
"line": 88,
"column": 30
},
"identifierName": "curvedBeltLength"
},
"name": "curvedBeltLength"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 3117,
"end": 3121,
"loc": {
"start": {
"line": 88,
"column": 51
},
"end": {
"line": 88,
"column": 55
}
},
"extra": {
"rawValue": 0.78,
"raw": "0.78"
},
"value": 0.78,
"leadingComments": [
{
"type": "CommentBlock",
"value": " Math.PI / 4 ",
"start": 3099,
"end": 3116,
"loc": {
"start": {
"line": 88,
"column": 33
},
"end": {
"line": 88,
"column": 50
}
}
}
]
}
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @type {import(\"./item_acceptor\").ItemAcceptorSlot} ",
"start": 3126,
"end": 3183,
"loc": {
"start": {
"line": 90,
"column": 0
},
"end": {
"line": 90,
"column": 57
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 3185,
"end": 3299,
"loc": {
"start": {
"line": 91,
"column": 0
},
"end": {
"line": 94,
"column": 2
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3185,
"end": 3298,
"loc": {
"start": {
"line": 91,
"column": 0
},
"end": {
"line": 94,
"column": 1
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3185,
"end": 3222,
"loc": {
"start": {
"line": 91,
"column": 0
},
"end": {
"line": 91,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 3185,
"end": 3198,
"loc": {
"start": {
"line": 91,
"column": 0
},
"end": {
"line": 91,
"column": 13
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3199,
"end": 3222,
"loc": {
"start": {
"line": 91,
"column": 14
},
"end": {
"line": 91,
"column": 37
},
"identifierName": "fake_belt_acceptor_slot"
},
"name": "fake_belt_acceptor_slot"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ObjectExpression",
"start": 3225,
"end": 3298,
"loc": {
"start": {
"line": 91,
"column": 40
},
"end": {
"line": 94,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3232,
"end": 3253,
"loc": {
"start": {
"line": 92,
"column": 4
},
"end": {
"line": 92,
"column": 25
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3232,
"end": 3235,
"loc": {
"start": {
"line": 92,
"column": 4
},
"end": {
"line": 92,
"column": 7
},
"identifierName": "pos"
},
"name": "pos"
},
"value": {
"type": "NewExpression",
"start": 3237,
"end": 3253,
"loc": {
"start": {
"line": 92,
"column": 9
},
"end": {
"line": 92,
"column": 25
}
},
"callee": {
"type": "Identifier",
"start": 3241,
"end": 3247,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 19
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 3248,
"end": 3249,
"loc": {
"start": {
"line": 92,
"column": 20
},
"end": {
"line": 92,
"column": 21
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 3251,
"end": 3252,
"loc": {
"start": {
"line": 92,
"column": 23
},
"end": {
"line": 92,
"column": 24
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
}
},
{
"type": "ObjectProperty",
"start": 3260,
"end": 3294,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 38
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3260,
"end": 3270,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 14
},
"identifierName": "directions"
},
"name": "directions"
},
"value": {
"type": "ArrayExpression",
"start": 3272,
"end": 3294,
"loc": {
"start": {
"line": 93,
"column": 16
},
"end": {
"line": 93,
"column": 38
}
},
"elements": [
{
"type": "MemberExpression",
"start": 3273,
"end": 3293,
"loc": {
"start": {
"line": 93,
"column": 17
},
"end": {
"line": 93,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 3273,
"end": 3286,
"loc": {
"start": {
"line": 93,
"column": 17
},
"end": {
"line": 93,
"column": 30
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3287,
"end": 3293,
"loc": {
"start": {
"line": 93,
"column": 31
},
"end": {
"line": 93,
"column": 37
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
}
]
}
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {import(\"./item_acceptor\").ItemAcceptorSlot} ",
"start": 3126,
"end": 3183,
"loc": {
"start": {
"line": 90,
"column": 0
},
"end": {
"line": 90,
"column": 57
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @type {Object<enumDirection, import(\"./item_ejector\").ItemEjectorSlot>} ",
"start": 3303,
"end": 3381,
"loc": {
"start": {
"line": 96,
"column": 0
},
"end": {
"line": 96,
"column": 78
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 3383,
"end": 3900,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 118,
"column": 2
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3383,
"end": 3899,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 118,
"column": 1
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3383,
"end": 3432,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 3383,
"end": 3396,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"column": 13
},
"identifierName": "BeltComponent"
},
"name": "BeltComponent",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3397,
"end": 3432,
"loc": {
"start": {
"line": 97,
"column": 14
},
"end": {
"line": 97,
"column": 49
},
"identifierName": "fake_belt_ejector_slot_by_direction"
},
"name": "fake_belt_ejector_slot_by_direction"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ObjectExpression",
"start": 3435,
"end": 3899,
"loc": {
"start": {
"line": 97,
"column": 52
},
"end": {
"line": 118,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3442,
"end": 3585,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 103,
"column": 5
}
},
"method": false,
"shorthand": false,
"computed": true,
"key": {
"type": "MemberExpression",
"start": 3443,
"end": 3460,
"loc": {
"start": {
"line": 98,
"column": 5
},
"end": {
"line": 98,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 3443,
"end": 3456,
"loc": {
"start": {
"line": 98,
"column": 5
},
"end": {
"line": 98,
"column": 18
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3457,
"end": 3460,
"loc": {
"start": {
"line": 98,
"column": 19
},
"end": {
"line": 98,
"column": 22
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
},
"value": {
"type": "ObjectExpression",
"start": 3463,
"end": 3585,
"loc": {
"start": {
"line": 98,
"column": 25
},
"end": {
"line": 103,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3474,
"end": 3495,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3474,
"end": 3477,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 11
},
"identifierName": "pos"
},
"name": "pos"
},
"value": {
"type": "NewExpression",
"start": 3479,
"end": 3495,
"loc": {
"start": {
"line": 99,
"column": 13
},
"end": {
"line": 99,
"column": 29
}
},
"callee": {
"type": "Identifier",
"start": 3483,
"end": 3489,
"loc": {
"start": {
"line": 99,
"column": 17
},
"end": {
"line": 99,
"column": 23
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 3490,
"end": 3491,
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 99,
"column": 25
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 3493,
"end": 3494,
"loc": {
"start": {
"line": 99,
"column": 27
},
"end": {
"line": 99,
"column": 28
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
}
},
{
"type": "ObjectProperty",
"start": 3506,
"end": 3534,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 36
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3506,
"end": 3515,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 17
},
"identifierName": "direction"
},
"name": "direction"
},
"value": {
"type": "MemberExpression",
"start": 3517,
"end": 3534,
"loc": {
"start": {
"line": 100,
"column": 19
},
"end": {
"line": 100,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 3517,
"end": 3530,
"loc": {
"start": {
"line": 100,
"column": 19
},
"end": {
"line": 100,
"column": 32
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3531,
"end": 3534,
"loc": {
"start": {
"line": 100,
"column": 33
},
"end": {
"line": 100,
"column": 36
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 3545,
"end": 3555,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3545,
"end": 3549,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 12
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "NullLiteral",
"start": 3551,
"end": 3555,
"loc": {
"start": {
"line": 101,
"column": 14
},
"end": {
"line": 101,
"column": 18
}
}
}
},
{
"type": "ObjectProperty",
"start": 3566,
"end": 3577,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3566,
"end": 3574,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 16
},
"identifierName": "progress"
},
"name": "progress"
},
"value": {
"type": "NumericLiteral",
"start": 3576,
"end": 3577,
"loc": {
"start": {
"line": 102,
"column": 18
},
"end": {
"line": 102,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
]
}
},
{
"type": "ObjectProperty",
"start": 3594,
"end": 3741,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 110,
"column": 5
}
},
"method": false,
"shorthand": false,
"computed": true,
"key": {
"type": "MemberExpression",
"start": 3595,
"end": 3614,
"loc": {
"start": {
"line": 105,
"column": 5
},
"end": {
"line": 105,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 3595,
"end": 3608,
"loc": {
"start": {
"line": 105,
"column": 5
},
"end": {
"line": 105,
"column": 18
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3609,
"end": 3614,
"loc": {
"start": {
"line": 105,
"column": 19
},
"end": {
"line": 105,
"column": 24
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"value": {
"type": "ObjectExpression",
"start": 3617,
"end": 3741,
"loc": {
"start": {
"line": 105,
"column": 27
},
"end": {
"line": 110,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3628,
"end": 3649,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3628,
"end": 3631,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 11
},
"identifierName": "pos"
},
"name": "pos"
},
"value": {
"type": "NewExpression",
"start": 3633,
"end": 3649,
"loc": {
"start": {
"line": 106,
"column": 13
},
"end": {
"line": 106,
"column": 29
}
},
"callee": {
"type": "Identifier",
"start": 3637,
"end": 3643,
"loc": {
"start": {
"line": 106,
"column": 17
},
"end": {
"line": 106,
"column": 23
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 3644,
"end": 3645,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 25
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 3647,
"end": 3648,
"loc": {
"start": {
"line": 106,
"column": 27
},
"end": {
"line": 106,
"column": 28
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
}
},
{
"type": "ObjectProperty",
"start": 3660,
"end": 3690,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 38
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3660,
"end": 3669,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 17
},
"identifierName": "direction"
},
"name": "direction"
},
"value": {
"type": "MemberExpression",
"start": 3671,
"end": 3690,
"loc": {
"start": {
"line": 107,
"column": 19
},
"end": {
"line": 107,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 3671,
"end": 3684,
"loc": {
"start": {
"line": 107,
"column": 19
},
"end": {
"line": 107,
"column": 32
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3685,
"end": 3690,
"loc": {
"start": {
"line": 107,
"column": 33
},
"end": {
"line": 107,
"column": 38
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 3701,
"end": 3711,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3701,
"end": 3705,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 12
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "NullLiteral",
"start": 3707,
"end": 3711,
"loc": {
"start": {
"line": 108,
"column": 14
},
"end": {
"line": 108,
"column": 18
}
}
}
},
{
"type": "ObjectProperty",
"start": 3722,
"end": 3733,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3722,
"end": 3730,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 16
},
"identifierName": "progress"
},
"name": "progress"
},
"value": {
"type": "NumericLiteral",
"start": 3732,
"end": 3733,
"loc": {
"start": {
"line": 109,
"column": 18
},
"end": {
"line": 109,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
]
}
},
{
"type": "ObjectProperty",
"start": 3750,
"end": 3895,
"loc": {
"start": {
"line": 112,
"column": 4
},
"end": {
"line": 117,
"column": 5
}
},
"method": false,
"shorthand": false,
"computed": true,
"key": {
"type": "MemberExpression",
"start": 3751,
"end": 3769,
"loc": {
"start": {
"line": 112,
"column": 5
},
"end": {
"line": 112,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 3751,
"end": 3764,
"loc": {
"start": {
"line": 112,
"column": 5
},
"end": {
"line": 112,
"column": 18
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3765,
"end": 3769,
"loc": {
"start": {
"line": 112,
"column": 19
},
"end": {
"line": 112,
"column": 23
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"value": {
"type": "ObjectExpression",
"start": 3772,
"end": 3895,
"loc": {
"start": {
"line": 112,
"column": 26
},
"end": {
"line": 117,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3783,
"end": 3804,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3783,
"end": 3786,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 11
},
"identifierName": "pos"
},
"name": "pos"
},
"value": {
"type": "NewExpression",
"start": 3788,
"end": 3804,
"loc": {
"start": {
"line": 113,
"column": 13
},
"end": {
"line": 113,
"column": 29
}
},
"callee": {
"type": "Identifier",
"start": 3792,
"end": 3798,
"loc": {
"start": {
"line": 113,
"column": 17
},
"end": {
"line": 113,
"column": 23
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 3799,
"end": 3800,
"loc": {
"start": {
"line": 113,
"column": 24
},
"end": {
"line": 113,
"column": 25
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 3802,
"end": 3803,
"loc": {
"start": {
"line": 113,
"column": 27
},
"end": {
"line": 113,
"column": 28
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
}
},
{
"type": "ObjectProperty",
"start": 3815,
"end": 3844,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3815,
"end": 3824,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 17
},
"identifierName": "direction"
},
"name": "direction"
},
"value": {
"type": "MemberExpression",
"start": 3826,
"end": 3844,
"loc": {
"start": {
"line": 114,
"column": 19
},
"end": {
"line": 114,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 3826,
"end": 3839,
"loc": {
"start": {
"line": 114,
"column": 19
},
"end": {
"line": 114,
"column": 32
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"property": {
"type": "Identifier",
"start": 3840,
"end": 3844,
"loc": {
"start": {
"line": 114,
"column": 33
},
"end": {
"line": 114,
"column": 37
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 3855,
"end": 3865,
"loc": {
"start": {
"line": 115,
"column": 8
},
"end": {
"line": 115,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3855,
"end": 3859,
"loc": {
"start": {
"line": 115,
"column": 8
},
"end": {
"line": 115,
"column": 12
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "NullLiteral",
"start": 3861,
"end": 3865,
"loc": {
"start": {
"line": 115,
"column": 14
},
"end": {
"line": 115,
"column": 18
}
}
}
},
{
"type": "ObjectProperty",
"start": 3876,
"end": 3887,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3876,
"end": 3884,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 16
},
"identifierName": "progress"
},
"name": "progress"
},
"value": {
"type": "NumericLiteral",
"start": 3886,
"end": 3887,
"loc": {
"start": {
"line": 116,
"column": 18
},
"end": {
"line": 116,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
]
}
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {Object<enumDirection, import(\"./item_ejector\").ItemEjectorSlot>} ",
"start": 3303,
"end": 3381,
"loc": {
"start": {
"line": 96,
"column": 0
},
"end": {
"line": 96,
"column": 78
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumDirection=} param0.direction The direction of the belt\r\n ",
"start": 254,
"end": 380,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * The path this belt is contained in, not serialized\r\n * @type {BeltPath}\r\n ",
"start": 503,
"end": 611,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the effective length of this belt in tile space\r\n * @returns {number}\r\n ",
"start": 661,
"end": 763,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 30,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_acceptor\").ItemAcceptorSlot}\r\n ",
"start": 904,
"end": 1031,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_ejector\").ItemEjectorSlot}\r\n ",
"start": 1130,
"end": 1255,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 46,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Converts from belt space (0 = start of belt ... 1 = end of belt) to the local\r\n * belt coordinates (-0.5|-0.5 to 0.5|0.5)\r\n * @param {number} progress\r\n * @returns {Vector}\r\n ",
"start": 1559,
"end": 1764,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": " Math.PI / 4 ",
"start": 3099,
"end": 3116,
"loc": {
"start": {
"line": 88,
"column": 33
},
"end": {
"line": 88,
"column": 50
}
}
},
{
"type": "CommentBlock",
"value": "* @type {import(\"./item_acceptor\").ItemAcceptorSlot} ",
"start": 3126,
"end": 3183,
"loc": {
"start": {
"line": 90,
"column": 0
},
"end": {
"line": 90,
"column": 57
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Object<enumDirection, import(\"./item_ejector\").ItemEjectorSlot>} ",
"start": 3303,
"end": 3381,
"loc": {
"start": {
"line": 96,
"column": 0
},
"end": {
"line": 96,
"column": 78
}
}
}
],
"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": "enumDirection",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 22,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 31,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 33,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 37
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../core/vector",
"start": 38,
"end": 57,
"loc": {
"start": {
"line": 1,
"column": 38
},
"end": {
"line": 1,
"column": 57
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 57,
"end": 58,
"loc": {
"start": {
"line": 1,
"column": 57
},
"end": {
"line": 1,
"column": 58
}
}
},
{
"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": 60,
"end": 66,
"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": 67,
"end": 68,
"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": "BeltPath",
"start": 69,
"end": 77,
"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": 78,
"end": 79,
"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": 80,
"end": 84,
"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": "../belt_path",
"start": 85,
"end": 99,
"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": 99,
"end": 100,
"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": 102,
"end": 108,
"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": 109,
"end": 110,
"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": 111,
"end": 120,
"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": 121,
"end": 122,
"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": 123,
"end": 127,
"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": 128,
"end": 142,
"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": 142,
"end": 143,
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 41
}
}
},
{
"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": 147,
"end": 153,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"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": 154,
"end": 159,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 160,
"end": 173,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 26
}
}
},
{
"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": 174,
"end": 181,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Component",
"start": 182,
"end": 191,
"loc": {
"start": {
"line": 5,
"column": 35
},
"end": {
"line": 5,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 192,
"end": 193,
"loc": {
"start": {
"line": 5,
"column": 45
},
"end": {
"line": 5,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 199,
"end": 205,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 206,
"end": 211,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 211,
"end": 212,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 212,
"end": 213,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 214,
"end": 215,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"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": 225,
"end": 231,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Belt",
"start": 232,
"end": 238,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 238,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 245,
"end": 246,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumDirection=} param0.direction The direction of the belt\r\n ",
"start": 254,
"end": 380,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 386,
"end": 397,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 397,
"end": 398,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 398,
"end": 399,
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 400,
"end": 409,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 410,
"end": 411,
"loc": {
"start": {
"line": 15,
"column": 28
},
"end": {
"line": 15,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 412,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 30
},
"end": {
"line": 15,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 425,
"end": 426,
"loc": {
"start": {
"line": 15,
"column": 43
},
"end": {
"line": 15,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 426,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 44
},
"end": {
"line": 15,
"column": 47
}
}
},
{
"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": 48
},
"end": {
"line": 15,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 431,
"end": 432,
"loc": {
"start": {
"line": 15,
"column": 49
},
"end": {
"line": 15,
"column": 50
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 433,
"end": 434,
"loc": {
"start": {
"line": 15,
"column": 51
},
"end": {
"line": 15,
"column": 52
}
}
},
{
"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": 444,
"end": 449,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 449,
"end": 450,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 450,
"end": 451,
"loc": {
"start": {
"line": 16,
"column": 14
},
"end": {
"line": 16,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 451,
"end": 452,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 464,
"end": 468,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 468,
"end": 469,
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 469,
"end": 478,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 479,
"end": 480,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 18,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 481,
"end": 490,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 34
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 490,
"end": 491,
"loc": {
"start": {
"line": 18,
"column": 34
},
"end": {
"line": 18,
"column": 35
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * The path this belt is contained in, not serialized\r\n * @type {BeltPath}\r\n ",
"start": 503,
"end": 611,
"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": 621,
"end": 625,
"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": 625,
"end": 626,
"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": "assignedPath",
"start": 626,
"end": 638,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 639,
"end": 640,
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 27
}
}
},
{
"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": 641,
"end": 645,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 645,
"end": 646,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 652,
"end": 653,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the effective length of this belt in tile space\r\n * @returns {number}\r\n ",
"start": 661,
"end": 763,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 30,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getEffectiveLengthTiles",
"start": 769,
"end": 792,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 792,
"end": 793,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 793,
"end": 794,
"loc": {
"start": {
"line": 31,
"column": 28
},
"end": {
"line": 31,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 795,
"end": 796,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"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": 806,
"end": 812,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 14
}
}
},
{
"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": 813,
"end": 817,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 817,
"end": 818,
"loc": {
"start": {
"line": 32,
"column": 19
},
"end": {
"line": 32,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 818,
"end": 827,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 29
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 828,
"end": 831,
"loc": {
"start": {
"line": 32,
"column": 30
},
"end": {
"line": 32,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 832,
"end": 845,
"loc": {
"start": {
"line": 32,
"column": 34
},
"end": {
"line": 32,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 845,
"end": 846,
"loc": {
"start": {
"line": 32,
"column": 47
},
"end": {
"line": 32,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 846,
"end": 849,
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 32,
"column": 51
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 850,
"end": 851,
"loc": {
"start": {
"line": 32,
"column": 52
},
"end": {
"line": 32,
"column": 53
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 852,
"end": 855,
"loc": {
"start": {
"line": 32,
"column": 54
},
"end": {
"line": 32,
"column": 57
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 856,
"end": 857,
"loc": {
"start": {
"line": 32,
"column": 58
},
"end": {
"line": 32,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 858,
"end": 871,
"loc": {
"start": {
"line": 32,
"column": 60
},
"end": {
"line": 32,
"column": 73
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 871,
"end": 872,
"loc": {
"start": {
"line": 32,
"column": 73
},
"end": {
"line": 32,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "curvedBeltLength",
"start": 872,
"end": 888,
"loc": {
"start": {
"line": 32,
"column": 74
},
"end": {
"line": 32,
"column": 90
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 888,
"end": 889,
"loc": {
"start": {
"line": 32,
"column": 90
},
"end": {
"line": 32,
"column": 91
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 895,
"end": 896,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_acceptor\").ItemAcceptorSlot}\r\n ",
"start": 904,
"end": 1031,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getFakeAcceptorSlot",
"start": 1037,
"end": 1056,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1056,
"end": 1057,
"loc": {
"start": {
"line": 39,
"column": 23
},
"end": {
"line": 39,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1057,
"end": 1058,
"loc": {
"start": {
"line": 39,
"column": 24
},
"end": {
"line": 39,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1059,
"end": 1060,
"loc": {
"start": {
"line": 39,
"column": 26
},
"end": {
"line": 39,
"column": 27
}
}
},
{
"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": 1070,
"end": 1076,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 1077,
"end": 1090,
"loc": {
"start": {
"line": 40,
"column": 15
},
"end": {
"line": 40,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1090,
"end": 1091,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fake_belt_acceptor_slot",
"start": 1091,
"end": 1114,
"loc": {
"start": {
"line": 40,
"column": 29
},
"end": {
"line": 40,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1114,
"end": 1115,
"loc": {
"start": {
"line": 40,
"column": 52
},
"end": {
"line": 40,
"column": 53
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1121,
"end": 1122,
"loc": {
"start": {
"line": 41,
"column": 4
},
"end": {
"line": 41,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns fake acceptor slot used for matching\r\n * @returns {import(\"./item_ejector\").ItemEjectorSlot}\r\n ",
"start": 1130,
"end": 1255,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 46,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getFakeEjectorSlot",
"start": 1261,
"end": 1279,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1279,
"end": 1280,
"loc": {
"start": {
"line": 47,
"column": 22
},
"end": {
"line": 47,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1280,
"end": 1281,
"loc": {
"start": {
"line": 47,
"column": 23
},
"end": {
"line": 47,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1282,
"end": 1283,
"loc": {
"start": {
"line": 47,
"column": 25
},
"end": {
"line": 47,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 1293,
"end": 1299,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1299,
"end": 1300,
"loc": {
"start": {
"line": 48,
"column": 14
},
"end": {
"line": 48,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 1314,
"end": 1327,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1327,
"end": 1328,
"loc": {
"start": {
"line": 49,
"column": 25
},
"end": {
"line": 49,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fake_belt_ejector_slot_by_direction",
"start": 1328,
"end": 1363,
"loc": {
"start": {
"line": 49,
"column": 26
},
"end": {
"line": 49,
"column": 61
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1363,
"end": 1364,
"loc": {
"start": {
"line": 49,
"column": 61
},
"end": {
"line": 49,
"column": 62
}
}
},
{
"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": 1364,
"end": 1368,
"loc": {
"start": {
"line": 49,
"column": 62
},
"end": {
"line": 49,
"column": 66
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1368,
"end": 1369,
"loc": {
"start": {
"line": 49,
"column": 66
},
"end": {
"line": 49,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 1369,
"end": 1378,
"loc": {
"start": {
"line": 49,
"column": 67
},
"end": {
"line": 49,
"column": 76
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1378,
"end": 1379,
"loc": {
"start": {
"line": 49,
"column": 76
},
"end": {
"line": 49,
"column": 77
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1379,
"end": 1380,
"loc": {
"start": {
"line": 49,
"column": 77
},
"end": {
"line": 49,
"column": 78
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid belt direction: ",
"start": 1394,
"end": 1420,
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1420,
"end": 1421,
"loc": {
"start": {
"line": 50,
"column": 38
},
"end": {
"line": 50,
"column": 39
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1435,
"end": 1439,
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1439,
"end": 1440,
"loc": {
"start": {
"line": 51,
"column": 16
},
"end": {
"line": 51,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 1440,
"end": 1449,
"loc": {
"start": {
"line": 51,
"column": 17
},
"end": {
"line": 51,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1459,
"end": 1460,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1460,
"end": 1461,
"loc": {
"start": {
"line": 52,
"column": 9
},
"end": {
"line": 52,
"column": 10
}
}
},
{
"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": 1471,
"end": 1477,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 1478,
"end": 1491,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1491,
"end": 1492,
"loc": {
"start": {
"line": 53,
"column": 28
},
"end": {
"line": 53,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fake_belt_ejector_slot_by_direction",
"start": 1492,
"end": 1527,
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 64
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1527,
"end": 1528,
"loc": {
"start": {
"line": 53,
"column": 64
},
"end": {
"line": 53,
"column": 65
}
}
},
{
"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": 1528,
"end": 1532,
"loc": {
"start": {
"line": 53,
"column": 65
},
"end": {
"line": 53,
"column": 69
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1532,
"end": 1533,
"loc": {
"start": {
"line": 53,
"column": 69
},
"end": {
"line": 53,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 1533,
"end": 1542,
"loc": {
"start": {
"line": 53,
"column": 70
},
"end": {
"line": 53,
"column": 79
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1542,
"end": 1543,
"loc": {
"start": {
"line": 53,
"column": 79
},
"end": {
"line": 53,
"column": 80
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1543,
"end": 1544,
"loc": {
"start": {
"line": 53,
"column": 80
},
"end": {
"line": 53,
"column": 81
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1550,
"end": 1551,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Converts from belt space (0 = start of belt ... 1 = end of belt) to the local\r\n * belt coordinates (-0.5|-0.5 to 0.5|0.5)\r\n * @param {number} progress\r\n * @returns {Vector}\r\n ",
"start": 1559,
"end": 1764,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "transformBeltToLocalSpace",
"start": 1770,
"end": 1795,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1795,
"end": 1796,
"loc": {
"start": {
"line": 62,
"column": 29
},
"end": {
"line": 62,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 1796,
"end": 1804,
"loc": {
"start": {
"line": 62,
"column": 30
},
"end": {
"line": 62,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1804,
"end": 1805,
"loc": {
"start": {
"line": 62,
"column": 38
},
"end": {
"line": 62,
"column": 39
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 62,
"column": 40
},
"end": {
"line": 62,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 1817,
"end": 1823,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1823,
"end": 1824,
"loc": {
"start": {
"line": 63,
"column": 14
},
"end": {
"line": 63,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 1824,
"end": 1832,
"loc": {
"start": {
"line": 63,
"column": 15
},
"end": {
"line": 63,
"column": 23
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">=",
"start": 1833,
"end": 1835,
"loc": {
"start": {
"line": 63,
"column": 24
},
"end": {
"line": 63,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1836,
"end": 1839,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1839,
"end": 1840,
"loc": {
"start": {
"line": 63,
"column": 30
},
"end": {
"line": 63,
"column": 31
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid progress ( < 0): ",
"start": 1841,
"end": 1868,
"loc": {
"start": {
"line": 63,
"column": 32
},
"end": {
"line": 63,
"column": 59
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1869,
"end": 1870,
"loc": {
"start": {
"line": 63,
"column": 60
},
"end": {
"line": 63,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 1871,
"end": 1879,
"loc": {
"start": {
"line": 63,
"column": 62
},
"end": {
"line": 63,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1879,
"end": 1880,
"loc": {
"start": {
"line": 63,
"column": 70
},
"end": {
"line": 63,
"column": 71
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1880,
"end": 1881,
"loc": {
"start": {
"line": 63,
"column": 71
},
"end": {
"line": 63,
"column": 72
}
}
},
{
"type": {
"label": "switch",
"keyword": "switch",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "switch",
"start": 1891,
"end": 1897,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1898,
"end": 1899,
"loc": {
"start": {
"line": 64,
"column": 15
},
"end": {
"line": 64,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1899,
"end": 1903,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1903,
"end": 1904,
"loc": {
"start": {
"line": 64,
"column": 20
},
"end": {
"line": 64,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 1904,
"end": 1913,
"loc": {
"start": {
"line": 64,
"column": 21
},
"end": {
"line": 64,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1913,
"end": 1914,
"loc": {
"start": {
"line": 64,
"column": 30
},
"end": {
"line": 64,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1915,
"end": 1916,
"loc": {
"start": {
"line": 64,
"column": 32
},
"end": {
"line": 64,
"column": 33
}
}
},
{
"type": {
"label": "case",
"keyword": "case",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "case",
"start": 1930,
"end": 1934,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 1935,
"end": 1948,
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1948,
"end": 1949,
"loc": {
"start": {
"line": 65,
"column": 30
},
"end": {
"line": 65,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 1949,
"end": 1952,
"loc": {
"start": {
"line": 65,
"column": 31
},
"end": {
"line": 65,
"column": 34
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1952,
"end": 1953,
"loc": {
"start": {
"line": 65,
"column": 34
},
"end": {
"line": 65,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 1971,
"end": 1977,
"loc": {
"start": {
"line": 66,
"column": 16
},
"end": {
"line": 66,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1977,
"end": 1978,
"loc": {
"start": {
"line": 66,
"column": 22
},
"end": {
"line": 66,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 1978,
"end": 1986,
"loc": {
"start": {
"line": 66,
"column": 23
},
"end": {
"line": 66,
"column": 31
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 1987,
"end": 1989,
"loc": {
"start": {
"line": 66,
"column": 32
},
"end": {
"line": 66,
"column": 34
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1.02,
"start": 1990,
"end": 1994,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1994,
"end": 1995,
"loc": {
"start": {
"line": 66,
"column": 39
},
"end": {
"line": 66,
"column": 40
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid progress: ",
"start": 1996,
"end": 2016,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 61
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2017,
"end": 2018,
"loc": {
"start": {
"line": 66,
"column": 62
},
"end": {
"line": 66,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2019,
"end": 2027,
"loc": {
"start": {
"line": 66,
"column": 64
},
"end": {
"line": 66,
"column": 72
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2027,
"end": 2028,
"loc": {
"start": {
"line": 66,
"column": 72
},
"end": {
"line": 66,
"column": 73
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2028,
"end": 2029,
"loc": {
"start": {
"line": 66,
"column": 73
},
"end": {
"line": 66,
"column": 74
}
}
},
{
"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": 2047,
"end": 2053,
"loc": {
"start": {
"line": 67,
"column": 16
},
"end": {
"line": 67,
"column": 22
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 2054,
"end": 2057,
"loc": {
"start": {
"line": 67,
"column": 23
},
"end": {
"line": 67,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 2058,
"end": 2064,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2064,
"end": 2065,
"loc": {
"start": {
"line": 67,
"column": 33
},
"end": {
"line": 67,
"column": 34
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2065,
"end": 2066,
"loc": {
"start": {
"line": 67,
"column": 34
},
"end": {
"line": 67,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2066,
"end": 2067,
"loc": {
"start": {
"line": 67,
"column": 35
},
"end": {
"line": 67,
"column": 36
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2068,
"end": 2071,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 40
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2072,
"end": 2073,
"loc": {
"start": {
"line": 67,
"column": 41
},
"end": {
"line": 67,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2074,
"end": 2082,
"loc": {
"start": {
"line": 67,
"column": 43
},
"end": {
"line": 67,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2082,
"end": 2083,
"loc": {
"start": {
"line": 67,
"column": 51
},
"end": {
"line": 67,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2083,
"end": 2084,
"loc": {
"start": {
"line": 67,
"column": 52
},
"end": {
"line": 67,
"column": 53
}
}
},
{
"type": {
"label": "case",
"keyword": "case",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "case",
"start": 2100,
"end": 2104,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 2105,
"end": 2118,
"loc": {
"start": {
"line": 69,
"column": 17
},
"end": {
"line": 69,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2118,
"end": 2119,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 2119,
"end": 2124,
"loc": {
"start": {
"line": 69,
"column": 31
},
"end": {
"line": 69,
"column": 36
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2124,
"end": 2125,
"loc": {
"start": {
"line": 69,
"column": 36
},
"end": {
"line": 69,
"column": 37
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2143,
"end": 2144,
"loc": {
"start": {
"line": 70,
"column": 16
},
"end": {
"line": 70,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2166,
"end": 2172,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2172,
"end": 2173,
"loc": {
"start": {
"line": 71,
"column": 26
},
"end": {
"line": 71,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2173,
"end": 2181,
"loc": {
"start": {
"line": 71,
"column": 27
},
"end": {
"line": 71,
"column": 35
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 2182,
"end": 2184,
"loc": {
"start": {
"line": 71,
"column": 36
},
"end": {
"line": 71,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 2185,
"end": 2198,
"loc": {
"start": {
"line": 71,
"column": 39
},
"end": {
"line": 71,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2198,
"end": 2199,
"loc": {
"start": {
"line": 71,
"column": 52
},
"end": {
"line": 71,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "curvedBeltLength",
"start": 2199,
"end": 2215,
"loc": {
"start": {
"line": 71,
"column": 53
},
"end": {
"line": 71,
"column": 69
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2216,
"end": 2217,
"loc": {
"start": {
"line": 71,
"column": 70
},
"end": {
"line": 71,
"column": 71
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.02,
"start": 2218,
"end": 2222,
"loc": {
"start": {
"line": 71,
"column": 72
},
"end": {
"line": 71,
"column": 76
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2222,
"end": 2223,
"loc": {
"start": {
"line": 71,
"column": 76
},
"end": {
"line": 71,
"column": 77
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid progress 2: ",
"start": 2224,
"end": 2246,
"loc": {
"start": {
"line": 71,
"column": 78
},
"end": {
"line": 71,
"column": 100
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2247,
"end": 2248,
"loc": {
"start": {
"line": 71,
"column": 101
},
"end": {
"line": 71,
"column": 102
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2249,
"end": 2257,
"loc": {
"start": {
"line": 71,
"column": 103
},
"end": {
"line": 71,
"column": 111
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2257,
"end": 2258,
"loc": {
"start": {
"line": 71,
"column": 111
},
"end": {
"line": 71,
"column": 112
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2258,
"end": 2259,
"loc": {
"start": {
"line": 71,
"column": 112
},
"end": {
"line": 71,
"column": 113
}
}
},
{
"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": 2281,
"end": 2286,
"loc": {
"start": {
"line": 72,
"column": 20
},
"end": {
"line": 72,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arcProgress",
"start": 2287,
"end": 2298,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 37
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2299,
"end": 2300,
"loc": {
"start": {
"line": 72,
"column": 38
},
"end": {
"line": 72,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2301,
"end": 2302,
"loc": {
"start": {
"line": 72,
"column": 40
},
"end": {
"line": 72,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2302,
"end": 2310,
"loc": {
"start": {
"line": 72,
"column": 41
},
"end": {
"line": 72,
"column": 49
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2311,
"end": 2312,
"loc": {
"start": {
"line": 72,
"column": 50
},
"end": {
"line": 72,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 2313,
"end": 2326,
"loc": {
"start": {
"line": 72,
"column": 52
},
"end": {
"line": 72,
"column": 65
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2326,
"end": 2327,
"loc": {
"start": {
"line": 72,
"column": 65
},
"end": {
"line": 72,
"column": 66
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "curvedBeltLength",
"start": 2327,
"end": 2343,
"loc": {
"start": {
"line": 72,
"column": 66
},
"end": {
"line": 72,
"column": 82
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2343,
"end": 2344,
"loc": {
"start": {
"line": 72,
"column": 82
},
"end": {
"line": 72,
"column": 83
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2345,
"end": 2346,
"loc": {
"start": {
"line": 72,
"column": 84
},
"end": {
"line": 72,
"column": 85
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2347,
"end": 2350,
"loc": {
"start": {
"line": 72,
"column": 86
},
"end": {
"line": 72,
"column": 89
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2351,
"end": 2352,
"loc": {
"start": {
"line": 72,
"column": 90
},
"end": {
"line": 72,
"column": 91
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2353,
"end": 2357,
"loc": {
"start": {
"line": 72,
"column": 92
},
"end": {
"line": 72,
"column": 96
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2357,
"end": 2358,
"loc": {
"start": {
"line": 72,
"column": 96
},
"end": {
"line": 72,
"column": 97
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PI",
"start": 2358,
"end": 2360,
"loc": {
"start": {
"line": 72,
"column": 97
},
"end": {
"line": 72,
"column": 99
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2360,
"end": 2361,
"loc": {
"start": {
"line": 72,
"column": 99
},
"end": {
"line": 72,
"column": 100
}
}
},
{
"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": 2383,
"end": 2389,
"loc": {
"start": {
"line": 73,
"column": 20
},
"end": {
"line": 73,
"column": 26
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 2390,
"end": 2393,
"loc": {
"start": {
"line": 73,
"column": 27
},
"end": {
"line": 73,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 2394,
"end": 2400,
"loc": {
"start": {
"line": 73,
"column": 31
},
"end": {
"line": 73,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2400,
"end": 2401,
"loc": {
"start": {
"line": 73,
"column": 37
},
"end": {
"line": 73,
"column": 38
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2401,
"end": 2404,
"loc": {
"start": {
"line": 73,
"column": 38
},
"end": {
"line": 73,
"column": 41
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2405,
"end": 2406,
"loc": {
"start": {
"line": 73,
"column": 42
},
"end": {
"line": 73,
"column": 43
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2407,
"end": 2410,
"loc": {
"start": {
"line": 73,
"column": 44
},
"end": {
"line": 73,
"column": 47
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2411,
"end": 2412,
"loc": {
"start": {
"line": 73,
"column": 48
},
"end": {
"line": 73,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2413,
"end": 2417,
"loc": {
"start": {
"line": 73,
"column": 50
},
"end": {
"line": 73,
"column": 54
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2417,
"end": 2418,
"loc": {
"start": {
"line": 73,
"column": 54
},
"end": {
"line": 73,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cos",
"start": 2418,
"end": 2421,
"loc": {
"start": {
"line": 73,
"column": 55
},
"end": {
"line": 73,
"column": 58
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2421,
"end": 2422,
"loc": {
"start": {
"line": 73,
"column": 58
},
"end": {
"line": 73,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arcProgress",
"start": 2422,
"end": 2433,
"loc": {
"start": {
"line": 73,
"column": 59
},
"end": {
"line": 73,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2433,
"end": 2434,
"loc": {
"start": {
"line": 73,
"column": 70
},
"end": {
"line": 73,
"column": 71
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2434,
"end": 2435,
"loc": {
"start": {
"line": 73,
"column": 71
},
"end": {
"line": 73,
"column": 72
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2436,
"end": 2439,
"loc": {
"start": {
"line": 73,
"column": 73
},
"end": {
"line": 73,
"column": 76
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2440,
"end": 2441,
"loc": {
"start": {
"line": 73,
"column": 77
},
"end": {
"line": 73,
"column": 78
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2442,
"end": 2445,
"loc": {
"start": {
"line": 73,
"column": 79
},
"end": {
"line": 73,
"column": 82
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2446,
"end": 2447,
"loc": {
"start": {
"line": 73,
"column": 83
},
"end": {
"line": 73,
"column": 84
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2448,
"end": 2452,
"loc": {
"start": {
"line": 73,
"column": 85
},
"end": {
"line": 73,
"column": 89
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2452,
"end": 2453,
"loc": {
"start": {
"line": 73,
"column": 89
},
"end": {
"line": 73,
"column": 90
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sin",
"start": 2453,
"end": 2456,
"loc": {
"start": {
"line": 73,
"column": 90
},
"end": {
"line": 73,
"column": 93
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2456,
"end": 2457,
"loc": {
"start": {
"line": 73,
"column": 93
},
"end": {
"line": 73,
"column": 94
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arcProgress",
"start": 2457,
"end": 2468,
"loc": {
"start": {
"line": 73,
"column": 94
},
"end": {
"line": 73,
"column": 105
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2468,
"end": 2469,
"loc": {
"start": {
"line": 73,
"column": 105
},
"end": {
"line": 73,
"column": 106
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2469,
"end": 2470,
"loc": {
"start": {
"line": 73,
"column": 106
},
"end": {
"line": 73,
"column": 107
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2470,
"end": 2471,
"loc": {
"start": {
"line": 73,
"column": 107
},
"end": {
"line": 73,
"column": 108
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2489,
"end": 2490,
"loc": {
"start": {
"line": 74,
"column": 16
},
"end": {
"line": 74,
"column": 17
}
}
},
{
"type": {
"label": "case",
"keyword": "case",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "case",
"start": 2504,
"end": 2508,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 2509,
"end": 2522,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2522,
"end": 2523,
"loc": {
"start": {
"line": 75,
"column": 30
},
"end": {
"line": 75,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2523,
"end": 2527,
"loc": {
"start": {
"line": 75,
"column": 31
},
"end": {
"line": 75,
"column": 35
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2527,
"end": 2528,
"loc": {
"start": {
"line": 75,
"column": 35
},
"end": {
"line": 75,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2546,
"end": 2547,
"loc": {
"start": {
"line": 76,
"column": 16
},
"end": {
"line": 76,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2569,
"end": 2575,
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2575,
"end": 2576,
"loc": {
"start": {
"line": 77,
"column": 26
},
"end": {
"line": 77,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2576,
"end": 2584,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 35
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 2585,
"end": 2587,
"loc": {
"start": {
"line": 77,
"column": 36
},
"end": {
"line": 77,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 2588,
"end": 2601,
"loc": {
"start": {
"line": 77,
"column": 39
},
"end": {
"line": 77,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2601,
"end": 2602,
"loc": {
"start": {
"line": 77,
"column": 52
},
"end": {
"line": 77,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "curvedBeltLength",
"start": 2602,
"end": 2618,
"loc": {
"start": {
"line": 77,
"column": 53
},
"end": {
"line": 77,
"column": 69
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2619,
"end": 2620,
"loc": {
"start": {
"line": 77,
"column": 70
},
"end": {
"line": 77,
"column": 71
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.02,
"start": 2621,
"end": 2625,
"loc": {
"start": {
"line": 77,
"column": 72
},
"end": {
"line": 77,
"column": 76
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2625,
"end": 2626,
"loc": {
"start": {
"line": 77,
"column": 76
},
"end": {
"line": 77,
"column": 77
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid progress 3: ",
"start": 2627,
"end": 2649,
"loc": {
"start": {
"line": 77,
"column": 78
},
"end": {
"line": 77,
"column": 100
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2650,
"end": 2651,
"loc": {
"start": {
"line": 77,
"column": 101
},
"end": {
"line": 77,
"column": 102
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2652,
"end": 2660,
"loc": {
"start": {
"line": 77,
"column": 103
},
"end": {
"line": 77,
"column": 111
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2660,
"end": 2661,
"loc": {
"start": {
"line": 77,
"column": 111
},
"end": {
"line": 77,
"column": 112
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2661,
"end": 2662,
"loc": {
"start": {
"line": 77,
"column": 112
},
"end": {
"line": 77,
"column": 113
}
}
},
{
"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": 2684,
"end": 2689,
"loc": {
"start": {
"line": 78,
"column": 20
},
"end": {
"line": 78,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arcProgress",
"start": 2690,
"end": 2701,
"loc": {
"start": {
"line": 78,
"column": 26
},
"end": {
"line": 78,
"column": 37
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2702,
"end": 2703,
"loc": {
"start": {
"line": 78,
"column": 38
},
"end": {
"line": 78,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2704,
"end": 2705,
"loc": {
"start": {
"line": 78,
"column": 40
},
"end": {
"line": 78,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2705,
"end": 2713,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 49
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2714,
"end": 2715,
"loc": {
"start": {
"line": 78,
"column": 50
},
"end": {
"line": 78,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 2716,
"end": 2729,
"loc": {
"start": {
"line": 78,
"column": 52
},
"end": {
"line": 78,
"column": 65
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2729,
"end": 2730,
"loc": {
"start": {
"line": 78,
"column": 65
},
"end": {
"line": 78,
"column": 66
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "curvedBeltLength",
"start": 2730,
"end": 2746,
"loc": {
"start": {
"line": 78,
"column": 66
},
"end": {
"line": 78,
"column": 82
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2746,
"end": 2747,
"loc": {
"start": {
"line": 78,
"column": 82
},
"end": {
"line": 78,
"column": 83
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2748,
"end": 2749,
"loc": {
"start": {
"line": 78,
"column": 84
},
"end": {
"line": 78,
"column": 85
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2750,
"end": 2753,
"loc": {
"start": {
"line": 78,
"column": 86
},
"end": {
"line": 78,
"column": 89
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2754,
"end": 2755,
"loc": {
"start": {
"line": 78,
"column": 90
},
"end": {
"line": 78,
"column": 91
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2756,
"end": 2760,
"loc": {
"start": {
"line": 78,
"column": 92
},
"end": {
"line": 78,
"column": 96
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2760,
"end": 2761,
"loc": {
"start": {
"line": 78,
"column": 96
},
"end": {
"line": 78,
"column": 97
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PI",
"start": 2761,
"end": 2763,
"loc": {
"start": {
"line": 78,
"column": 97
},
"end": {
"line": 78,
"column": 99
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2763,
"end": 2764,
"loc": {
"start": {
"line": 78,
"column": 99
},
"end": {
"line": 78,
"column": 100
}
}
},
{
"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": 2786,
"end": 2792,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 26
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 2793,
"end": 2796,
"loc": {
"start": {
"line": 79,
"column": 27
},
"end": {
"line": 79,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 2797,
"end": 2803,
"loc": {
"start": {
"line": 79,
"column": 31
},
"end": {
"line": 79,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2803,
"end": 2804,
"loc": {
"start": {
"line": 79,
"column": 37
},
"end": {
"line": 79,
"column": 38
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2804,
"end": 2805,
"loc": {
"start": {
"line": 79,
"column": 38
},
"end": {
"line": 79,
"column": 39
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2805,
"end": 2808,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 42
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2809,
"end": 2810,
"loc": {
"start": {
"line": 79,
"column": 43
},
"end": {
"line": 79,
"column": 44
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2811,
"end": 2814,
"loc": {
"start": {
"line": 79,
"column": 45
},
"end": {
"line": 79,
"column": 48
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2815,
"end": 2816,
"loc": {
"start": {
"line": 79,
"column": 49
},
"end": {
"line": 79,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2817,
"end": 2821,
"loc": {
"start": {
"line": 79,
"column": 51
},
"end": {
"line": 79,
"column": 55
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2821,
"end": 2822,
"loc": {
"start": {
"line": 79,
"column": 55
},
"end": {
"line": 79,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cos",
"start": 2822,
"end": 2825,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2825,
"end": 2826,
"loc": {
"start": {
"line": 79,
"column": 59
},
"end": {
"line": 79,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arcProgress",
"start": 2826,
"end": 2837,
"loc": {
"start": {
"line": 79,
"column": 60
},
"end": {
"line": 79,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2837,
"end": 2838,
"loc": {
"start": {
"line": 79,
"column": 71
},
"end": {
"line": 79,
"column": 72
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2838,
"end": 2839,
"loc": {
"start": {
"line": 79,
"column": 72
},
"end": {
"line": 79,
"column": 73
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2840,
"end": 2843,
"loc": {
"start": {
"line": 79,
"column": 74
},
"end": {
"line": 79,
"column": 77
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2844,
"end": 2845,
"loc": {
"start": {
"line": 79,
"column": 78
},
"end": {
"line": 79,
"column": 79
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.5,
"start": 2846,
"end": 2849,
"loc": {
"start": {
"line": 79,
"column": 80
},
"end": {
"line": 79,
"column": 83
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2850,
"end": 2851,
"loc": {
"start": {
"line": 79,
"column": 84
},
"end": {
"line": 79,
"column": 85
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2852,
"end": 2856,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 90
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2856,
"end": 2857,
"loc": {
"start": {
"line": 79,
"column": 90
},
"end": {
"line": 79,
"column": 91
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sin",
"start": 2857,
"end": 2860,
"loc": {
"start": {
"line": 79,
"column": 91
},
"end": {
"line": 79,
"column": 94
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2860,
"end": 2861,
"loc": {
"start": {
"line": 79,
"column": 94
},
"end": {
"line": 79,
"column": 95
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arcProgress",
"start": 2861,
"end": 2872,
"loc": {
"start": {
"line": 79,
"column": 95
},
"end": {
"line": 79,
"column": 106
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2872,
"end": 2873,
"loc": {
"start": {
"line": 79,
"column": 106
},
"end": {
"line": 79,
"column": 107
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2873,
"end": 2874,
"loc": {
"start": {
"line": 79,
"column": 107
},
"end": {
"line": 79,
"column": 108
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2874,
"end": 2875,
"loc": {
"start": {
"line": 79,
"column": 108
},
"end": {
"line": 79,
"column": 109
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2893,
"end": 2894,
"loc": {
"start": {
"line": 80,
"column": 16
},
"end": {
"line": 80,
"column": 17
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 2908,
"end": 2915,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 81,
"column": 19
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2915,
"end": 2916,
"loc": {
"start": {
"line": 81,
"column": 19
},
"end": {
"line": 81,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assertAlways",
"start": 2934,
"end": 2946,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2946,
"end": 2947,
"loc": {
"start": {
"line": 82,
"column": 28
},
"end": {
"line": 82,
"column": 29
}
}
},
{
"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": 2947,
"end": 2952,
"loc": {
"start": {
"line": 82,
"column": 29
},
"end": {
"line": 82,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2952,
"end": 2953,
"loc": {
"start": {
"line": 82,
"column": 34
},
"end": {
"line": 82,
"column": 35
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid belt direction: ",
"start": 2954,
"end": 2980,
"loc": {
"start": {
"line": 82,
"column": 36
},
"end": {
"line": 82,
"column": 62
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2981,
"end": 2982,
"loc": {
"start": {
"line": 82,
"column": 63
},
"end": {
"line": 82,
"column": 64
}
}
},
{
"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": 2983,
"end": 2987,
"loc": {
"start": {
"line": 82,
"column": 65
},
"end": {
"line": 82,
"column": 69
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2987,
"end": 2988,
"loc": {
"start": {
"line": 82,
"column": 69
},
"end": {
"line": 82,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 2988,
"end": 2997,
"loc": {
"start": {
"line": 82,
"column": 70
},
"end": {
"line": 82,
"column": 79
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2997,
"end": 2998,
"loc": {
"start": {
"line": 82,
"column": 79
},
"end": {
"line": 82,
"column": 80
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2998,
"end": 2999,
"loc": {
"start": {
"line": 82,
"column": 80
},
"end": {
"line": 82,
"column": 81
}
}
},
{
"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": 3017,
"end": 3023,
"loc": {
"start": {
"line": 83,
"column": 16
},
"end": {
"line": 83,
"column": 22
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 3024,
"end": 3027,
"loc": {
"start": {
"line": 83,
"column": 23
},
"end": {
"line": 83,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 3028,
"end": 3034,
"loc": {
"start": {
"line": 83,
"column": 27
},
"end": {
"line": 83,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3034,
"end": 3035,
"loc": {
"start": {
"line": 83,
"column": 33
},
"end": {
"line": 83,
"column": 34
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3035,
"end": 3036,
"loc": {
"start": {
"line": 83,
"column": 34
},
"end": {
"line": 83,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3036,
"end": 3037,
"loc": {
"start": {
"line": 83,
"column": 35
},
"end": {
"line": 83,
"column": 36
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3038,
"end": 3039,
"loc": {
"start": {
"line": 83,
"column": 37
},
"end": {
"line": 83,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3039,
"end": 3040,
"loc": {
"start": {
"line": 83,
"column": 38
},
"end": {
"line": 83,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3040,
"end": 3041,
"loc": {
"start": {
"line": 83,
"column": 39
},
"end": {
"line": 83,
"column": 40
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3051,
"end": 3052,
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3058,
"end": 3059,
"loc": {
"start": {
"line": 85,
"column": 4
},
"end": {
"line": 85,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3061,
"end": 3062,
"loc": {
"start": {
"line": 86,
"column": 0
},
"end": {
"line": 86,
"column": 1
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 3066,
"end": 3079,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3079,
"end": 3080,
"loc": {
"start": {
"line": 88,
"column": 13
},
"end": {
"line": 88,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "curvedBeltLength",
"start": 3080,
"end": 3096,
"loc": {
"start": {
"line": 88,
"column": 14
},
"end": {
"line": 88,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3097,
"end": 3098,
"loc": {
"start": {
"line": 88,
"column": 31
},
"end": {
"line": 88,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": " Math.PI / 4 ",
"start": 3099,
"end": 3116,
"loc": {
"start": {
"line": 88,
"column": 33
},
"end": {
"line": 88,
"column": 50
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.78,
"start": 3117,
"end": 3121,
"loc": {
"start": {
"line": 88,
"column": 51
},
"end": {
"line": 88,
"column": 55
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3121,
"end": 3122,
"loc": {
"start": {
"line": 88,
"column": 55
},
"end": {
"line": 88,
"column": 56
}
}
},
{
"type": "CommentBlock",
"value": "* @type {import(\"./item_acceptor\").ItemAcceptorSlot} ",
"start": 3126,
"end": 3183,
"loc": {
"start": {
"line": 90,
"column": 0
},
"end": {
"line": 90,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 3185,
"end": 3198,
"loc": {
"start": {
"line": 91,
"column": 0
},
"end": {
"line": 91,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3198,
"end": 3199,
"loc": {
"start": {
"line": 91,
"column": 13
},
"end": {
"line": 91,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fake_belt_acceptor_slot",
"start": 3199,
"end": 3222,
"loc": {
"start": {
"line": 91,
"column": 14
},
"end": {
"line": 91,
"column": 37
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3223,
"end": 3224,
"loc": {
"start": {
"line": 91,
"column": 38
},
"end": {
"line": 91,
"column": 39
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3225,
"end": 3226,
"loc": {
"start": {
"line": 91,
"column": 40
},
"end": {
"line": 91,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 3232,
"end": 3235,
"loc": {
"start": {
"line": 92,
"column": 4
},
"end": {
"line": 92,
"column": 7
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3235,
"end": 3236,
"loc": {
"start": {
"line": 92,
"column": 7
},
"end": {
"line": 92,
"column": 8
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 3237,
"end": 3240,
"loc": {
"start": {
"line": 92,
"column": 9
},
"end": {
"line": 92,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 3241,
"end": 3247,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3247,
"end": 3248,
"loc": {
"start": {
"line": 92,
"column": 19
},
"end": {
"line": 92,
"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": 3248,
"end": 3249,
"loc": {
"start": {
"line": 92,
"column": 20
},
"end": {
"line": 92,
"column": 21
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3249,
"end": 3250,
"loc": {
"start": {
"line": 92,
"column": 21
},
"end": {
"line": 92,
"column": 22
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3251,
"end": 3252,
"loc": {
"start": {
"line": 92,
"column": 23
},
"end": {
"line": 92,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3252,
"end": 3253,
"loc": {
"start": {
"line": 92,
"column": 24
},
"end": {
"line": 92,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3253,
"end": 3254,
"loc": {
"start": {
"line": 92,
"column": 25
},
"end": {
"line": 92,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "directions",
"start": 3260,
"end": 3270,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 14
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3270,
"end": 3271,
"loc": {
"start": {
"line": 93,
"column": 14
},
"end": {
"line": 93,
"column": 15
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3272,
"end": 3273,
"loc": {
"start": {
"line": 93,
"column": 16
},
"end": {
"line": 93,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3273,
"end": 3286,
"loc": {
"start": {
"line": 93,
"column": 17
},
"end": {
"line": 93,
"column": 30
}
}
},
{
"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": 93,
"column": 30
},
"end": {
"line": 93,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 3287,
"end": 3293,
"loc": {
"start": {
"line": 93,
"column": 31
},
"end": {
"line": 93,
"column": 37
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3293,
"end": 3294,
"loc": {
"start": {
"line": 93,
"column": 37
},
"end": {
"line": 93,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3294,
"end": 3295,
"loc": {
"start": {
"line": 93,
"column": 38
},
"end": {
"line": 93,
"column": 39
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3297,
"end": 3298,
"loc": {
"start": {
"line": 94,
"column": 0
},
"end": {
"line": 94,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3298,
"end": 3299,
"loc": {
"start": {
"line": 94,
"column": 1
},
"end": {
"line": 94,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Object<enumDirection, import(\"./item_ejector\").ItemEjectorSlot>} ",
"start": 3303,
"end": 3381,
"loc": {
"start": {
"line": 96,
"column": 0
},
"end": {
"line": 96,
"column": 78
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BeltComponent",
"start": 3383,
"end": 3396,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3396,
"end": 3397,
"loc": {
"start": {
"line": 97,
"column": 13
},
"end": {
"line": 97,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fake_belt_ejector_slot_by_direction",
"start": 3397,
"end": 3432,
"loc": {
"start": {
"line": 97,
"column": 14
},
"end": {
"line": 97,
"column": 49
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3433,
"end": 3434,
"loc": {
"start": {
"line": 97,
"column": 50
},
"end": {
"line": 97,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3435,
"end": 3436,
"loc": {
"start": {
"line": 97,
"column": 52
},
"end": {
"line": 97,
"column": 53
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3442,
"end": 3443,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3443,
"end": 3456,
"loc": {
"start": {
"line": 98,
"column": 5
},
"end": {
"line": 98,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3456,
"end": 3457,
"loc": {
"start": {
"line": 98,
"column": 18
},
"end": {
"line": 98,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 3457,
"end": 3460,
"loc": {
"start": {
"line": 98,
"column": 19
},
"end": {
"line": 98,
"column": 22
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3460,
"end": 3461,
"loc": {
"start": {
"line": 98,
"column": 22
},
"end": {
"line": 98,
"column": 23
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3461,
"end": 3462,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3463,
"end": 3464,
"loc": {
"start": {
"line": 98,
"column": 25
},
"end": {
"line": 98,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 3474,
"end": 3477,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 11
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3477,
"end": 3478,
"loc": {
"start": {
"line": 99,
"column": 11
},
"end": {
"line": 99,
"column": 12
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 3479,
"end": 3482,
"loc": {
"start": {
"line": 99,
"column": 13
},
"end": {
"line": 99,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 3483,
"end": 3489,
"loc": {
"start": {
"line": 99,
"column": 17
},
"end": {
"line": 99,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3489,
"end": 3490,
"loc": {
"start": {
"line": 99,
"column": 23
},
"end": {
"line": 99,
"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": 3490,
"end": 3491,
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 99,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3491,
"end": 3492,
"loc": {
"start": {
"line": 99,
"column": 25
},
"end": {
"line": 99,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3493,
"end": 3494,
"loc": {
"start": {
"line": 99,
"column": 27
},
"end": {
"line": 99,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3494,
"end": 3495,
"loc": {
"start": {
"line": 99,
"column": 28
},
"end": {
"line": 99,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3495,
"end": 3496,
"loc": {
"start": {
"line": 99,
"column": 29
},
"end": {
"line": 99,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 3506,
"end": 3515,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 17
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3515,
"end": 3516,
"loc": {
"start": {
"line": 100,
"column": 17
},
"end": {
"line": 100,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3517,
"end": 3530,
"loc": {
"start": {
"line": 100,
"column": 19
},
"end": {
"line": 100,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3530,
"end": 3531,
"loc": {
"start": {
"line": 100,
"column": 32
},
"end": {
"line": 100,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 3531,
"end": 3534,
"loc": {
"start": {
"line": 100,
"column": 33
},
"end": {
"line": 100,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3534,
"end": 3535,
"loc": {
"start": {
"line": 100,
"column": 36
},
"end": {
"line": 100,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3545,
"end": 3549,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 12
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3549,
"end": 3550,
"loc": {
"start": {
"line": 101,
"column": 12
},
"end": {
"line": 101,
"column": 13
}
}
},
{
"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": 3551,
"end": 3555,
"loc": {
"start": {
"line": 101,
"column": 14
},
"end": {
"line": 101,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3555,
"end": 3556,
"loc": {
"start": {
"line": 101,
"column": 18
},
"end": {
"line": 101,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 3566,
"end": 3574,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3574,
"end": 3575,
"loc": {
"start": {
"line": 102,
"column": 16
},
"end": {
"line": 102,
"column": 17
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3576,
"end": 3577,
"loc": {
"start": {
"line": 102,
"column": 18
},
"end": {
"line": 102,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3577,
"end": 3578,
"loc": {
"start": {
"line": 102,
"column": 19
},
"end": {
"line": 102,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3584,
"end": 3585,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 103,
"column": 5
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3585,
"end": 3586,
"loc": {
"start": {
"line": 103,
"column": 5
},
"end": {
"line": 103,
"column": 6
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3594,
"end": 3595,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3595,
"end": 3608,
"loc": {
"start": {
"line": 105,
"column": 5
},
"end": {
"line": 105,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3608,
"end": 3609,
"loc": {
"start": {
"line": 105,
"column": 18
},
"end": {
"line": 105,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3609,
"end": 3614,
"loc": {
"start": {
"line": 105,
"column": 19
},
"end": {
"line": 105,
"column": 24
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3614,
"end": 3615,
"loc": {
"start": {
"line": 105,
"column": 24
},
"end": {
"line": 105,
"column": 25
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3615,
"end": 3616,
"loc": {
"start": {
"line": 105,
"column": 25
},
"end": {
"line": 105,
"column": 26
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3617,
"end": 3618,
"loc": {
"start": {
"line": 105,
"column": 27
},
"end": {
"line": 105,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 3628,
"end": 3631,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 11
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3631,
"end": 3632,
"loc": {
"start": {
"line": 106,
"column": 11
},
"end": {
"line": 106,
"column": 12
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 3633,
"end": 3636,
"loc": {
"start": {
"line": 106,
"column": 13
},
"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": "Vector",
"start": 3637,
"end": 3643,
"loc": {
"start": {
"line": 106,
"column": 17
},
"end": {
"line": 106,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3643,
"end": 3644,
"loc": {
"start": {
"line": 106,
"column": 23
},
"end": {
"line": 106,
"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": 3644,
"end": 3645,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3645,
"end": 3646,
"loc": {
"start": {
"line": 106,
"column": 25
},
"end": {
"line": 106,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3647,
"end": 3648,
"loc": {
"start": {
"line": 106,
"column": 27
},
"end": {
"line": 106,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3648,
"end": 3649,
"loc": {
"start": {
"line": 106,
"column": 28
},
"end": {
"line": 106,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3649,
"end": 3650,
"loc": {
"start": {
"line": 106,
"column": 29
},
"end": {
"line": 106,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 3660,
"end": 3669,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 17
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3669,
"end": 3670,
"loc": {
"start": {
"line": 107,
"column": 17
},
"end": {
"line": 107,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3671,
"end": 3684,
"loc": {
"start": {
"line": 107,
"column": 19
},
"end": {
"line": 107,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3684,
"end": 3685,
"loc": {
"start": {
"line": 107,
"column": 32
},
"end": {
"line": 107,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3685,
"end": 3690,
"loc": {
"start": {
"line": 107,
"column": 33
},
"end": {
"line": 107,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3690,
"end": 3691,
"loc": {
"start": {
"line": 107,
"column": 38
},
"end": {
"line": 107,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3701,
"end": 3705,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 12
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3705,
"end": 3706,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 13
}
}
},
{
"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": 3707,
"end": 3711,
"loc": {
"start": {
"line": 108,
"column": 14
},
"end": {
"line": 108,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3711,
"end": 3712,
"loc": {
"start": {
"line": 108,
"column": 18
},
"end": {
"line": 108,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 3722,
"end": 3730,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3730,
"end": 3731,
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 17
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3732,
"end": 3733,
"loc": {
"start": {
"line": 109,
"column": 18
},
"end": {
"line": 109,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3733,
"end": 3734,
"loc": {
"start": {
"line": 109,
"column": 19
},
"end": {
"line": 109,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3740,
"end": 3741,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 5
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3741,
"end": 3742,
"loc": {
"start": {
"line": 110,
"column": 5
},
"end": {
"line": 110,
"column": 6
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3750,
"end": 3751,
"loc": {
"start": {
"line": 112,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3751,
"end": 3764,
"loc": {
"start": {
"line": 112,
"column": 5
},
"end": {
"line": 112,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3764,
"end": 3765,
"loc": {
"start": {
"line": 112,
"column": 18
},
"end": {
"line": 112,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 3765,
"end": 3769,
"loc": {
"start": {
"line": 112,
"column": 19
},
"end": {
"line": 112,
"column": 23
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3769,
"end": 3770,
"loc": {
"start": {
"line": 112,
"column": 23
},
"end": {
"line": 112,
"column": 24
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3770,
"end": 3771,
"loc": {
"start": {
"line": 112,
"column": 24
},
"end": {
"line": 112,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3772,
"end": 3773,
"loc": {
"start": {
"line": 112,
"column": 26
},
"end": {
"line": 112,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 3783,
"end": 3786,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 11
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3786,
"end": 3787,
"loc": {
"start": {
"line": 113,
"column": 11
},
"end": {
"line": 113,
"column": 12
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 3788,
"end": 3791,
"loc": {
"start": {
"line": 113,
"column": 13
},
"end": {
"line": 113,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 3792,
"end": 3798,
"loc": {
"start": {
"line": 113,
"column": 17
},
"end": {
"line": 113,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3798,
"end": 3799,
"loc": {
"start": {
"line": 113,
"column": 23
},
"end": {
"line": 113,
"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": 3799,
"end": 3800,
"loc": {
"start": {
"line": 113,
"column": 24
},
"end": {
"line": 113,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3800,
"end": 3801,
"loc": {
"start": {
"line": 113,
"column": 25
},
"end": {
"line": 113,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3802,
"end": 3803,
"loc": {
"start": {
"line": 113,
"column": 27
},
"end": {
"line": 113,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3803,
"end": 3804,
"loc": {
"start": {
"line": 113,
"column": 28
},
"end": {
"line": 113,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3804,
"end": 3805,
"loc": {
"start": {
"line": 113,
"column": 29
},
"end": {
"line": 113,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 3815,
"end": 3824,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 17
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3824,
"end": 3825,
"loc": {
"start": {
"line": 114,
"column": 17
},
"end": {
"line": 114,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumDirection",
"start": 3826,
"end": 3839,
"loc": {
"start": {
"line": 114,
"column": 19
},
"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": 3839,
"end": 3840,
"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": "left",
"start": 3840,
"end": 3844,
"loc": {
"start": {
"line": 114,
"column": 33
},
"end": {
"line": 114,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3844,
"end": 3845,
"loc": {
"start": {
"line": 114,
"column": 37
},
"end": {
"line": 114,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3855,
"end": 3859,
"loc": {
"start": {
"line": 115,
"column": 8
},
"end": {
"line": 115,
"column": 12
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3859,
"end": 3860,
"loc": {
"start": {
"line": 115,
"column": 12
},
"end": {
"line": 115,
"column": 13
}
}
},
{
"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": 3861,
"end": 3865,
"loc": {
"start": {
"line": 115,
"column": 14
},
"end": {
"line": 115,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3865,
"end": 3866,
"loc": {
"start": {
"line": 115,
"column": 18
},
"end": {
"line": 115,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 3876,
"end": 3884,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3884,
"end": 3885,
"loc": {
"start": {
"line": 116,
"column": 16
},
"end": {
"line": 116,
"column": 17
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3886,
"end": 3887,
"loc": {
"start": {
"line": 116,
"column": 18
},
"end": {
"line": 116,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3887,
"end": 3888,
"loc": {
"start": {
"line": 116,
"column": 19
},
"end": {
"line": 116,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3894,
"end": 3895,
"loc": {
"start": {
"line": 117,
"column": 4
},
"end": {
"line": 117,
"column": 5
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3895,
"end": 3896,
"loc": {
"start": {
"line": 117,
"column": 5
},
"end": {
"line": 117,
"column": 6
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3898,
"end": 3899,
"loc": {
"start": {
"line": 118,
"column": 0
},
"end": {
"line": 118,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3899,
"end": 3900,
"loc": {
"start": {
"line": 118,
"column": 1
},
"end": {
"line": 118,
"column": 2
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3900,
"end": 3900,
"loc": {
"start": {
"line": 118,
"column": 2
},
"end": {
"line": 118,
"column": 2
}
}
}
]
}