yjs/docs/ast/source/Struct/Delete.js.json
2018-04-27 18:45:01 +02:00

18022 lines
480 KiB
JSON

{
"type": "File",
"start": 0,
"end": 3730,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 123,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3730,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 123,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 64,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 64
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 27
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 27
},
"identifierName": "getStructReference"
},
"name": "getStructReference"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 27
},
"identifierName": "getStructReference"
},
"name": "getStructReference"
}
}
],
"source": {
"type": "StringLiteral",
"start": 35,
"end": 64,
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 64
}
},
"extra": {
"rawValue": "../Util/structReferences.js",
"raw": "'../Util/structReferences.js'"
},
"value": "../Util/structReferences.js"
}
},
{
"type": "ImportDeclaration",
"start": 65,
"end": 98,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 72,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 9
}
},
"local": {
"type": "Identifier",
"start": 72,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 9
},
"identifierName": "ID"
},
"name": "ID"
}
}
],
"source": {
"type": "StringLiteral",
"start": 80,
"end": 98,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 33
}
},
"extra": {
"rawValue": "../Util/ID/ID.js",
"raw": "'../Util/ID/ID.js'"
},
"value": "../Util/ID/ID.js"
}
},
{
"type": "ImportDeclaration",
"start": 99,
"end": 159,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 60
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 108,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 108,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 14
},
"identifierName": "logID"
},
"name": "logID"
},
"local": {
"type": "Identifier",
"start": 108,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 14
},
"identifierName": "logID"
},
"name": "logID"
}
}
],
"source": {
"type": "StringLiteral",
"start": 121,
"end": 159,
"loc": {
"start": {
"line": 3,
"column": 22
},
"end": {
"line": 3,
"column": 60
}
},
"extra": {
"rawValue": "../MessageHandler/messageToString.js",
"raw": "'../MessageHandler/messageToString.js'"
},
"value": "../MessageHandler/messageToString.js",
"leadingComments": null,
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Delete all items in an ID-range\n * TODO: implement getItemCleanStartNode for better performance (only one lookup)\n ",
"start": 161,
"end": 297,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 298,
"end": 1192,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 36,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "FunctionDeclaration",
"start": 305,
"end": 1192,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 36,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 314,
"end": 329,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 31
},
"identifierName": "deleteItemRange"
},
"name": "deleteItemRange",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 331,
"end": 332,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 34
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 334,
"end": 338,
"loc": {
"start": {
"line": 10,
"column": 36
},
"end": {
"line": 10,
"column": 40
},
"identifierName": "user"
},
"name": "user"
},
{
"type": "Identifier",
"start": 340,
"end": 345,
"loc": {
"start": {
"line": 10,
"column": 42
},
"end": {
"line": 10,
"column": 47
},
"identifierName": "clock"
},
"name": "clock"
},
{
"type": "Identifier",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 49
},
"end": {
"line": 10,
"column": 54
},
"identifierName": "range"
},
"name": "range"
},
{
"type": "Identifier",
"start": 354,
"end": 364,
"loc": {
"start": {
"line": 10,
"column": 56
},
"end": {
"line": 10,
"column": 66
},
"identifierName": "gcChildren"
},
"name": "gcChildren"
}
],
"body": {
"type": "BlockStatement",
"start": 366,
"end": 1192,
"loc": {
"start": {
"line": 10,
"column": 68
},
"end": {
"line": 36,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 370,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 81
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 376,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 81
}
},
"id": {
"type": "Identifier",
"start": 376,
"end": 388,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 20
},
"identifierName": "createDelete"
},
"name": "createDelete"
},
"init": {
"type": "LogicalExpression",
"start": 391,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 81
}
},
"left": {
"type": "BinaryExpression",
"start": 391,
"end": 411,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 43
}
},
"left": {
"type": "MemberExpression",
"start": 391,
"end": 402,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 391,
"end": 392,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 24
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 393,
"end": 402,
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 11,
"column": 34
},
"identifierName": "connector"
},
"name": "connector"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 407,
"end": 411,
"loc": {
"start": {
"line": 11,
"column": 39
},
"end": {
"line": 11,
"column": 43
}
}
}
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 415,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 47
},
"end": {
"line": 11,
"column": 81
}
},
"object": {
"type": "MemberExpression",
"start": 415,
"end": 426,
"loc": {
"start": {
"line": 11,
"column": 47
},
"end": {
"line": 11,
"column": 58
}
},
"object": {
"type": "Identifier",
"start": 415,
"end": 416,
"loc": {
"start": {
"line": 11,
"column": 47
},
"end": {
"line": 11,
"column": 48
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 417,
"end": 426,
"loc": {
"start": {
"line": 11,
"column": 49
},
"end": {
"line": 11,
"column": 58
},
"identifierName": "connector"
},
"name": "connector"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 427,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 59
},
"end": {
"line": 11,
"column": 81
},
"identifierName": "_forwardAppliedStructs"
},
"name": "_forwardAppliedStructs"
},
"computed": false
}
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 452,
"end": 506,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 56
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 456,
"end": 506,
"loc": {
"start": {
"line": 12,
"column": 6
},
"end": {
"line": 12,
"column": 56
}
},
"id": {
"type": "Identifier",
"start": 456,
"end": 460,
"loc": {
"start": {
"line": 12,
"column": 6
},
"end": {
"line": 12,
"column": 10
},
"identifierName": "item"
},
"name": "item"
},
"init": {
"type": "CallExpression",
"start": 463,
"end": 506,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 56
}
},
"callee": {
"type": "MemberExpression",
"start": 463,
"end": 485,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 463,
"end": 467,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 463,
"end": 464,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 14
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 465,
"end": 467,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 17
},
"identifierName": "os"
},
"name": "os"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 468,
"end": 485,
"loc": {
"start": {
"line": 12,
"column": 18
},
"end": {
"line": 12,
"column": 35
},
"identifierName": "getItemCleanStart"
},
"name": "getItemCleanStart"
},
"computed": false
},
"arguments": [
{
"type": "NewExpression",
"start": 486,
"end": 505,
"loc": {
"start": {
"line": 12,
"column": 36
},
"end": {
"line": 12,
"column": 55
}
},
"callee": {
"type": "Identifier",
"start": 490,
"end": 492,
"loc": {
"start": {
"line": 12,
"column": 40
},
"end": {
"line": 12,
"column": 42
},
"identifierName": "ID"
},
"name": "ID"
},
"arguments": [
{
"type": "Identifier",
"start": 493,
"end": 497,
"loc": {
"start": {
"line": 12,
"column": 43
},
"end": {
"line": 12,
"column": 47
},
"identifierName": "user"
},
"name": "user"
},
{
"type": "Identifier",
"start": 499,
"end": 504,
"loc": {
"start": {
"line": 12,
"column": 49
},
"end": {
"line": 12,
"column": 54
},
"identifierName": "clock"
},
"name": "clock"
}
]
}
]
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 509,
"end": 1190,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 35,
"column": 3
}
},
"test": {
"type": "BinaryExpression",
"start": 513,
"end": 526,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 19
}
},
"left": {
"type": "Identifier",
"start": 513,
"end": 517,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 10
},
"identifierName": "item"
},
"name": "item"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 522,
"end": 526,
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 19
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 528,
"end": 1190,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 35,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 534,
"end": 633,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 538,
"end": 552,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 22
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 539,
"end": 552,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 539,
"end": 543,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 13
},
"identifierName": "item"
},
"name": "item"
},
"property": {
"type": "Identifier",
"start": 544,
"end": 552,
"loc": {
"start": {
"line": 14,
"column": 14
},
"end": {
"line": 14,
"column": 22
},
"identifierName": "_deleted"
},
"name": "_deleted"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 554,
"end": 633,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 562,
"end": 585,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 562,
"end": 585,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 562,
"end": 575,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 562,
"end": 566,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 10
},
"identifierName": "item"
},
"name": "item"
},
"property": {
"type": "Identifier",
"start": 567,
"end": 575,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 19
},
"identifierName": "_splitAt"
},
"name": "_splitAt"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 576,
"end": 577,
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 21
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 579,
"end": 584,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 28
},
"identifierName": "range"
},
"name": "range"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 592,
"end": 627,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 41
}
},
"expression": {
"type": "CallExpression",
"start": 592,
"end": 627,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 592,
"end": 604,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 592,
"end": 596,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 10
},
"identifierName": "item"
},
"name": "item"
},
"property": {
"type": "Identifier",
"start": 597,
"end": 604,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 18
},
"identifierName": "_delete"
},
"name": "_delete"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 605,
"end": 606,
"loc": {
"start": {
"line": 16,
"column": 19
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 608,
"end": 620,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 34
},
"identifierName": "createDelete"
},
"name": "createDelete"
},
{
"type": "BooleanLiteral",
"start": 622,
"end": 626,
"loc": {
"start": {
"line": 16,
"column": 36
},
"end": {
"line": 16,
"column": 40
}
},
"value": true
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 638,
"end": 664,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 30
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 642,
"end": 664,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 642,
"end": 649,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 15
},
"identifierName": "itemLen"
},
"name": "itemLen"
},
"init": {
"type": "MemberExpression",
"start": 652,
"end": 664,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 18,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 652,
"end": 656,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 18,
"column": 22
},
"identifierName": "item"
},
"name": "item"
},
"property": {
"type": "Identifier",
"start": 657,
"end": 664,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 18,
"column": 30
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 669,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 669,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 20
}
},
"operator": "-=",
"left": {
"type": "Identifier",
"start": 669,
"end": 674,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 9
},
"identifierName": "range"
},
"name": "range"
},
"right": {
"type": "Identifier",
"start": 678,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 20
},
"identifierName": "itemLen"
},
"name": "itemLen"
}
}
},
{
"type": "ExpressionStatement",
"start": 690,
"end": 706,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 690,
"end": 706,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 20
}
},
"operator": "+=",
"left": {
"type": "Identifier",
"start": 690,
"end": 695,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 9
},
"identifierName": "clock"
},
"name": "clock"
},
"right": {
"type": "Identifier",
"start": 699,
"end": 706,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 20
},
"identifierName": "itemLen"
},
"name": "itemLen"
}
}
},
{
"type": "IfStatement",
"start": 711,
"end": 1186,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 715,
"end": 724,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 17
}
},
"left": {
"type": "Identifier",
"start": 715,
"end": 720,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 13
},
"identifierName": "range"
},
"name": "range"
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"start": 723,
"end": 724,
"loc": {
"start": {
"line": 21,
"column": 16
},
"end": {
"line": 21,
"column": 17
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
"consequent": {
"type": "BlockStatement",
"start": 726,
"end": 1186,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 34,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 734,
"end": 779,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 51
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 738,
"end": 779,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 51
}
},
"id": {
"type": "Identifier",
"start": 738,
"end": 742,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 14
},
"identifierName": "node"
},
"name": "node"
},
"init": {
"type": "CallExpression",
"start": 745,
"end": 779,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 745,
"end": 758,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 745,
"end": 749,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 745,
"end": 746,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 18
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 747,
"end": 749,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 21
},
"identifierName": "os"
},
"name": "os"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 750,
"end": 758,
"loc": {
"start": {
"line": 22,
"column": 22
},
"end": {
"line": 22,
"column": 30
},
"identifierName": "findNode"
},
"name": "findNode"
},
"computed": false
},
"arguments": [
{
"type": "NewExpression",
"start": 759,
"end": 778,
"loc": {
"start": {
"line": 22,
"column": 31
},
"end": {
"line": 22,
"column": 50
}
},
"callee": {
"type": "Identifier",
"start": 763,
"end": 765,
"loc": {
"start": {
"line": 22,
"column": 35
},
"end": {
"line": 22,
"column": 37
},
"identifierName": "ID"
},
"name": "ID"
},
"arguments": [
{
"type": "Identifier",
"start": 766,
"end": 770,
"loc": {
"start": {
"line": 22,
"column": 38
},
"end": {
"line": 22,
"column": 42
},
"identifierName": "user"
},
"name": "user"
},
{
"type": "Identifier",
"start": 772,
"end": 777,
"loc": {
"start": {
"line": 22,
"column": 44
},
"end": {
"line": 22,
"column": 49
},
"identifierName": "clock"
},
"name": "clock"
}
]
}
]
}
}
],
"kind": "let"
},
{
"type": "WhileStatement",
"start": 786,
"end": 1180,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 33,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 793,
"end": 884,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 104
}
},
"left": {
"type": "LogicalExpression",
"start": 793,
"end": 840,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 60
}
},
"left": {
"type": "LogicalExpression",
"start": 793,
"end": 827,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 47
}
},
"left": {
"type": "BinaryExpression",
"start": 793,
"end": 806,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 26
}
},
"left": {
"type": "Identifier",
"start": 793,
"end": 797,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 17
},
"identifierName": "node"
},
"name": "node"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 802,
"end": 806,
"loc": {
"start": {
"line": 23,
"column": 22
},
"end": {
"line": 23,
"column": 26
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 810,
"end": 827,
"loc": {
"start": {
"line": 23,
"column": 30
},
"end": {
"line": 23,
"column": 47
}
},
"left": {
"type": "MemberExpression",
"start": 810,
"end": 818,
"loc": {
"start": {
"line": 23,
"column": 30
},
"end": {
"line": 23,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 810,
"end": 814,
"loc": {
"start": {
"line": 23,
"column": 30
},
"end": {
"line": 23,
"column": 34
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 815,
"end": 818,
"loc": {
"start": {
"line": 23,
"column": 35
},
"end": {
"line": 23,
"column": 38
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 823,
"end": 827,
"loc": {
"start": {
"line": 23,
"column": 43
},
"end": {
"line": 23,
"column": 47
}
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 831,
"end": 840,
"loc": {
"start": {
"line": 23,
"column": 51
},
"end": {
"line": 23,
"column": 60
}
},
"left": {
"type": "Identifier",
"start": 831,
"end": 836,
"loc": {
"start": {
"line": 23,
"column": 51
},
"end": {
"line": 23,
"column": 56
},
"identifierName": "range"
},
"name": "range"
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"start": 839,
"end": 840,
"loc": {
"start": {
"line": 23,
"column": 59
},
"end": {
"line": 23,
"column": 60
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 844,
"end": 884,
"loc": {
"start": {
"line": 23,
"column": 64
},
"end": {
"line": 23,
"column": 104
}
},
"callee": {
"type": "MemberExpression",
"start": 844,
"end": 863,
"loc": {
"start": {
"line": 23,
"column": 64
},
"end": {
"line": 23,
"column": 83
}
},
"object": {
"type": "MemberExpression",
"start": 844,
"end": 856,
"loc": {
"start": {
"line": 23,
"column": 64
},
"end": {
"line": 23,
"column": 76
}
},
"object": {
"type": "MemberExpression",
"start": 844,
"end": 852,
"loc": {
"start": {
"line": 23,
"column": 64
},
"end": {
"line": 23,
"column": 72
}
},
"object": {
"type": "Identifier",
"start": 844,
"end": 848,
"loc": {
"start": {
"line": 23,
"column": 64
},
"end": {
"line": 23,
"column": 68
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 849,
"end": 852,
"loc": {
"start": {
"line": 23,
"column": 69
},
"end": {
"line": 23,
"column": 72
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 853,
"end": 856,
"loc": {
"start": {
"line": 23,
"column": 73
},
"end": {
"line": 23,
"column": 76
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 857,
"end": 863,
"loc": {
"start": {
"line": 23,
"column": 77
},
"end": {
"line": 23,
"column": 83
},
"identifierName": "equals"
},
"name": "equals"
},
"computed": false
},
"arguments": [
{
"type": "NewExpression",
"start": 864,
"end": 883,
"loc": {
"start": {
"line": 23,
"column": 84
},
"end": {
"line": 23,
"column": 103
}
},
"callee": {
"type": "Identifier",
"start": 868,
"end": 870,
"loc": {
"start": {
"line": 23,
"column": 88
},
"end": {
"line": 23,
"column": 90
},
"identifierName": "ID"
},
"name": "ID"
},
"arguments": [
{
"type": "Identifier",
"start": 871,
"end": 875,
"loc": {
"start": {
"line": 23,
"column": 91
},
"end": {
"line": 23,
"column": 95
},
"identifierName": "user"
},
"name": "user"
},
{
"type": "Identifier",
"start": 877,
"end": 882,
"loc": {
"start": {
"line": 23,
"column": 97
},
"end": {
"line": 23,
"column": 102
},
"identifierName": "clock"
},
"name": "clock"
}
]
}
]
}
},
"body": {
"type": "BlockStatement",
"start": 886,
"end": 1180,
"loc": {
"start": {
"line": 23,
"column": 106
},
"end": {
"line": 33,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 896,
"end": 920,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 902,
"end": 920,
"loc": {
"start": {
"line": 24,
"column": 14
},
"end": {
"line": 24,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 902,
"end": 909,
"loc": {
"start": {
"line": 24,
"column": 14
},
"end": {
"line": 24,
"column": 21
},
"identifierName": "nodeVal"
},
"name": "nodeVal"
},
"init": {
"type": "MemberExpression",
"start": 912,
"end": 920,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 912,
"end": 916,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 28
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 917,
"end": 920,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 32
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 929,
"end": 1055,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 28,
"column": 9
}
},
"test": {
"type": "UnaryExpression",
"start": 933,
"end": 950,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 29
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 934,
"end": 950,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 934,
"end": 941,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 20
},
"identifierName": "nodeVal"
},
"name": "nodeVal"
},
"property": {
"type": "Identifier",
"start": 942,
"end": 950,
"loc": {
"start": {
"line": 25,
"column": 21
},
"end": {
"line": 25,
"column": 29
},
"identifierName": "_deleted"
},
"name": "_deleted"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 952,
"end": 1055,
"loc": {
"start": {
"line": 25,
"column": 31
},
"end": {
"line": 28,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 964,
"end": 990,
"loc": {
"start": {
"line": 26,
"column": 10
},
"end": {
"line": 26,
"column": 36
}
},
"expression": {
"type": "CallExpression",
"start": 964,
"end": 990,
"loc": {
"start": {
"line": 26,
"column": 10
},
"end": {
"line": 26,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 964,
"end": 980,
"loc": {
"start": {
"line": 26,
"column": 10
},
"end": {
"line": 26,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 964,
"end": 971,
"loc": {
"start": {
"line": 26,
"column": 10
},
"end": {
"line": 26,
"column": 17
},
"identifierName": "nodeVal"
},
"name": "nodeVal"
},
"property": {
"type": "Identifier",
"start": 972,
"end": 980,
"loc": {
"start": {
"line": 26,
"column": 18
},
"end": {
"line": 26,
"column": 26
},
"identifierName": "_splitAt"
},
"name": "_splitAt"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 981,
"end": 982,
"loc": {
"start": {
"line": 26,
"column": 27
},
"end": {
"line": 26,
"column": 28
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 984,
"end": 989,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 35
},
"identifierName": "range"
},
"name": "range"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1001,
"end": 1045,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 54
}
},
"expression": {
"type": "CallExpression",
"start": 1001,
"end": 1045,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 1001,
"end": 1016,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 1001,
"end": 1008,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 17
},
"identifierName": "nodeVal"
},
"name": "nodeVal"
},
"property": {
"type": "Identifier",
"start": 1009,
"end": 1016,
"loc": {
"start": {
"line": 27,
"column": 18
},
"end": {
"line": 27,
"column": 25
},
"identifierName": "_delete"
},
"name": "_delete"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1017,
"end": 1018,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 27
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 1020,
"end": 1032,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 41
},
"identifierName": "createDelete"
},
"name": "createDelete"
},
{
"type": "Identifier",
"start": 1034,
"end": 1044,
"loc": {
"start": {
"line": 27,
"column": 43
},
"end": {
"line": 27,
"column": 53
},
"identifierName": "gcChildren"
},
"name": "gcChildren"
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 1064,
"end": 1095,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1070,
"end": 1095,
"loc": {
"start": {
"line": 29,
"column": 14
},
"end": {
"line": 29,
"column": 39
}
},
"id": {
"type": "Identifier",
"start": 1070,
"end": 1077,
"loc": {
"start": {
"line": 29,
"column": 14
},
"end": {
"line": 29,
"column": 21
},
"identifierName": "nodeLen"
},
"name": "nodeLen"
},
"init": {
"type": "MemberExpression",
"start": 1080,
"end": 1095,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 1080,
"end": 1087,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 31
},
"identifierName": "nodeVal"
},
"name": "nodeVal"
},
"property": {
"type": "Identifier",
"start": 1088,
"end": 1095,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 39
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1104,
"end": 1120,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1104,
"end": 1120,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 24
}
},
"operator": "-=",
"left": {
"type": "Identifier",
"start": 1104,
"end": 1109,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 13
},
"identifierName": "range"
},
"name": "range"
},
"right": {
"type": "Identifier",
"start": 1113,
"end": 1120,
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 24
},
"identifierName": "nodeLen"
},
"name": "nodeLen"
}
}
},
{
"type": "ExpressionStatement",
"start": 1129,
"end": 1145,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1129,
"end": 1145,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 24
}
},
"operator": "+=",
"left": {
"type": "Identifier",
"start": 1129,
"end": 1134,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 13
},
"identifierName": "clock"
},
"name": "clock"
},
"right": {
"type": "Identifier",
"start": 1138,
"end": 1145,
"loc": {
"start": {
"line": 31,
"column": 17
},
"end": {
"line": 31,
"column": 24
},
"identifierName": "nodeLen"
},
"name": "nodeLen"
}
}
},
{
"type": "ExpressionStatement",
"start": 1154,
"end": 1172,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1154,
"end": 1172,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 26
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1154,
"end": 1158,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 12
},
"identifierName": "node"
},
"name": "node"
},
"right": {
"type": "CallExpression",
"start": 1161,
"end": 1172,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 1161,
"end": 1170,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 1161,
"end": 1165,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 19
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 1166,
"end": 1170,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 24
},
"identifierName": "next"
},
"name": "next"
},
"computed": false
},
"arguments": []
}
}
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Delete all items in an ID-range\n * TODO: implement getItemCleanStartNode for better performance (only one lookup)\n ",
"start": 161,
"end": 297,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * A Delete change is not a real Item, but it provides the same interface as an\n * Item. The only difference is that it will not be saved in the ItemStore\n * (OperationStore), but instead it is safed in the DeleteStore.\n ",
"start": 1194,
"end": 1433,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Delete all items in an ID-range\n * TODO: implement getItemCleanStartNode for better performance (only one lookup)\n ",
"start": 161,
"end": 297,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * A Delete change is not a real Item, but it provides the same interface as an\n * Item. The only difference is that it will not be saved in the ItemStore\n * (OperationStore), but instead it is safed in the DeleteStore.\n ",
"start": 1194,
"end": 1433,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 1434,
"end": 3729,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 122,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 1449,
"end": 3729,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 122,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1455,
"end": 1461,
"loc": {
"start": {
"line": 44,
"column": 21
},
"end": {
"line": 44,
"column": 27
},
"identifierName": "Delete"
},
"name": "Delete",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 1462,
"end": 3729,
"loc": {
"start": {
"line": 44,
"column": 28
},
"end": {
"line": 122,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 1466,
"end": 1534,
"loc": {
"start": {
"line": 45,
"column": 2
},
"end": {
"line": 48,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1466,
"end": 1477,
"loc": {
"start": {
"line": 45,
"column": 2
},
"end": {
"line": 45,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1481,
"end": 1534,
"loc": {
"start": {
"line": 45,
"column": 17
},
"end": {
"line": 48,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1487,
"end": 1506,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1487,
"end": 1506,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1487,
"end": 1499,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 1487,
"end": 1491,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1492,
"end": 1499,
"loc": {
"start": {
"line": 46,
"column": 9
},
"end": {
"line": 46,
"column": 16
},
"identifierName": "_target"
},
"name": "_target"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 1502,
"end": 1506,
"loc": {
"start": {
"line": 46,
"column": 19
},
"end": {
"line": 46,
"column": 23
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1511,
"end": 1530,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1511,
"end": 1530,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1511,
"end": 1523,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 1511,
"end": 1515,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1516,
"end": 1523,
"loc": {
"start": {
"line": 47,
"column": 9
},
"end": {
"line": 47,
"column": 16
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 1526,
"end": 1530,
"loc": {
"start": {
"line": 47,
"column": 19
},
"end": {
"line": 47,
"column": 23
}
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Read the next Item in a Decoder and fill this Item with the read data.\n *\n * This is called when data is received from a remote peer.\n *\n * @param {Y} y The Yjs instance that this Item belongs to.\n * @param {BinaryDecoder} decoder The decoder object to read data from.\n ",
"start": 1538,
"end": 1845,
"loc": {
"start": {
"line": 50,
"column": 2
},
"end": {
"line": 58,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1848,
"end": 2195,
"loc": {
"start": {
"line": 59,
"column": 2
},
"end": {
"line": 70,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1848,
"end": 1859,
"loc": {
"start": {
"line": 59,
"column": 2
},
"end": {
"line": 59,
"column": 13
},
"identifierName": "_fromBinary"
},
"name": "_fromBinary",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1861,
"end": 1862,
"loc": {
"start": {
"line": 59,
"column": 15
},
"end": {
"line": 59,
"column": 16
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 1864,
"end": 1871,
"loc": {
"start": {
"line": 59,
"column": 18
},
"end": {
"line": 59,
"column": 25
},
"identifierName": "decoder"
},
"name": "decoder"
}
],
"body": {
"type": "BlockStatement",
"start": 1873,
"end": 2195,
"loc": {
"start": {
"line": 59,
"column": 27
},
"end": {
"line": 70,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1985,
"end": 2018,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 37
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1991,
"end": 2018,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 37
}
},
"id": {
"type": "Identifier",
"start": 1991,
"end": 1999,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 18
},
"identifierName": "targetID"
},
"name": "targetID",
"leadingComments": null
},
"init": {
"type": "CallExpression",
"start": 2002,
"end": 2018,
"loc": {
"start": {
"line": 62,
"column": 21
},
"end": {
"line": 62,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 2002,
"end": 2016,
"loc": {
"start": {
"line": 62,
"column": 21
},
"end": {
"line": 62,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2002,
"end": 2009,
"loc": {
"start": {
"line": 62,
"column": 21
},
"end": {
"line": 62,
"column": 28
},
"identifierName": "decoder"
},
"name": "decoder"
},
"property": {
"type": "Identifier",
"start": 2010,
"end": 2016,
"loc": {
"start": {
"line": 62,
"column": 29
},
"end": {
"line": 62,
"column": 35
},
"identifierName": "readID"
},
"name": "readID"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentLine",
"value": " TODO: set target, and add it to missing if not found",
"start": 1879,
"end": 1934,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " There is an edge case in p2p networks!",
"start": 1939,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 45
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2023,
"end": 2048,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2023,
"end": 2048,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2023,
"end": 2037,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 2023,
"end": 2027,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 2028,
"end": 2037,
"loc": {
"start": {
"line": 63,
"column": 9
},
"end": {
"line": 63,
"column": 18
},
"identifierName": "_targetID"
},
"name": "_targetID"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 2040,
"end": 2048,
"loc": {
"start": {
"line": 63,
"column": 21
},
"end": {
"line": 63,
"column": 29
},
"identifierName": "targetID"
},
"name": "targetID"
}
}
},
{
"type": "ExpressionStatement",
"start": 2053,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 40
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2053,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 40
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2053,
"end": 2065,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 2053,
"end": 2057,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 2058,
"end": 2065,
"loc": {
"start": {
"line": 64,
"column": 9
},
"end": {
"line": 64,
"column": 16
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 2068,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
"start": 2068,
"end": 2087,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 2068,
"end": 2075,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 26
},
"identifierName": "decoder"
},
"name": "decoder"
},
"property": {
"type": "Identifier",
"start": 2076,
"end": 2087,
"loc": {
"start": {
"line": 64,
"column": 27
},
"end": {
"line": 64,
"column": 38
},
"identifierName": "readVarUint"
},
"name": "readVarUint"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "IfStatement",
"start": 2094,
"end": 2191,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 69,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 2098,
"end": 2129,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 39
}
},
"left": {
"type": "CallExpression",
"start": 2098,
"end": 2120,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 2098,
"end": 2110,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 2098,
"end": 2102,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 12
}
},
"object": {
"type": "Identifier",
"start": 2098,
"end": 2099,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 9
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 2100,
"end": 2102,
"loc": {
"start": {
"line": 65,
"column": 10
},
"end": {
"line": 65,
"column": 12
},
"identifierName": "os"
},
"name": "os"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2103,
"end": 2110,
"loc": {
"start": {
"line": 65,
"column": 13
},
"end": {
"line": 65,
"column": 20
},
"identifierName": "getItem"
},
"name": "getItem"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2111,
"end": 2119,
"loc": {
"start": {
"line": 65,
"column": 21
},
"end": {
"line": 65,
"column": 29
},
"identifierName": "targetID"
},
"name": "targetID"
}
]
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 2125,
"end": 2129,
"loc": {
"start": {
"line": 65,
"column": 35
},
"end": {
"line": 65,
"column": 39
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 2131,
"end": 2162,
"loc": {
"start": {
"line": 65,
"column": 41
},
"end": {
"line": 67,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2139,
"end": 2156,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 23
}
},
"argument": {
"type": "ArrayExpression",
"start": 2146,
"end": 2156,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 23
}
},
"elements": [
{
"type": "Identifier",
"start": 2147,
"end": 2155,
"loc": {
"start": {
"line": 66,
"column": 14
},
"end": {
"line": 66,
"column": 22
},
"identifierName": "targetID"
},
"name": "targetID"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2168,
"end": 2191,
"loc": {
"start": {
"line": 67,
"column": 11
},
"end": {
"line": 69,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2176,
"end": 2185,
"loc": {
"start": {
"line": 68,
"column": 6
},
"end": {
"line": 68,
"column": 15
}
},
"argument": {
"type": "ArrayExpression",
"start": 2183,
"end": 2185,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 15
}
},
"elements": []
}
}
],
"directives": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Read the next Item in a Decoder and fill this Item with the read data.\n *\n * This is called when data is received from a remote peer.\n *\n * @param {Y} y The Yjs instance that this Item belongs to.\n * @param {BinaryDecoder} decoder The decoder object to read data from.\n ",
"start": 1538,
"end": 1845,
"loc": {
"start": {
"line": 50,
"column": 2
},
"end": {
"line": 58,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Transform the properties of this type to binary and write it to an\n * BinaryEncoder.\n *\n * This is called when this Item is sent to a remote peer.\n *\n * @param {BinaryEncoder} encoder The encoder to write data to.\n ",
"start": 2199,
"end": 2451,
"loc": {
"start": {
"line": 72,
"column": 2
},
"end": {
"line": 80,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2454,
"end": 2615,
"loc": {
"start": {
"line": 81,
"column": 2
},
"end": {
"line": 85,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2454,
"end": 2463,
"loc": {
"start": {
"line": 81,
"column": 2
},
"end": {
"line": 81,
"column": 11
},
"identifierName": "_toBinary"
},
"name": "_toBinary",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2465,
"end": 2472,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 20
},
"identifierName": "encoder"
},
"name": "encoder"
}
],
"body": {
"type": "BlockStatement",
"start": 2474,
"end": 2615,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 85,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2480,
"end": 2536,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 60
}
},
"expression": {
"type": "CallExpression",
"start": 2480,
"end": 2536,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 2480,
"end": 2498,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 2480,
"end": 2487,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 11
},
"identifierName": "encoder"
},
"name": "encoder"
},
"property": {
"type": "Identifier",
"start": 2488,
"end": 2498,
"loc": {
"start": {
"line": 82,
"column": 12
},
"end": {
"line": 82,
"column": 22
},
"identifierName": "writeUint8"
},
"name": "writeUint8"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2499,
"end": 2535,
"loc": {
"start": {
"line": 82,
"column": 23
},
"end": {
"line": 82,
"column": 59
}
},
"callee": {
"type": "Identifier",
"start": 2499,
"end": 2517,
"loc": {
"start": {
"line": 82,
"column": 23
},
"end": {
"line": 82,
"column": 41
},
"identifierName": "getStructReference"
},
"name": "getStructReference"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2518,
"end": 2534,
"loc": {
"start": {
"line": 82,
"column": 42
},
"end": {
"line": 82,
"column": 58
}
},
"object": {
"type": "ThisExpression",
"start": 2518,
"end": 2522,
"loc": {
"start": {
"line": 82,
"column": 42
},
"end": {
"line": 82,
"column": 46
}
}
},
"property": {
"type": "Identifier",
"start": 2523,
"end": 2534,
"loc": {
"start": {
"line": 82,
"column": 47
},
"end": {
"line": 82,
"column": 58
},
"identifierName": "constructor"
},
"name": "constructor"
},
"computed": false
}
]
}
]
}
},
{
"type": "ExpressionStatement",
"start": 2541,
"end": 2572,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 35
}
},
"expression": {
"type": "CallExpression",
"start": 2541,
"end": 2572,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2541,
"end": 2556,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 2541,
"end": 2548,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 11
},
"identifierName": "encoder"
},
"name": "encoder"
},
"property": {
"type": "Identifier",
"start": 2549,
"end": 2556,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 19
},
"identifierName": "writeID"
},
"name": "writeID"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 2557,
"end": 2571,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 2557,
"end": 2561,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2562,
"end": 2571,
"loc": {
"start": {
"line": 83,
"column": 25
},
"end": {
"line": 83,
"column": 34
},
"identifierName": "_targetID"
},
"name": "_targetID"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 2577,
"end": 2611,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 38
}
},
"expression": {
"type": "CallExpression",
"start": 2577,
"end": 2611,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 2577,
"end": 2597,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2577,
"end": 2584,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 11
},
"identifierName": "encoder"
},
"name": "encoder"
},
"property": {
"type": "Identifier",
"start": 2585,
"end": 2597,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 24
},
"identifierName": "writeVarUint"
},
"name": "writeVarUint"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 2598,
"end": 2610,
"loc": {
"start": {
"line": 84,
"column": 25
},
"end": {
"line": 84,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 2598,
"end": 2602,
"loc": {
"start": {
"line": 84,
"column": 25
},
"end": {
"line": 84,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 2603,
"end": 2610,
"loc": {
"start": {
"line": 84,
"column": 30
},
"end": {
"line": 84,
"column": 37
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Transform the properties of this type to binary and write it to an\n * BinaryEncoder.\n *\n * This is called when this Item is sent to a remote peer.\n *\n * @param {BinaryEncoder} encoder The encoder to write data to.\n ",
"start": 2199,
"end": 2451,
"loc": {
"start": {
"line": 72,
"column": 2
},
"end": {
"line": 80,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Integrates this Item into the shared structure.\n *\n * This method actually applies the change to the Yjs instance. In the case of\n * Delete it marks the delete target as deleted.\n *\n * * If created remotely (a remote user deleted something),\n * this Delete is applied to all structs in id-range.\n * * If created lokally (e.g. when y-array deletes a range of elements),\n * this struct is broadcasted only (it is already executed)\n ",
"start": 2619,
"end": 3096,
"loc": {
"start": {
"line": 87,
"column": 2
},
"end": {
"line": 98,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3099,
"end": 3473,
"loc": {
"start": {
"line": 99,
"column": 2
},
"end": {
"line": 111,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3099,
"end": 3109,
"loc": {
"start": {
"line": 99,
"column": 2
},
"end": {
"line": 99,
"column": 12
},
"identifierName": "_integrate"
},
"name": "_integrate",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3111,
"end": 3112,
"loc": {
"start": {
"line": 99,
"column": 14
},
"end": {
"line": 99,
"column": 15
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "AssignmentPattern",
"start": 3114,
"end": 3136,
"loc": {
"start": {
"line": 99,
"column": 17
},
"end": {
"line": 99,
"column": 39
}
},
"left": {
"type": "Identifier",
"start": 3114,
"end": 3128,
"loc": {
"start": {
"line": 99,
"column": 17
},
"end": {
"line": 99,
"column": 31
},
"identifierName": "locallyCreated"
},
"name": "locallyCreated"
},
"right": {
"type": "BooleanLiteral",
"start": 3131,
"end": 3136,
"loc": {
"start": {
"line": 99,
"column": 34
},
"end": {
"line": 99,
"column": 39
}
},
"value": false
}
}
],
"body": {
"type": "BlockStatement",
"start": 3138,
"end": 3473,
"loc": {
"start": {
"line": 99,
"column": 41
},
"end": {
"line": 111,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 3144,
"end": 3389,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 107,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 3148,
"end": 3163,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 23
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 3149,
"end": 3163,
"loc": {
"start": {
"line": 100,
"column": 9
},
"end": {
"line": 100,
"column": 23
},
"identifierName": "locallyCreated"
},
"name": "locallyCreated"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 3165,
"end": 3290,
"loc": {
"start": {
"line": 100,
"column": 25
},
"end": {
"line": 104,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 3194,
"end": 3219,
"loc": {
"start": {
"line": 102,
"column": 6
},
"end": {
"line": 102,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3200,
"end": 3219,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 3200,
"end": 3202,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 14
},
"identifierName": "id"
},
"name": "id",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 3205,
"end": 3219,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 3205,
"end": 3209,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"start": 3210,
"end": 3219,
"loc": {
"start": {
"line": 102,
"column": 22
},
"end": {
"line": 102,
"column": 31
},
"identifierName": "_targetID"
},
"name": "_targetID"
},
"computed": false
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentLine",
"value": " from remote",
"start": 3173,
"end": 3187,
"loc": {
"start": {
"line": 101,
"column": 6
},
"end": {
"line": 101,
"column": 20
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 3226,
"end": 3284,
"loc": {
"start": {
"line": 103,
"column": 6
},
"end": {
"line": 103,
"column": 64
}
},
"expression": {
"type": "CallExpression",
"start": 3226,
"end": 3284,
"loc": {
"start": {
"line": 103,
"column": 6
},
"end": {
"line": 103,
"column": 64
}
},
"callee": {
"type": "Identifier",
"start": 3226,
"end": 3241,
"loc": {
"start": {
"line": 103,
"column": 6
},
"end": {
"line": 103,
"column": 21
},
"identifierName": "deleteItemRange"
},
"name": "deleteItemRange"
},
"arguments": [
{
"type": "Identifier",
"start": 3242,
"end": 3243,
"loc": {
"start": {
"line": 103,
"column": 22
},
"end": {
"line": 103,
"column": 23
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "MemberExpression",
"start": 3245,
"end": 3252,
"loc": {
"start": {
"line": 103,
"column": 25
},
"end": {
"line": 103,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 3245,
"end": 3247,
"loc": {
"start": {
"line": 103,
"column": 25
},
"end": {
"line": 103,
"column": 27
},
"identifierName": "id"
},
"name": "id"
},
"property": {
"type": "Identifier",
"start": 3248,
"end": 3252,
"loc": {
"start": {
"line": 103,
"column": 28
},
"end": {
"line": 103,
"column": 32
},
"identifierName": "user"
},
"name": "user"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 3254,
"end": 3262,
"loc": {
"start": {
"line": 103,
"column": 34
},
"end": {
"line": 103,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 3254,
"end": 3256,
"loc": {
"start": {
"line": 103,
"column": 34
},
"end": {
"line": 103,
"column": 36
},
"identifierName": "id"
},
"name": "id"
},
"property": {
"type": "Identifier",
"start": 3257,
"end": 3262,
"loc": {
"start": {
"line": 103,
"column": 37
},
"end": {
"line": 103,
"column": 42
},
"identifierName": "clock"
},
"name": "clock"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 3264,
"end": 3276,
"loc": {
"start": {
"line": 103,
"column": 44
},
"end": {
"line": 103,
"column": 56
}
},
"object": {
"type": "ThisExpression",
"start": 3264,
"end": 3268,
"loc": {
"start": {
"line": 103,
"column": 44
},
"end": {
"line": 103,
"column": 48
}
}
},
"property": {
"type": "Identifier",
"start": 3269,
"end": 3276,
"loc": {
"start": {
"line": 103,
"column": 49
},
"end": {
"line": 103,
"column": 56
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
},
{
"type": "BooleanLiteral",
"start": 3278,
"end": 3283,
"loc": {
"start": {
"line": 103,
"column": 58
},
"end": {
"line": 103,
"column": 63
}
},
"value": false
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 3296,
"end": 3389,
"loc": {
"start": {
"line": 104,
"column": 11
},
"end": {
"line": 107,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 3300,
"end": 3320,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 35
}
},
"left": {
"type": "MemberExpression",
"start": 3300,
"end": 3311,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 3300,
"end": 3301,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 16
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 3302,
"end": 3311,
"loc": {
"start": {
"line": 104,
"column": 17
},
"end": {
"line": 104,
"column": 26
},
"identifierName": "connector"
},
"name": "connector"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3316,
"end": 3320,
"loc": {
"start": {
"line": 104,
"column": 31
},
"end": {
"line": 104,
"column": 35
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3322,
"end": 3389,
"loc": {
"start": {
"line": 104,
"column": 37
},
"end": {
"line": 107,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3350,
"end": 3383,
"loc": {
"start": {
"line": 106,
"column": 6
},
"end": {
"line": 106,
"column": 39
}
},
"expression": {
"type": "CallExpression",
"start": 3350,
"end": 3383,
"loc": {
"start": {
"line": 106,
"column": 6
},
"end": {
"line": 106,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 3350,
"end": 3377,
"loc": {
"start": {
"line": 106,
"column": 6
},
"end": {
"line": 106,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 3350,
"end": 3361,
"loc": {
"start": {
"line": 106,
"column": 6
},
"end": {
"line": 106,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 3350,
"end": 3351,
"loc": {
"start": {
"line": 106,
"column": 6
},
"end": {
"line": 106,
"column": 7
},
"identifierName": "y"
},
"name": "y",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3352,
"end": 3361,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 17
},
"identifierName": "connector"
},
"name": "connector"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3362,
"end": 3377,
"loc": {
"start": {
"line": 106,
"column": 18
},
"end": {
"line": 106,
"column": 33
},
"identifierName": "broadcastStruct"
},
"name": "broadcastStruct"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "ThisExpression",
"start": 3378,
"end": 3382,
"loc": {
"start": {
"line": 106,
"column": 34
},
"end": {
"line": 106,
"column": 38
}
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " from local",
"start": 3330,
"end": 3343,
"loc": {
"start": {
"line": 105,
"column": 6
},
"end": {
"line": 105,
"column": 19
}
}
}
]
}
],
"directives": []
},
"alternate": null
}
},
{
"type": "IfStatement",
"start": 3394,
"end": 3469,
"loc": {
"start": {
"line": 108,
"column": 4
},
"end": {
"line": 110,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 3398,
"end": 3420,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 3398,
"end": 3411,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 3398,
"end": 3399,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 9
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 3400,
"end": 3411,
"loc": {
"start": {
"line": 108,
"column": 10
},
"end": {
"line": 108,
"column": 21
},
"identifierName": "persistence"
},
"name": "persistence"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3416,
"end": 3420,
"loc": {
"start": {
"line": 108,
"column": 26
},
"end": {
"line": 108,
"column": 30
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3422,
"end": 3469,
"loc": {
"start": {
"line": 108,
"column": 32
},
"end": {
"line": 110,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3430,
"end": 3463,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 39
}
},
"expression": {
"type": "CallExpression",
"start": 3430,
"end": 3463,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 3430,
"end": 3454,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 3430,
"end": 3443,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 3430,
"end": 3431,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 7
},
"identifierName": "y"
},
"name": "y"
},
"property": {
"type": "Identifier",
"start": 3432,
"end": 3443,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 19
},
"identifierName": "persistence"
},
"name": "persistence"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3444,
"end": 3454,
"loc": {
"start": {
"line": 109,
"column": 20
},
"end": {
"line": 109,
"column": 30
},
"identifierName": "saveStruct"
},
"name": "saveStruct"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3455,
"end": 3456,
"loc": {
"start": {
"line": 109,
"column": 31
},
"end": {
"line": 109,
"column": 32
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "ThisExpression",
"start": 3458,
"end": 3462,
"loc": {
"start": {
"line": 109,
"column": 34
},
"end": {
"line": 109,
"column": 38
}
}
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Integrates this Item into the shared structure.\n *\n * This method actually applies the change to the Yjs instance. In the case of\n * Delete it marks the delete target as deleted.\n *\n * * If created remotely (a remote user deleted something),\n * this Delete is applied to all structs in id-range.\n * * If created lokally (e.g. when y-array deletes a range of elements),\n * this struct is broadcasted only (it is already executed)\n ",
"start": 2619,
"end": 3096,
"loc": {
"start": {
"line": 87,
"column": 2
},
"end": {
"line": 98,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Transform this YXml Type to a readable format.\n * Useful for logging as all Items and Delete implement this method.\n *\n * @private\n ",
"start": 3477,
"end": 3628,
"loc": {
"start": {
"line": 113,
"column": 2
},
"end": {
"line": 118,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3631,
"end": 3727,
"loc": {
"start": {
"line": 119,
"column": 2
},
"end": {
"line": 121,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3631,
"end": 3641,
"loc": {
"start": {
"line": 119,
"column": 2
},
"end": {
"line": 119,
"column": 12
},
"identifierName": "_logString"
},
"name": "_logString",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3645,
"end": 3727,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 121,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3651,
"end": 3723,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 76
}
},
"argument": {
"type": "TemplateLiteral",
"start": 3658,
"end": 3723,
"loc": {
"start": {
"line": 120,
"column": 11
},
"end": {
"line": 120,
"column": 76
}
},
"expressions": [
{
"type": "CallExpression",
"start": 3678,
"end": 3699,
"loc": {
"start": {
"line": 120,
"column": 31
},
"end": {
"line": 120,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 3678,
"end": 3683,
"loc": {
"start": {
"line": 120,
"column": 31
},
"end": {
"line": 120,
"column": 36
},
"identifierName": "logID"
},
"name": "logID"
},
"arguments": [
{
"type": "MemberExpression",
"start": 3684,
"end": 3698,
"loc": {
"start": {
"line": 120,
"column": 37
},
"end": {
"line": 120,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 3684,
"end": 3688,
"loc": {
"start": {
"line": 120,
"column": 37
},
"end": {
"line": 120,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"start": 3689,
"end": 3698,
"loc": {
"start": {
"line": 120,
"column": 42
},
"end": {
"line": 120,
"column": 51
},
"identifierName": "_targetID"
},
"name": "_targetID"
},
"computed": false
}
]
},
{
"type": "MemberExpression",
"start": 3709,
"end": 3721,
"loc": {
"start": {
"line": 120,
"column": 62
},
"end": {
"line": 120,
"column": 74
}
},
"object": {
"type": "ThisExpression",
"start": 3709,
"end": 3713,
"loc": {
"start": {
"line": 120,
"column": 62
},
"end": {
"line": 120,
"column": 66
}
}
},
"property": {
"type": "Identifier",
"start": 3714,
"end": 3721,
"loc": {
"start": {
"line": 120,
"column": 67
},
"end": {
"line": 120,
"column": 74
},
"identifierName": "_length"
},
"name": "_length"
},
"computed": false
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 3659,
"end": 3676,
"loc": {
"start": {
"line": 120,
"column": 12
},
"end": {
"line": 120,
"column": 29
}
},
"value": {
"raw": "Delete - target: ",
"cooked": "Delete - target: "
},
"tail": false
},
{
"type": "TemplateElement",
"start": 3700,
"end": 3707,
"loc": {
"start": {
"line": 120,
"column": 53
},
"end": {
"line": 120,
"column": 60
}
},
"value": {
"raw": ", len: ",
"cooked": ", len: "
},
"tail": false
},
{
"type": "TemplateElement",
"start": 3722,
"end": 3722,
"loc": {
"start": {
"line": 120,
"column": 75
},
"end": {
"line": 120,
"column": 75
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Transform this YXml Type to a readable format.\n * Useful for logging as all Items and Delete implement this method.\n *\n * @private\n ",
"start": 3477,
"end": 3628,
"loc": {
"start": {
"line": 113,
"column": 2
},
"end": {
"line": 118,
"column": 5
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * A Delete change is not a real Item, but it provides the same interface as an\n * Item. The only difference is that it will not be saved in the ItemStore\n * (OperationStore), but instead it is safed in the DeleteStore.\n ",
"start": 1194,
"end": 1433,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * A Delete change is not a real Item, but it provides the same interface as an\n * Item. The only difference is that it will not be saved in the ItemStore\n * (OperationStore), but instead it is safed in the DeleteStore.\n ",
"start": 1194,
"end": 1433,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * @private\n * Delete all items in an ID-range\n * TODO: implement getItemCleanStartNode for better performance (only one lookup)\n ",
"start": 161,
"end": 297,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * A Delete change is not a real Item, but it provides the same interface as an\n * Item. The only difference is that it will not be saved in the ItemStore\n * (OperationStore), but instead it is safed in the DeleteStore.\n ",
"start": 1194,
"end": 1433,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Read the next Item in a Decoder and fill this Item with the read data.\n *\n * This is called when data is received from a remote peer.\n *\n * @param {Y} y The Yjs instance that this Item belongs to.\n * @param {BinaryDecoder} decoder The decoder object to read data from.\n ",
"start": 1538,
"end": 1845,
"loc": {
"start": {
"line": 50,
"column": 2
},
"end": {
"line": 58,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " TODO: set target, and add it to missing if not found",
"start": 1879,
"end": 1934,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " There is an edge case in p2p networks!",
"start": 1939,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 45
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Transform the properties of this type to binary and write it to an\n * BinaryEncoder.\n *\n * This is called when this Item is sent to a remote peer.\n *\n * @param {BinaryEncoder} encoder The encoder to write data to.\n ",
"start": 2199,
"end": 2451,
"loc": {
"start": {
"line": 72,
"column": 2
},
"end": {
"line": 80,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Integrates this Item into the shared structure.\n *\n * This method actually applies the change to the Yjs instance. In the case of\n * Delete it marks the delete target as deleted.\n *\n * * If created remotely (a remote user deleted something),\n * this Delete is applied to all structs in id-range.\n * * If created lokally (e.g. when y-array deletes a range of elements),\n * this struct is broadcasted only (it is already executed)\n ",
"start": 2619,
"end": 3096,
"loc": {
"start": {
"line": 87,
"column": 2
},
"end": {
"line": 98,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " from remote",
"start": 3173,
"end": 3187,
"loc": {
"start": {
"line": 101,
"column": 6
},
"end": {
"line": 101,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " from local",
"start": 3330,
"end": 3343,
"loc": {
"start": {
"line": 105,
"column": 6
},
"end": {
"line": 105,
"column": 19
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Transform this YXml Type to a readable format.\n * Useful for logging as all Items and Delete implement this method.\n *\n * @private\n ",
"start": 3477,
"end": 3628,
"loc": {
"start": {
"line": 113,
"column": 2
},
"end": {
"line": 118,
"column": 5
}
}
}
],
"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": "getStructReference",
"start": 9,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 28,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 30,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../Util/structReferences.js",
"start": 35,
"end": 64,
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 64
}
}
},
{
"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": 65,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ID",
"start": 72,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 75,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../Util/ID/ID.js",
"start": 80,
"end": 98,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 33
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 99,
"end": 105,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 106,
"end": 107,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logID",
"start": 108,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 114,
"end": 115,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 3,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 116,
"end": 120,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 21
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../MessageHandler/messageToString.js",
"start": 121,
"end": 159,
"loc": {
"start": {
"line": 3,
"column": 22
},
"end": {
"line": 3,
"column": 60
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Delete all items in an ID-range\n * TODO: implement getItemCleanStartNode for better performance (only one lookup)\n ",
"start": 161,
"end": 297,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 298,
"end": 304,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 10,
"column": 6
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 305,
"end": 313,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "deleteItemRange",
"start": 314,
"end": 329,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 330,
"end": 331,
"loc": {
"start": {
"line": 10,
"column": 32
},
"end": {
"line": 10,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 331,
"end": 332,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 332,
"end": 333,
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "user",
"start": 334,
"end": 338,
"loc": {
"start": {
"line": 10,
"column": 36
},
"end": {
"line": 10,
"column": 40
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 338,
"end": 339,
"loc": {
"start": {
"line": 10,
"column": 40
},
"end": {
"line": 10,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 340,
"end": 345,
"loc": {
"start": {
"line": 10,
"column": 42
},
"end": {
"line": 10,
"column": 47
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 345,
"end": 346,
"loc": {
"start": {
"line": 10,
"column": 47
},
"end": {
"line": 10,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 49
},
"end": {
"line": 10,
"column": 54
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 352,
"end": 353,
"loc": {
"start": {
"line": 10,
"column": 54
},
"end": {
"line": 10,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "gcChildren",
"start": 354,
"end": 364,
"loc": {
"start": {
"line": 10,
"column": 56
},
"end": {
"line": 10,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 364,
"end": 365,
"loc": {
"start": {
"line": 10,
"column": 66
},
"end": {
"line": 10,
"column": 67
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 366,
"end": 367,
"loc": {
"start": {
"line": 10,
"column": 68
},
"end": {
"line": 10,
"column": 69
}
}
},
{
"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": 370,
"end": 375,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createDelete",
"start": 376,
"end": 388,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 389,
"end": 390,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 391,
"end": 392,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 392,
"end": 393,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "connector",
"start": 393,
"end": 402,
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 11,
"column": 34
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 403,
"end": 406,
"loc": {
"start": {
"line": 11,
"column": 35
},
"end": {
"line": 11,
"column": 38
}
}
},
{
"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": 407,
"end": 411,
"loc": {
"start": {
"line": 11,
"column": 39
},
"end": {
"line": 11,
"column": 43
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 412,
"end": 414,
"loc": {
"start": {
"line": 11,
"column": 44
},
"end": {
"line": 11,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 415,
"end": 416,
"loc": {
"start": {
"line": 11,
"column": 47
},
"end": {
"line": 11,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 416,
"end": 417,
"loc": {
"start": {
"line": 11,
"column": 48
},
"end": {
"line": 11,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "connector",
"start": 417,
"end": 426,
"loc": {
"start": {
"line": 11,
"column": 49
},
"end": {
"line": 11,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 426,
"end": 427,
"loc": {
"start": {
"line": 11,
"column": 58
},
"end": {
"line": 11,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_forwardAppliedStructs",
"start": 427,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 59
},
"end": {
"line": 11,
"column": 81
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 452,
"end": 455,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 456,
"end": 460,
"loc": {
"start": {
"line": 12,
"column": 6
},
"end": {
"line": 12,
"column": 10
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 461,
"end": 462,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 463,
"end": 464,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 464,
"end": 465,
"loc": {
"start": {
"line": 12,
"column": 14
},
"end": {
"line": 12,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "os",
"start": 465,
"end": 467,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 467,
"end": 468,
"loc": {
"start": {
"line": 12,
"column": 17
},
"end": {
"line": 12,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getItemCleanStart",
"start": 468,
"end": 485,
"loc": {
"start": {
"line": 12,
"column": 18
},
"end": {
"line": 12,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 485,
"end": 486,
"loc": {
"start": {
"line": 12,
"column": 35
},
"end": {
"line": 12,
"column": 36
}
}
},
{
"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": 486,
"end": 489,
"loc": {
"start": {
"line": 12,
"column": 36
},
"end": {
"line": 12,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ID",
"start": 490,
"end": 492,
"loc": {
"start": {
"line": 12,
"column": 40
},
"end": {
"line": 12,
"column": 42
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 492,
"end": 493,
"loc": {
"start": {
"line": 12,
"column": 42
},
"end": {
"line": 12,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "user",
"start": 493,
"end": 497,
"loc": {
"start": {
"line": 12,
"column": 43
},
"end": {
"line": 12,
"column": 47
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 497,
"end": 498,
"loc": {
"start": {
"line": 12,
"column": 47
},
"end": {
"line": 12,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 499,
"end": 504,
"loc": {
"start": {
"line": 12,
"column": 49
},
"end": {
"line": 12,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 504,
"end": 505,
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 12,
"column": 55
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 505,
"end": 506,
"loc": {
"start": {
"line": 12,
"column": 55
},
"end": {
"line": 12,
"column": 56
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 509,
"end": 511,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 13,
"column": 4
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 512,
"end": 513,
"loc": {
"start": {
"line": 13,
"column": 5
},
"end": {
"line": 13,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 513,
"end": 517,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 10
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 518,
"end": 521,
"loc": {
"start": {
"line": 13,
"column": 11
},
"end": {
"line": 13,
"column": 14
}
}
},
{
"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": 522,
"end": 526,
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 526,
"end": 527,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 528,
"end": 529,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 22
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 534,
"end": 536,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 537,
"end": 538,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 538,
"end": 539,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 539,
"end": 543,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 543,
"end": 544,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_deleted",
"start": 544,
"end": 552,
"loc": {
"start": {
"line": 14,
"column": 14
},
"end": {
"line": 14,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 552,
"end": 553,
"loc": {
"start": {
"line": 14,
"column": 22
},
"end": {
"line": 14,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 554,
"end": 555,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 562,
"end": 566,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 566,
"end": 567,
"loc": {
"start": {
"line": 15,
"column": 10
},
"end": {
"line": 15,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_splitAt",
"start": 567,
"end": 575,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 575,
"end": 576,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 15,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 576,
"end": 577,
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 21
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 577,
"end": 578,
"loc": {
"start": {
"line": 15,
"column": 21
},
"end": {
"line": 15,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 579,
"end": 584,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 584,
"end": 585,
"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": "item",
"start": 592,
"end": 596,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 596,
"end": 597,
"loc": {
"start": {
"line": 16,
"column": 10
},
"end": {
"line": 16,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_delete",
"start": 597,
"end": 604,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 604,
"end": 605,
"loc": {
"start": {
"line": 16,
"column": 18
},
"end": {
"line": 16,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 605,
"end": 606,
"loc": {
"start": {
"line": 16,
"column": 19
},
"end": {
"line": 16,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 606,
"end": 607,
"loc": {
"start": {
"line": 16,
"column": 20
},
"end": {
"line": 16,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createDelete",
"start": 608,
"end": 620,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 620,
"end": 621,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 35
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 622,
"end": 626,
"loc": {
"start": {
"line": 16,
"column": 36
},
"end": {
"line": 16,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 626,
"end": 627,
"loc": {
"start": {
"line": 16,
"column": 40
},
"end": {
"line": 16,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 632,
"end": 633,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 638,
"end": 641,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "itemLen",
"start": 642,
"end": 649,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 650,
"end": 651,
"loc": {
"start": {
"line": 18,
"column": 16
},
"end": {
"line": 18,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 652,
"end": 656,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 18,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 656,
"end": 657,
"loc": {
"start": {
"line": 18,
"column": 22
},
"end": {
"line": 18,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 657,
"end": 664,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 18,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 669,
"end": 674,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 9
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "-=",
"start": 675,
"end": 677,
"loc": {
"start": {
"line": 19,
"column": 10
},
"end": {
"line": 19,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "itemLen",
"start": 678,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 690,
"end": 695,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 9
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 696,
"end": 698,
"loc": {
"start": {
"line": 20,
"column": 10
},
"end": {
"line": 20,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "itemLen",
"start": 699,
"end": 706,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 20
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 711,
"end": 713,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 714,
"end": 715,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 715,
"end": 720,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 13
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">",
"start": 721,
"end": 722,
"loc": {
"start": {
"line": 21,
"column": 14
},
"end": {
"line": 21,
"column": 15
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 723,
"end": 724,
"loc": {
"start": {
"line": 21,
"column": 16
},
"end": {
"line": 21,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 724,
"end": 725,
"loc": {
"start": {
"line": 21,
"column": 17
},
"end": {
"line": 21,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 726,
"end": 727,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 21,
"column": 20
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 734,
"end": 737,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 738,
"end": 742,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 743,
"end": 744,
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 745,
"end": 746,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 746,
"end": 747,
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "os",
"start": 747,
"end": 749,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 749,
"end": 750,
"loc": {
"start": {
"line": 22,
"column": 21
},
"end": {
"line": 22,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNode",
"start": 750,
"end": 758,
"loc": {
"start": {
"line": 22,
"column": 22
},
"end": {
"line": 22,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 758,
"end": 759,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 31
}
}
},
{
"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": 759,
"end": 762,
"loc": {
"start": {
"line": 22,
"column": 31
},
"end": {
"line": 22,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ID",
"start": 763,
"end": 765,
"loc": {
"start": {
"line": 22,
"column": 35
},
"end": {
"line": 22,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 765,
"end": 766,
"loc": {
"start": {
"line": 22,
"column": 37
},
"end": {
"line": 22,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "user",
"start": 766,
"end": 770,
"loc": {
"start": {
"line": 22,
"column": 38
},
"end": {
"line": 22,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 770,
"end": 771,
"loc": {
"start": {
"line": 22,
"column": 42
},
"end": {
"line": 22,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 772,
"end": 777,
"loc": {
"start": {
"line": 22,
"column": 44
},
"end": {
"line": 22,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 777,
"end": 778,
"loc": {
"start": {
"line": 22,
"column": 49
},
"end": {
"line": 22,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 778,
"end": 779,
"loc": {
"start": {
"line": 22,
"column": 50
},
"end": {
"line": 22,
"column": 51
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 786,
"end": 791,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 11
}
}
},
{
"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": 23,
"column": 12
},
"end": {
"line": 23,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 793,
"end": 797,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 17
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 798,
"end": 801,
"loc": {
"start": {
"line": 23,
"column": 18
},
"end": {
"line": 23,
"column": 21
}
}
},
{
"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": 802,
"end": 806,
"loc": {
"start": {
"line": 23,
"column": 22
},
"end": {
"line": 23,
"column": 26
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 807,
"end": 809,
"loc": {
"start": {
"line": 23,
"column": 27
},
"end": {
"line": 23,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 810,
"end": 814,
"loc": {
"start": {
"line": 23,
"column": 30
},
"end": {
"line": 23,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 814,
"end": 815,
"loc": {
"start": {
"line": 23,
"column": 34
},
"end": {
"line": 23,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 815,
"end": 818,
"loc": {
"start": {
"line": 23,
"column": 35
},
"end": {
"line": 23,
"column": 38
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 819,
"end": 822,
"loc": {
"start": {
"line": 23,
"column": 39
},
"end": {
"line": 23,
"column": 42
}
}
},
{
"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": 823,
"end": 827,
"loc": {
"start": {
"line": 23,
"column": 43
},
"end": {
"line": 23,
"column": 47
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 828,
"end": 830,
"loc": {
"start": {
"line": 23,
"column": 48
},
"end": {
"line": 23,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 831,
"end": 836,
"loc": {
"start": {
"line": 23,
"column": 51
},
"end": {
"line": 23,
"column": 56
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">",
"start": 837,
"end": 838,
"loc": {
"start": {
"line": 23,
"column": 57
},
"end": {
"line": 23,
"column": 58
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 839,
"end": 840,
"loc": {
"start": {
"line": 23,
"column": 59
},
"end": {
"line": 23,
"column": 60
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 841,
"end": 843,
"loc": {
"start": {
"line": 23,
"column": 61
},
"end": {
"line": 23,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 844,
"end": 848,
"loc": {
"start": {
"line": 23,
"column": 64
},
"end": {
"line": 23,
"column": 68
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 848,
"end": 849,
"loc": {
"start": {
"line": 23,
"column": 68
},
"end": {
"line": 23,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 849,
"end": 852,
"loc": {
"start": {
"line": 23,
"column": 69
},
"end": {
"line": 23,
"column": 72
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 852,
"end": 853,
"loc": {
"start": {
"line": 23,
"column": 72
},
"end": {
"line": 23,
"column": 73
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 853,
"end": 856,
"loc": {
"start": {
"line": 23,
"column": 73
},
"end": {
"line": 23,
"column": 76
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 856,
"end": 857,
"loc": {
"start": {
"line": 23,
"column": 76
},
"end": {
"line": 23,
"column": 77
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equals",
"start": 857,
"end": 863,
"loc": {
"start": {
"line": 23,
"column": 77
},
"end": {
"line": 23,
"column": 83
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 863,
"end": 864,
"loc": {
"start": {
"line": 23,
"column": 83
},
"end": {
"line": 23,
"column": 84
}
}
},
{
"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": 864,
"end": 867,
"loc": {
"start": {
"line": 23,
"column": 84
},
"end": {
"line": 23,
"column": 87
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ID",
"start": 868,
"end": 870,
"loc": {
"start": {
"line": 23,
"column": 88
},
"end": {
"line": 23,
"column": 90
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 870,
"end": 871,
"loc": {
"start": {
"line": 23,
"column": 90
},
"end": {
"line": 23,
"column": 91
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "user",
"start": 871,
"end": 875,
"loc": {
"start": {
"line": 23,
"column": 91
},
"end": {
"line": 23,
"column": 95
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 875,
"end": 876,
"loc": {
"start": {
"line": 23,
"column": 95
},
"end": {
"line": 23,
"column": 96
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 877,
"end": 882,
"loc": {
"start": {
"line": 23,
"column": 97
},
"end": {
"line": 23,
"column": 102
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 882,
"end": 883,
"loc": {
"start": {
"line": 23,
"column": 102
},
"end": {
"line": 23,
"column": 103
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 883,
"end": 884,
"loc": {
"start": {
"line": 23,
"column": 103
},
"end": {
"line": 23,
"column": 104
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 884,
"end": 885,
"loc": {
"start": {
"line": 23,
"column": 104
},
"end": {
"line": 23,
"column": 105
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 886,
"end": 887,
"loc": {
"start": {
"line": 23,
"column": 106
},
"end": {
"line": 23,
"column": 107
}
}
},
{
"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": 896,
"end": 901,
"loc": {
"start": {
"line": 24,
"column": 8
},
"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": "nodeVal",
"start": 902,
"end": 909,
"loc": {
"start": {
"line": 24,
"column": 14
},
"end": {
"line": 24,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 910,
"end": 911,
"loc": {
"start": {
"line": 24,
"column": 22
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 912,
"end": 916,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 916,
"end": 917,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 917,
"end": 920,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 32
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 929,
"end": 931,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 932,
"end": 933,
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 12
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 933,
"end": 934,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeVal",
"start": 934,
"end": 941,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 941,
"end": 942,
"loc": {
"start": {
"line": 25,
"column": 20
},
"end": {
"line": 25,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_deleted",
"start": 942,
"end": 950,
"loc": {
"start": {
"line": 25,
"column": 21
},
"end": {
"line": 25,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 950,
"end": 951,
"loc": {
"start": {
"line": 25,
"column": 29
},
"end": {
"line": 25,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 952,
"end": 953,
"loc": {
"start": {
"line": 25,
"column": 31
},
"end": {
"line": 25,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeVal",
"start": 964,
"end": 971,
"loc": {
"start": {
"line": 26,
"column": 10
},
"end": {
"line": 26,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 971,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 17
},
"end": {
"line": 26,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_splitAt",
"start": 972,
"end": 980,
"loc": {
"start": {
"line": 26,
"column": 18
},
"end": {
"line": 26,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 980,
"end": 981,
"loc": {
"start": {
"line": 26,
"column": 26
},
"end": {
"line": 26,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 981,
"end": 982,
"loc": {
"start": {
"line": 26,
"column": 27
},
"end": {
"line": 26,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 982,
"end": 983,
"loc": {
"start": {
"line": 26,
"column": 28
},
"end": {
"line": 26,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 984,
"end": 989,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 989,
"end": 990,
"loc": {
"start": {
"line": 26,
"column": 35
},
"end": {
"line": 26,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeVal",
"start": 1001,
"end": 1008,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1008,
"end": 1009,
"loc": {
"start": {
"line": 27,
"column": 17
},
"end": {
"line": 27,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_delete",
"start": 1009,
"end": 1016,
"loc": {
"start": {
"line": 27,
"column": 18
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1016,
"end": 1017,
"loc": {
"start": {
"line": 27,
"column": 25
},
"end": {
"line": 27,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1017,
"end": 1018,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 27
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1018,
"end": 1019,
"loc": {
"start": {
"line": 27,
"column": 27
},
"end": {
"line": 27,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createDelete",
"start": 1020,
"end": 1032,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1032,
"end": 1033,
"loc": {
"start": {
"line": 27,
"column": 41
},
"end": {
"line": 27,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "gcChildren",
"start": 1034,
"end": 1044,
"loc": {
"start": {
"line": 27,
"column": 43
},
"end": {
"line": 27,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1044,
"end": 1045,
"loc": {
"start": {
"line": 27,
"column": 53
},
"end": {
"line": 27,
"column": 54
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1054,
"end": 1055,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 9
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1064,
"end": 1069,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeLen",
"start": 1070,
"end": 1077,
"loc": {
"start": {
"line": 29,
"column": 14
},
"end": {
"line": 29,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1078,
"end": 1079,
"loc": {
"start": {
"line": 29,
"column": 22
},
"end": {
"line": 29,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeVal",
"start": 1080,
"end": 1087,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1087,
"end": 1088,
"loc": {
"start": {
"line": 29,
"column": 31
},
"end": {
"line": 29,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 1088,
"end": 1095,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "range",
"start": 1104,
"end": 1109,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 13
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "-=",
"start": 1110,
"end": 1112,
"loc": {
"start": {
"line": 30,
"column": 14
},
"end": {
"line": 30,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeLen",
"start": 1113,
"end": 1120,
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 1129,
"end": 1134,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 13
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 1135,
"end": 1137,
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeLen",
"start": 1138,
"end": 1145,
"loc": {
"start": {
"line": 31,
"column": 17
},
"end": {
"line": 31,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 1154,
"end": 1158,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1159,
"end": 1160,
"loc": {
"start": {
"line": 32,
"column": 13
},
"end": {
"line": 32,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 1161,
"end": 1165,
"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": 1165,
"end": 1166,
"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": "next",
"start": 1166,
"end": 1170,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1170,
"end": 1171,
"loc": {
"start": {
"line": 32,
"column": 24
},
"end": {
"line": 32,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1171,
"end": 1172,
"loc": {
"start": {
"line": 32,
"column": 25
},
"end": {
"line": 32,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1179,
"end": 1180,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1185,
"end": 1186,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1189,
"end": 1190,
"loc": {
"start": {
"line": 35,
"column": 2
},
"end": {
"line": 35,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1191,
"end": 1192,
"loc": {
"start": {
"line": 36,
"column": 0
},
"end": {
"line": 36,
"column": 1
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * A Delete change is not a real Item, but it provides the same interface as an\n * Item. The only difference is that it will not be saved in the ItemStore\n * (OperationStore), but instead it is safed in the DeleteStore.\n ",
"start": 1194,
"end": 1433,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 1434,
"end": 1440,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 44,
"column": 6
}
}
},
{
"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": 1441,
"end": 1448,
"loc": {
"start": {
"line": 44,
"column": 7
},
"end": {
"line": 44,
"column": 14
}
}
},
{
"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": 1449,
"end": 1454,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Delete",
"start": 1455,
"end": 1461,
"loc": {
"start": {
"line": 44,
"column": 21
},
"end": {
"line": 44,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1462,
"end": 1463,
"loc": {
"start": {
"line": 44,
"column": 28
},
"end": {
"line": 44,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 1466,
"end": 1477,
"loc": {
"start": {
"line": 45,
"column": 2
},
"end": {
"line": 45,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1478,
"end": 1479,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1479,
"end": 1480,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1481,
"end": 1482,
"loc": {
"start": {
"line": 45,
"column": 17
},
"end": {
"line": 45,
"column": 18
}
}
},
{
"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": 1487,
"end": 1491,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 8
}
}
},
{
"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": 46,
"column": 8
},
"end": {
"line": 46,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_target",
"start": 1492,
"end": 1499,
"loc": {
"start": {
"line": 46,
"column": 9
},
"end": {
"line": 46,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1500,
"end": 1501,
"loc": {
"start": {
"line": 46,
"column": 17
},
"end": {
"line": 46,
"column": 18
}
}
},
{
"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": 1502,
"end": 1506,
"loc": {
"start": {
"line": 46,
"column": 19
},
"end": {
"line": 46,
"column": 23
}
}
},
{
"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": 1511,
"end": 1515,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1515,
"end": 1516,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 1516,
"end": 1523,
"loc": {
"start": {
"line": 47,
"column": 9
},
"end": {
"line": 47,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1524,
"end": 1525,
"loc": {
"start": {
"line": 47,
"column": 17
},
"end": {
"line": 47,
"column": 18
}
}
},
{
"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": 1526,
"end": 1530,
"loc": {
"start": {
"line": 47,
"column": 19
},
"end": {
"line": 47,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1533,
"end": 1534,
"loc": {
"start": {
"line": 48,
"column": 2
},
"end": {
"line": 48,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Read the next Item in a Decoder and fill this Item with the read data.\n *\n * This is called when data is received from a remote peer.\n *\n * @param {Y} y The Yjs instance that this Item belongs to.\n * @param {BinaryDecoder} decoder The decoder object to read data from.\n ",
"start": 1538,
"end": 1845,
"loc": {
"start": {
"line": 50,
"column": 2
},
"end": {
"line": 58,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fromBinary",
"start": 1848,
"end": 1859,
"loc": {
"start": {
"line": 59,
"column": 2
},
"end": {
"line": 59,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1860,
"end": 1861,
"loc": {
"start": {
"line": 59,
"column": 14
},
"end": {
"line": 59,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1861,
"end": 1862,
"loc": {
"start": {
"line": 59,
"column": 15
},
"end": {
"line": 59,
"column": 16
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1862,
"end": 1863,
"loc": {
"start": {
"line": 59,
"column": 16
},
"end": {
"line": 59,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "decoder",
"start": 1864,
"end": 1871,
"loc": {
"start": {
"line": 59,
"column": 18
},
"end": {
"line": 59,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1871,
"end": 1872,
"loc": {
"start": {
"line": 59,
"column": 25
},
"end": {
"line": 59,
"column": 26
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1873,
"end": 1874,
"loc": {
"start": {
"line": 59,
"column": 27
},
"end": {
"line": 59,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " TODO: set target, and add it to missing if not found",
"start": 1879,
"end": 1934,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " There is an edge case in p2p networks!",
"start": 1939,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 45
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1985,
"end": 1990,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "targetID",
"start": 1991,
"end": 1999,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2000,
"end": 2001,
"loc": {
"start": {
"line": 62,
"column": 19
},
"end": {
"line": 62,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "decoder",
"start": 2002,
"end": 2009,
"loc": {
"start": {
"line": 62,
"column": 21
},
"end": {
"line": 62,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2009,
"end": 2010,
"loc": {
"start": {
"line": 62,
"column": 28
},
"end": {
"line": 62,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "readID",
"start": 2010,
"end": 2016,
"loc": {
"start": {
"line": 62,
"column": 29
},
"end": {
"line": 62,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2016,
"end": 2017,
"loc": {
"start": {
"line": 62,
"column": 35
},
"end": {
"line": 62,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2017,
"end": 2018,
"loc": {
"start": {
"line": 62,
"column": 36
},
"end": {
"line": 62,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2023,
"end": 2027,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2027,
"end": 2028,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_targetID",
"start": 2028,
"end": 2037,
"loc": {
"start": {
"line": 63,
"column": 9
},
"end": {
"line": 63,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2038,
"end": 2039,
"loc": {
"start": {
"line": 63,
"column": 19
},
"end": {
"line": 63,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "targetID",
"start": 2040,
"end": 2048,
"loc": {
"start": {
"line": 63,
"column": 21
},
"end": {
"line": 63,
"column": 29
}
}
},
{
"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": 2053,
"end": 2057,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2057,
"end": 2058,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 2058,
"end": 2065,
"loc": {
"start": {
"line": 64,
"column": 9
},
"end": {
"line": 64,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2066,
"end": 2067,
"loc": {
"start": {
"line": 64,
"column": 17
},
"end": {
"line": 64,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "decoder",
"start": 2068,
"end": 2075,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2075,
"end": 2076,
"loc": {
"start": {
"line": 64,
"column": 26
},
"end": {
"line": 64,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "readVarUint",
"start": 2076,
"end": 2087,
"loc": {
"start": {
"line": 64,
"column": 27
},
"end": {
"line": 64,
"column": 38
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2087,
"end": 2088,
"loc": {
"start": {
"line": 64,
"column": 38
},
"end": {
"line": 64,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2088,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 39
},
"end": {
"line": 64,
"column": 40
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2094,
"end": 2096,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 65,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2097,
"end": 2098,
"loc": {
"start": {
"line": 65,
"column": 7
},
"end": {
"line": 65,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2098,
"end": 2099,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2099,
"end": 2100,
"loc": {
"start": {
"line": 65,
"column": 9
},
"end": {
"line": 65,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "os",
"start": 2100,
"end": 2102,
"loc": {
"start": {
"line": 65,
"column": 10
},
"end": {
"line": 65,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2102,
"end": 2103,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getItem",
"start": 2103,
"end": 2110,
"loc": {
"start": {
"line": 65,
"column": 13
},
"end": {
"line": 65,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2110,
"end": 2111,
"loc": {
"start": {
"line": 65,
"column": 20
},
"end": {
"line": 65,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "targetID",
"start": 2111,
"end": 2119,
"loc": {
"start": {
"line": 65,
"column": 21
},
"end": {
"line": 65,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2119,
"end": 2120,
"loc": {
"start": {
"line": 65,
"column": 29
},
"end": {
"line": 65,
"column": 30
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2121,
"end": 2124,
"loc": {
"start": {
"line": 65,
"column": 31
},
"end": {
"line": 65,
"column": 34
}
}
},
{
"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": 2125,
"end": 2129,
"loc": {
"start": {
"line": 65,
"column": 35
},
"end": {
"line": 65,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2129,
"end": 2130,
"loc": {
"start": {
"line": 65,
"column": 39
},
"end": {
"line": 65,
"column": 40
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2131,
"end": 2132,
"loc": {
"start": {
"line": 65,
"column": 41
},
"end": {
"line": 65,
"column": 42
}
}
},
{
"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": 2139,
"end": 2145,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2146,
"end": 2147,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "targetID",
"start": 2147,
"end": 2155,
"loc": {
"start": {
"line": 66,
"column": 14
},
"end": {
"line": 66,
"column": 22
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2155,
"end": 2156,
"loc": {
"start": {
"line": 66,
"column": 22
},
"end": {
"line": 66,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2161,
"end": 2162,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 5
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 2163,
"end": 2167,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2168,
"end": 2169,
"loc": {
"start": {
"line": 67,
"column": 11
},
"end": {
"line": 67,
"column": 12
}
}
},
{
"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": 2176,
"end": 2182,
"loc": {
"start": {
"line": 68,
"column": 6
},
"end": {
"line": 68,
"column": 12
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2183,
"end": 2184,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 14
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2184,
"end": 2185,
"loc": {
"start": {
"line": 68,
"column": 14
},
"end": {
"line": 68,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2190,
"end": 2191,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 69,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2194,
"end": 2195,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 70,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Transform the properties of this type to binary and write it to an\n * BinaryEncoder.\n *\n * This is called when this Item is sent to a remote peer.\n *\n * @param {BinaryEncoder} encoder The encoder to write data to.\n ",
"start": 2199,
"end": 2451,
"loc": {
"start": {
"line": 72,
"column": 2
},
"end": {
"line": 80,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_toBinary",
"start": 2454,
"end": 2463,
"loc": {
"start": {
"line": 81,
"column": 2
},
"end": {
"line": 81,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2464,
"end": 2465,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 81,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "encoder",
"start": 2465,
"end": 2472,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2472,
"end": 2473,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2474,
"end": 2475,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "encoder",
"start": 2480,
"end": 2487,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2487,
"end": 2488,
"loc": {
"start": {
"line": 82,
"column": 11
},
"end": {
"line": 82,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "writeUint8",
"start": 2488,
"end": 2498,
"loc": {
"start": {
"line": 82,
"column": 12
},
"end": {
"line": 82,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2498,
"end": 2499,
"loc": {
"start": {
"line": 82,
"column": 22
},
"end": {
"line": 82,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getStructReference",
"start": 2499,
"end": 2517,
"loc": {
"start": {
"line": 82,
"column": 23
},
"end": {
"line": 82,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2517,
"end": 2518,
"loc": {
"start": {
"line": 82,
"column": 41
},
"end": {
"line": 82,
"column": 42
}
}
},
{
"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": 2518,
"end": 2522,
"loc": {
"start": {
"line": 82,
"column": 42
},
"end": {
"line": 82,
"column": 46
}
}
},
{
"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": 82,
"column": 46
},
"end": {
"line": 82,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 2523,
"end": 2534,
"loc": {
"start": {
"line": 82,
"column": 47
},
"end": {
"line": 82,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2534,
"end": 2535,
"loc": {
"start": {
"line": 82,
"column": 58
},
"end": {
"line": 82,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2535,
"end": 2536,
"loc": {
"start": {
"line": 82,
"column": 59
},
"end": {
"line": 82,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "encoder",
"start": 2541,
"end": 2548,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2548,
"end": 2549,
"loc": {
"start": {
"line": 83,
"column": 11
},
"end": {
"line": 83,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "writeID",
"start": 2549,
"end": 2556,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2556,
"end": 2557,
"loc": {
"start": {
"line": 83,
"column": 19
},
"end": {
"line": 83,
"column": 20
}
}
},
{
"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": 2557,
"end": 2561,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2561,
"end": 2562,
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 83,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_targetID",
"start": 2562,
"end": 2571,
"loc": {
"start": {
"line": 83,
"column": 25
},
"end": {
"line": 83,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2571,
"end": 2572,
"loc": {
"start": {
"line": 83,
"column": 34
},
"end": {
"line": 83,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "encoder",
"start": 2577,
"end": 2584,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2584,
"end": 2585,
"loc": {
"start": {
"line": 84,
"column": 11
},
"end": {
"line": 84,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "writeVarUint",
"start": 2585,
"end": 2597,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2597,
"end": 2598,
"loc": {
"start": {
"line": 84,
"column": 24
},
"end": {
"line": 84,
"column": 25
}
}
},
{
"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": 2598,
"end": 2602,
"loc": {
"start": {
"line": 84,
"column": 25
},
"end": {
"line": 84,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2602,
"end": 2603,
"loc": {
"start": {
"line": 84,
"column": 29
},
"end": {
"line": 84,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 2603,
"end": 2610,
"loc": {
"start": {
"line": 84,
"column": 30
},
"end": {
"line": 84,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2610,
"end": 2611,
"loc": {
"start": {
"line": 84,
"column": 37
},
"end": {
"line": 84,
"column": 38
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2614,
"end": 2615,
"loc": {
"start": {
"line": 85,
"column": 2
},
"end": {
"line": 85,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @private\n * Integrates this Item into the shared structure.\n *\n * This method actually applies the change to the Yjs instance. In the case of\n * Delete it marks the delete target as deleted.\n *\n * * If created remotely (a remote user deleted something),\n * this Delete is applied to all structs in id-range.\n * * If created lokally (e.g. when y-array deletes a range of elements),\n * this struct is broadcasted only (it is already executed)\n ",
"start": 2619,
"end": 3096,
"loc": {
"start": {
"line": 87,
"column": 2
},
"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": "_integrate",
"start": 3099,
"end": 3109,
"loc": {
"start": {
"line": 99,
"column": 2
},
"end": {
"line": 99,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3110,
"end": 3111,
"loc": {
"start": {
"line": 99,
"column": 13
},
"end": {
"line": 99,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3111,
"end": 3112,
"loc": {
"start": {
"line": 99,
"column": 14
},
"end": {
"line": 99,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3112,
"end": 3113,
"loc": {
"start": {
"line": 99,
"column": 15
},
"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": "locallyCreated",
"start": 3114,
"end": 3128,
"loc": {
"start": {
"line": 99,
"column": 17
},
"end": {
"line": 99,
"column": 31
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3129,
"end": 3130,
"loc": {
"start": {
"line": 99,
"column": 32
},
"end": {
"line": 99,
"column": 33
}
}
},
{
"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": 3131,
"end": 3136,
"loc": {
"start": {
"line": 99,
"column": 34
},
"end": {
"line": 99,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3136,
"end": 3137,
"loc": {
"start": {
"line": 99,
"column": 39
},
"end": {
"line": 99,
"column": 40
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3138,
"end": 3139,
"loc": {
"start": {
"line": 99,
"column": 41
},
"end": {
"line": 99,
"column": 42
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 3144,
"end": 3146,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3147,
"end": 3148,
"loc": {
"start": {
"line": 100,
"column": 7
},
"end": {
"line": 100,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 3148,
"end": 3149,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "locallyCreated",
"start": 3149,
"end": 3163,
"loc": {
"start": {
"line": 100,
"column": 9
},
"end": {
"line": 100,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3163,
"end": 3164,
"loc": {
"start": {
"line": 100,
"column": 23
},
"end": {
"line": 100,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3165,
"end": 3166,
"loc": {
"start": {
"line": 100,
"column": 25
},
"end": {
"line": 100,
"column": 26
}
}
},
{
"type": "CommentLine",
"value": " from remote",
"start": 3173,
"end": 3187,
"loc": {
"start": {
"line": 101,
"column": 6
},
"end": {
"line": 101,
"column": 20
}
}
},
{
"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": 3194,
"end": 3199,
"loc": {
"start": {
"line": 102,
"column": 6
},
"end": {
"line": 102,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 3200,
"end": 3202,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3203,
"end": 3204,
"loc": {
"start": {
"line": 102,
"column": 15
},
"end": {
"line": 102,
"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": 3205,
"end": 3209,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3209,
"end": 3210,
"loc": {
"start": {
"line": 102,
"column": 21
},
"end": {
"line": 102,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_targetID",
"start": 3210,
"end": 3219,
"loc": {
"start": {
"line": 102,
"column": 22
},
"end": {
"line": 102,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "deleteItemRange",
"start": 3226,
"end": 3241,
"loc": {
"start": {
"line": 103,
"column": 6
},
"end": {
"line": 103,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3241,
"end": 3242,
"loc": {
"start": {
"line": 103,
"column": 21
},
"end": {
"line": 103,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3242,
"end": 3243,
"loc": {
"start": {
"line": 103,
"column": 22
},
"end": {
"line": 103,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3243,
"end": 3244,
"loc": {
"start": {
"line": 103,
"column": 23
},
"end": {
"line": 103,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 3245,
"end": 3247,
"loc": {
"start": {
"line": 103,
"column": 25
},
"end": {
"line": 103,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3247,
"end": 3248,
"loc": {
"start": {
"line": 103,
"column": 27
},
"end": {
"line": 103,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "user",
"start": 3248,
"end": 3252,
"loc": {
"start": {
"line": 103,
"column": 28
},
"end": {
"line": 103,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3252,
"end": 3253,
"loc": {
"start": {
"line": 103,
"column": 32
},
"end": {
"line": 103,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 3254,
"end": 3256,
"loc": {
"start": {
"line": 103,
"column": 34
},
"end": {
"line": 103,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3256,
"end": 3257,
"loc": {
"start": {
"line": 103,
"column": 36
},
"end": {
"line": 103,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 3257,
"end": 3262,
"loc": {
"start": {
"line": 103,
"column": 37
},
"end": {
"line": 103,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3262,
"end": 3263,
"loc": {
"start": {
"line": 103,
"column": 42
},
"end": {
"line": 103,
"column": 43
}
}
},
{
"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": 3264,
"end": 3268,
"loc": {
"start": {
"line": 103,
"column": 44
},
"end": {
"line": 103,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3268,
"end": 3269,
"loc": {
"start": {
"line": 103,
"column": 48
},
"end": {
"line": 103,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 3269,
"end": 3276,
"loc": {
"start": {
"line": 103,
"column": 49
},
"end": {
"line": 103,
"column": 56
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3276,
"end": 3277,
"loc": {
"start": {
"line": 103,
"column": 56
},
"end": {
"line": 103,
"column": 57
}
}
},
{
"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": 3278,
"end": 3283,
"loc": {
"start": {
"line": 103,
"column": 58
},
"end": {
"line": 103,
"column": 63
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3283,
"end": 3284,
"loc": {
"start": {
"line": 103,
"column": 63
},
"end": {
"line": 103,
"column": 64
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3289,
"end": 3290,
"loc": {
"start": {
"line": 104,
"column": 4
},
"end": {
"line": 104,
"column": 5
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 3291,
"end": 3295,
"loc": {
"start": {
"line": 104,
"column": 6
},
"end": {
"line": 104,
"column": 10
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 3296,
"end": 3298,
"loc": {
"start": {
"line": 104,
"column": 11
},
"end": {
"line": 104,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3299,
"end": 3300,
"loc": {
"start": {
"line": 104,
"column": 14
},
"end": {
"line": 104,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3300,
"end": 3301,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3301,
"end": 3302,
"loc": {
"start": {
"line": 104,
"column": 16
},
"end": {
"line": 104,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "connector",
"start": 3302,
"end": 3311,
"loc": {
"start": {
"line": 104,
"column": 17
},
"end": {
"line": 104,
"column": 26
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3312,
"end": 3315,
"loc": {
"start": {
"line": 104,
"column": 27
},
"end": {
"line": 104,
"column": 30
}
}
},
{
"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": 3316,
"end": 3320,
"loc": {
"start": {
"line": 104,
"column": 31
},
"end": {
"line": 104,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3320,
"end": 3321,
"loc": {
"start": {
"line": 104,
"column": 35
},
"end": {
"line": 104,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3322,
"end": 3323,
"loc": {
"start": {
"line": 104,
"column": 37
},
"end": {
"line": 104,
"column": 38
}
}
},
{
"type": "CommentLine",
"value": " from local",
"start": 3330,
"end": 3343,
"loc": {
"start": {
"line": 105,
"column": 6
},
"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": "y",
"start": 3350,
"end": 3351,
"loc": {
"start": {
"line": 106,
"column": 6
},
"end": {
"line": 106,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3351,
"end": 3352,
"loc": {
"start": {
"line": 106,
"column": 7
},
"end": {
"line": 106,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "connector",
"start": 3352,
"end": 3361,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3361,
"end": 3362,
"loc": {
"start": {
"line": 106,
"column": 17
},
"end": {
"line": 106,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "broadcastStruct",
"start": 3362,
"end": 3377,
"loc": {
"start": {
"line": 106,
"column": 18
},
"end": {
"line": 106,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3377,
"end": 3378,
"loc": {
"start": {
"line": 106,
"column": 33
},
"end": {
"line": 106,
"column": 34
}
}
},
{
"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": 3378,
"end": 3382,
"loc": {
"start": {
"line": 106,
"column": 34
},
"end": {
"line": 106,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3382,
"end": 3383,
"loc": {
"start": {
"line": 106,
"column": 38
},
"end": {
"line": 106,
"column": 39
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3388,
"end": 3389,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 107,
"column": 5
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 3394,
"end": 3396,
"loc": {
"start": {
"line": 108,
"column": 4
},
"end": {
"line": 108,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3397,
"end": 3398,
"loc": {
"start": {
"line": 108,
"column": 7
},
"end": {
"line": 108,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3398,
"end": 3399,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3399,
"end": 3400,
"loc": {
"start": {
"line": 108,
"column": 9
},
"end": {
"line": 108,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "persistence",
"start": 3400,
"end": 3411,
"loc": {
"start": {
"line": 108,
"column": 10
},
"end": {
"line": 108,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3412,
"end": 3415,
"loc": {
"start": {
"line": 108,
"column": 22
},
"end": {
"line": 108,
"column": 25
}
}
},
{
"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": 3416,
"end": 3420,
"loc": {
"start": {
"line": 108,
"column": 26
},
"end": {
"line": 108,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3420,
"end": 3421,
"loc": {
"start": {
"line": 108,
"column": 30
},
"end": {
"line": 108,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3422,
"end": 3423,
"loc": {
"start": {
"line": 108,
"column": 32
},
"end": {
"line": 108,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3430,
"end": 3431,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3431,
"end": 3432,
"loc": {
"start": {
"line": 109,
"column": 7
},
"end": {
"line": 109,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "persistence",
"start": 3432,
"end": 3443,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3443,
"end": 3444,
"loc": {
"start": {
"line": 109,
"column": 19
},
"end": {
"line": 109,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "saveStruct",
"start": 3444,
"end": 3454,
"loc": {
"start": {
"line": 109,
"column": 20
},
"end": {
"line": 109,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3454,
"end": 3455,
"loc": {
"start": {
"line": 109,
"column": 30
},
"end": {
"line": 109,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3455,
"end": 3456,
"loc": {
"start": {
"line": 109,
"column": 31
},
"end": {
"line": 109,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3456,
"end": 3457,
"loc": {
"start": {
"line": 109,
"column": 32
},
"end": {
"line": 109,
"column": 33
}
}
},
{
"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": 3458,
"end": 3462,
"loc": {
"start": {
"line": 109,
"column": 34
},
"end": {
"line": 109,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3462,
"end": 3463,
"loc": {
"start": {
"line": 109,
"column": 38
},
"end": {
"line": 109,
"column": 39
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3468,
"end": 3469,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3472,
"end": 3473,
"loc": {
"start": {
"line": 111,
"column": 2
},
"end": {
"line": 111,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Transform this YXml Type to a readable format.\n * Useful for logging as all Items and Delete implement this method.\n *\n * @private\n ",
"start": 3477,
"end": 3628,
"loc": {
"start": {
"line": 113,
"column": 2
},
"end": {
"line": 118,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_logString",
"start": 3631,
"end": 3641,
"loc": {
"start": {
"line": 119,
"column": 2
},
"end": {
"line": 119,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3642,
"end": 3643,
"loc": {
"start": {
"line": 119,
"column": 13
},
"end": {
"line": 119,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3643,
"end": 3644,
"loc": {
"start": {
"line": 119,
"column": 14
},
"end": {
"line": 119,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3645,
"end": 3646,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 17
}
}
},
{
"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": 3651,
"end": 3657,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 10
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3658,
"end": 3659,
"loc": {
"start": {
"line": 120,
"column": 11
},
"end": {
"line": 120,
"column": 12
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Delete - target: ",
"start": 3659,
"end": 3676,
"loc": {
"start": {
"line": 120,
"column": 12
},
"end": {
"line": 120,
"column": 29
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3676,
"end": 3678,
"loc": {
"start": {
"line": 120,
"column": 29
},
"end": {
"line": 120,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logID",
"start": 3678,
"end": 3683,
"loc": {
"start": {
"line": 120,
"column": 31
},
"end": {
"line": 120,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3683,
"end": 3684,
"loc": {
"start": {
"line": 120,
"column": 36
},
"end": {
"line": 120,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3684,
"end": 3688,
"loc": {
"start": {
"line": 120,
"column": 37
},
"end": {
"line": 120,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3688,
"end": 3689,
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 120,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_targetID",
"start": 3689,
"end": 3698,
"loc": {
"start": {
"line": 120,
"column": 42
},
"end": {
"line": 120,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3698,
"end": 3699,
"loc": {
"start": {
"line": 120,
"column": 51
},
"end": {
"line": 120,
"column": 52
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3699,
"end": 3700,
"loc": {
"start": {
"line": 120,
"column": 52
},
"end": {
"line": 120,
"column": 53
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": ", len: ",
"start": 3700,
"end": 3707,
"loc": {
"start": {
"line": 120,
"column": 53
},
"end": {
"line": 120,
"column": 60
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3707,
"end": 3709,
"loc": {
"start": {
"line": 120,
"column": 60
},
"end": {
"line": 120,
"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": 3709,
"end": 3713,
"loc": {
"start": {
"line": 120,
"column": 62
},
"end": {
"line": 120,
"column": 66
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3713,
"end": 3714,
"loc": {
"start": {
"line": 120,
"column": 66
},
"end": {
"line": 120,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_length",
"start": 3714,
"end": 3721,
"loc": {
"start": {
"line": 120,
"column": 67
},
"end": {
"line": 120,
"column": 74
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3721,
"end": 3722,
"loc": {
"start": {
"line": 120,
"column": 74
},
"end": {
"line": 120,
"column": 75
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 3722,
"end": 3722,
"loc": {
"start": {
"line": 120,
"column": 75
},
"end": {
"line": 120,
"column": 75
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3722,
"end": 3723,
"loc": {
"start": {
"line": 120,
"column": 75
},
"end": {
"line": 120,
"column": 76
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3726,
"end": 3727,
"loc": {
"start": {
"line": 121,
"column": 2
},
"end": {
"line": 121,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3728,
"end": 3729,
"loc": {
"start": {
"line": 122,
"column": 0
},
"end": {
"line": 122,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3730,
"end": 3730,
"loc": {
"start": {
"line": 123,
"column": 0
},
"end": {
"line": 123,
"column": 0
}
}
}
]
}