{ "type": "File", "start": 0, "end": 3473, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 152, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 3473, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 152, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 28, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 28 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 9, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 9 } }, "local": { "type": "Identifier", "start": 7, "end": 9, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 9 }, "identifierName": "ID" }, "name": "ID" } } ], "source": { "type": "StringLiteral", "start": 15, "end": 28, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 28 } }, "extra": { "rawValue": "../ID/ID.js", "raw": "'../ID/ID.js'" }, "value": "../ID/ID.js" } }, { "type": "ImportDeclaration", "start": 29, "end": 96, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 67 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 38, "end": 55, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } }, "imported": { "type": "Identifier", "start": 38, "end": 45, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 }, "identifierName": "default" }, "name": "default" }, "local": { "type": "Identifier", "start": 49, "end": 55, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 26 }, "identifierName": "RootID" }, "name": "RootID" } }, { "type": "ImportSpecifier", "start": 57, "end": 71, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 42 } }, "imported": { "type": "Identifier", "start": 57, "end": 71, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 42 }, "identifierName": "RootFakeUserID" }, "name": "RootFakeUserID" }, "local": { "type": "Identifier", "start": 57, "end": 71, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 42 }, "identifierName": "RootFakeUserID" }, "name": "RootFakeUserID" } } ], "source": { "type": "StringLiteral", "start": 79, "end": 96, "loc": { "start": { "line": 2, "column": 50 }, "end": { "line": 2, "column": 67 } }, "extra": { "rawValue": "../ID/RootID.js", "raw": "'../ID/RootID.js'" }, "value": "../ID/RootID.js", "leadingComments": null, "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * A BinaryDecoder handles the decoding of an ArrayBuffer.\n ", "start": 98, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 3 } } } ] }, { "type": "ExportDefaultDeclaration", "start": 165, "end": 3472, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 151, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 180, "end": 3472, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 151, "column": 1 } }, "id": { "type": "Identifier", "start": 186, "end": 199, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 34 }, "identifierName": "BinaryDecoder" }, "name": "BinaryDecoder", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 200, "end": 3472, "loc": { "start": { "line": 7, "column": 35 }, "end": { "line": 151, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 338, "end": 723, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 26, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 338, "end": 349, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 13 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 351, "end": 357, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 21 }, "identifierName": "buffer" }, "name": "buffer" } ], "body": { "type": "BlockStatement", "start": 359, "end": 723, "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 26, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 365, "end": 702, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 24, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 369, "end": 398, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 37 } }, "left": { "type": "Identifier", "start": 369, "end": 375, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 14 }, "identifierName": "buffer" }, "name": "buffer" }, "operator": "instanceof", "right": { "type": "Identifier", "start": 387, "end": 398, "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 37 }, "identifierName": "ArrayBuffer" }, "name": "ArrayBuffer" } }, "consequent": { "type": "BlockStatement", "start": 400, "end": 452, "loc": { "start": { "line": 13, "column": 39 }, "end": { "line": 15, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 408, "end": 446, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 44 } }, "expression": { "type": "AssignmentExpression", "start": 408, "end": 446, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 408, "end": 421, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 19 } }, "object": { "type": "ThisExpression", "start": 408, "end": 412, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 10 } } }, "property": { "type": "Identifier", "start": 413, "end": 421, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 19 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "right": { "type": "NewExpression", "start": 424, "end": 446, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 44 } }, "callee": { "type": "Identifier", "start": 428, "end": 438, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 36 }, "identifierName": "Uint8Array" }, "name": "Uint8Array" }, "arguments": [ { "type": "Identifier", "start": 439, "end": 445, "loc": { "start": { "line": 14, "column": 37 }, "end": { "line": 14, "column": 43 }, "identifierName": "buffer" }, "name": "buffer" } ] } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 458, "end": 702, "loc": { "start": { "line": 15, "column": 11 }, "end": { "line": 24, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 469, "end": 582, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 19, "column": 7 } }, "left": { "type": "BinaryExpression", "start": 469, "end": 497, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 34 } }, "left": { "type": "Identifier", "start": 469, "end": 475, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 12 }, "identifierName": "buffer" }, "name": "buffer" }, "operator": "instanceof", "right": { "type": "Identifier", "start": 487, "end": 497, "loc": { "start": { "line": 16, "column": 24 }, "end": { "line": 16, "column": 34 }, "identifierName": "Uint8Array" }, "name": "Uint8Array" } }, "operator": "||", "right": { "type": "LogicalExpression", "start": 517, "end": 574, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 65 } }, "left": { "type": "BinaryExpression", "start": 517, "end": 546, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 37 } }, "left": { "type": "UnaryExpression", "start": 517, "end": 530, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 21 } }, "operator": "typeof", "prefix": true, "argument": { "type": "Identifier", "start": 524, "end": 530, "loc": { "start": { "line": 18, "column": 15 }, "end": { "line": 18, "column": 21 }, "identifierName": "Buffer" }, "name": "Buffer" }, "extra": { "parenthesizedArgument": false } }, "operator": "!==", "right": { "type": "StringLiteral", "start": 535, "end": 546, "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 37 } }, "extra": { "rawValue": "undefined", "raw": "'undefined'" }, "value": "undefined" } }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 550, "end": 574, "loc": { "start": { "line": 18, "column": 41 }, "end": { "line": 18, "column": 65 } }, "left": { "type": "Identifier", "start": 550, "end": 556, "loc": { "start": { "line": 18, "column": 41 }, "end": { "line": 18, "column": 47 }, "identifierName": "buffer" }, "name": "buffer" }, "operator": "instanceof", "right": { "type": "Identifier", "start": 568, "end": 574, "loc": { "start": { "line": 18, "column": 59 }, "end": { "line": 18, "column": 65 }, "identifierName": "Buffer" }, "name": "Buffer" } }, "extra": { "parenthesized": true, "parenStart": 507 } } }, "consequent": { "type": "BlockStatement", "start": 589, "end": 625, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 22, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 597, "end": 619, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 597, "end": 619, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 597, "end": 610, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 19 } }, "object": { "type": "ThisExpression", "start": 597, "end": 601, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 10 } } }, "property": { "type": "Identifier", "start": 602, "end": 610, "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 19 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "right": { "type": "Identifier", "start": 613, "end": 619, "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 28 }, "identifierName": "buffer" }, "name": "buffer" } } } ], "directives": [] }, "alternate": { "type": "BlockStatement", "start": 631, "end": 702, "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 24, "column": 5 } }, "body": [ { "type": "ThrowStatement", "start": 639, "end": 696, "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 23, "column": 63 } }, "argument": { "type": "NewExpression", "start": 645, "end": 696, "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 63 } }, "callee": { "type": "Identifier", "start": 649, "end": 654, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 21 }, "identifierName": "Error" }, "name": "Error" }, "arguments": [ { "type": "StringLiteral", "start": 655, "end": 695, "loc": { "start": { "line": 23, "column": 22 }, "end": { "line": 23, "column": 62 } }, "extra": { "rawValue": "Expected an ArrayBuffer or Uint8Array!", "raw": "'Expected an ArrayBuffer or Uint8Array!'" }, "value": "Expected an ArrayBuffer or Uint8Array!" } ] } } ], "directives": [] } } }, { "type": "ExpressionStatement", "start": 707, "end": 719, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 16 } }, "expression": { "type": "AssignmentExpression", "start": 707, "end": 719, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 16 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 707, "end": 715, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 12 } }, "object": { "type": "ThisExpression", "start": 707, "end": 711, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 8 } } }, "property": { "type": "Identifier", "start": 712, "end": 715, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 12 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 718, "end": 719, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 16 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * @param {Uint8Array|Buffer} buffer The binary data that this instance\n * decodes.\n ", "start": 204, "end": 335, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 11, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Clone this decoder instance.\n * Optionally set a new position parameter.\n ", "start": 727, "end": 816, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 31, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 819, "end": 945, "loc": { "start": { "line": 32, "column": 2 }, "end": { "line": 36, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 819, "end": 824, "loc": { "start": { "line": 32, "column": 2 }, "end": { "line": 32, "column": 7 }, "identifierName": "clone" }, "name": "clone", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 826, "end": 843, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 26 } }, "left": { "type": "Identifier", "start": 826, "end": 832, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 15 }, "identifierName": "newPos" }, "name": "newPos" }, "right": { "type": "MemberExpression", "start": 835, "end": 843, "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 26 } }, "object": { "type": "ThisExpression", "start": 835, "end": 839, "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 22 } } }, "property": { "type": "Identifier", "start": 840, "end": 843, "loc": { "start": { "line": 32, "column": 23 }, "end": { "line": 32, "column": 26 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } } ], "body": { "type": "BlockStatement", "start": 845, "end": 945, "loc": { "start": { "line": 32, "column": 28 }, "end": { "line": 36, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 851, "end": 897, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 855, "end": 897, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 50 } }, "id": { "type": "Identifier", "start": 855, "end": 862, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 15 }, "identifierName": "decoder" }, "name": "decoder" }, "init": { "type": "NewExpression", "start": 865, "end": 897, "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 50 } }, "callee": { "type": "Identifier", "start": 869, "end": 882, "loc": { "start": { "line": 33, "column": 22 }, "end": { "line": 33, "column": 35 }, "identifierName": "BinaryDecoder" }, "name": "BinaryDecoder" }, "arguments": [ { "type": "MemberExpression", "start": 883, "end": 896, "loc": { "start": { "line": 33, "column": 36 }, "end": { "line": 33, "column": 49 } }, "object": { "type": "ThisExpression", "start": 883, "end": 887, "loc": { "start": { "line": 33, "column": 36 }, "end": { "line": 33, "column": 40 } } }, "property": { "type": "Identifier", "start": 888, "end": 896, "loc": { "start": { "line": 33, "column": 41 }, "end": { "line": 33, "column": 49 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 902, "end": 922, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 24 } }, "expression": { "type": "AssignmentExpression", "start": 902, "end": 922, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 902, "end": 913, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 15 } }, "object": { "type": "Identifier", "start": 902, "end": 909, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 11 }, "identifierName": "decoder" }, "name": "decoder" }, "property": { "type": "Identifier", "start": 910, "end": 913, "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 15 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "right": { "type": "Identifier", "start": 916, "end": 922, "loc": { "start": { "line": 34, "column": 18 }, "end": { "line": 34, "column": 24 }, "identifierName": "newPos" }, "name": "newPos" } } }, { "type": "ReturnStatement", "start": 927, "end": 941, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 18 } }, "argument": { "type": "Identifier", "start": 934, "end": 941, "loc": { "start": { "line": 35, "column": 11 }, "end": { "line": 35, "column": 18 }, "identifierName": "decoder" }, "name": "decoder" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Clone this decoder instance.\n * Optionally set a new position parameter.\n ", "start": 727, "end": 816, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 31, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Number of bytes.\n ", "start": 949, "end": 980, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 40, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 983, "end": 1034, "loc": { "start": { "line": 41, "column": 2 }, "end": { "line": 43, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 987, "end": 993, "loc": { "start": { "line": 41, "column": 6 }, "end": { "line": 41, "column": 12 }, "identifierName": "length" }, "name": "length" }, "kind": "get", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 997, "end": 1034, "loc": { "start": { "line": 41, "column": 16 }, "end": { "line": 43, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 1003, "end": 1030, "loc": { "start": { "line": 42, "column": 4 }, "end": { "line": 42, "column": 31 } }, "argument": { "type": "MemberExpression", "start": 1010, "end": 1030, "loc": { "start": { "line": 42, "column": 11 }, "end": { "line": 42, "column": 31 } }, "object": { "type": "MemberExpression", "start": 1010, "end": 1023, "loc": { "start": { "line": 42, "column": 11 }, "end": { "line": 42, "column": 24 } }, "object": { "type": "ThisExpression", "start": 1010, "end": 1014, "loc": { "start": { "line": 42, "column": 11 }, "end": { "line": 42, "column": 15 } } }, "property": { "type": "Identifier", "start": 1015, "end": 1023, "loc": { "start": { "line": 42, "column": 16 }, "end": { "line": 42, "column": 24 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "Identifier", "start": 1024, "end": 1030, "loc": { "start": { "line": 42, "column": 25 }, "end": { "line": 42, "column": 31 }, "identifierName": "length" }, "name": "length" }, "computed": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Number of bytes.\n ", "start": 949, "end": 980, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 40, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Skip one byte, jump to the next position.\n ", "start": 1038, "end": 1094, "loc": { "start": { "line": 45, "column": 2 }, "end": { "line": 47, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1097, "end": 1126, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 50, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1097, "end": 1102, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 48, "column": 7 }, "identifierName": "skip8" }, "name": "skip8", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 1106, "end": 1126, "loc": { "start": { "line": 48, "column": 11 }, "end": { "line": 50, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 1112, "end": 1122, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 14 } }, "expression": { "type": "UpdateExpression", "start": 1112, "end": 1122, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 14 } }, "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "start": 1112, "end": 1120, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 12 } }, "object": { "type": "ThisExpression", "start": 1112, "end": 1116, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 8 } } }, "property": { "type": "Identifier", "start": 1117, "end": 1120, "loc": { "start": { "line": 49, "column": 9 }, "end": { "line": 49, "column": 12 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Skip one byte, jump to the next position.\n ", "start": 1038, "end": 1094, "loc": { "start": { "line": 45, "column": 2 }, "end": { "line": 47, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Read one byte as unsigned integer.\n ", "start": 1130, "end": 1179, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 54, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1182, "end": 1237, "loc": { "start": { "line": 55, "column": 2 }, "end": { "line": 57, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1182, "end": 1191, "loc": { "start": { "line": 55, "column": 2 }, "end": { "line": 55, "column": 11 }, "identifierName": "readUint8" }, "name": "readUint8", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 1195, "end": 1237, "loc": { "start": { "line": 55, "column": 15 }, "end": { "line": 57, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 1201, "end": 1233, "loc": { "start": { "line": 56, "column": 4 }, "end": { "line": 56, "column": 36 } }, "argument": { "type": "MemberExpression", "start": 1208, "end": 1233, "loc": { "start": { "line": 56, "column": 11 }, "end": { "line": 56, "column": 36 } }, "object": { "type": "MemberExpression", "start": 1208, "end": 1221, "loc": { "start": { "line": 56, "column": 11 }, "end": { "line": 56, "column": 24 } }, "object": { "type": "ThisExpression", "start": 1208, "end": 1212, "loc": { "start": { "line": 56, "column": 11 }, "end": { "line": 56, "column": 15 } } }, "property": { "type": "Identifier", "start": 1213, "end": 1221, "loc": { "start": { "line": 56, "column": 16 }, "end": { "line": 56, "column": 24 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "UpdateExpression", "start": 1222, "end": 1232, "loc": { "start": { "line": 56, "column": 25 }, "end": { "line": 56, "column": 35 } }, "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "start": 1222, "end": 1230, "loc": { "start": { "line": 56, "column": 25 }, "end": { "line": 56, "column": 33 } }, "object": { "type": "ThisExpression", "start": 1222, "end": 1226, "loc": { "start": { "line": 56, "column": 25 }, "end": { "line": 56, "column": 29 } } }, "property": { "type": "Identifier", "start": 1227, "end": 1230, "loc": { "start": { "line": 56, "column": 30 }, "end": { "line": 56, "column": 33 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } }, "computed": true } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Read one byte as unsigned integer.\n ", "start": 1130, "end": 1179, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 54, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Read 4 bytes as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1241, "end": 1337, "loc": { "start": { "line": 59, "column": 2 }, "end": { "line": 63, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1340, "end": 1569, "loc": { "start": { "line": 64, "column": 2 }, "end": { "line": 72, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1340, "end": 1350, "loc": { "start": { "line": 64, "column": 2 }, "end": { "line": 64, "column": 12 }, "identifierName": "readUint32" }, "name": "readUint32", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 1354, "end": 1569, "loc": { "start": { "line": 64, "column": 16 }, "end": { "line": 72, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 1360, "end": 1531, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 69, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1364, "end": 1531, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 69, "column": 41 } }, "id": { "type": "Identifier", "start": 1364, "end": 1368, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 12 }, "identifierName": "uint" }, "name": "uint" }, "init": { "type": "BinaryExpression", "start": 1377, "end": 1531, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 69, "column": 41 } }, "left": { "type": "BinaryExpression", "start": 1377, "end": 1487, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 68, "column": 41 } }, "left": { "type": "BinaryExpression", "start": 1377, "end": 1443, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 67, "column": 40 } }, "left": { "type": "MemberExpression", "start": 1377, "end": 1400, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 29 } }, "object": { "type": "MemberExpression", "start": 1377, "end": 1390, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 19 } }, "object": { "type": "ThisExpression", "start": 1377, "end": 1381, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 10 } } }, "property": { "type": "Identifier", "start": 1382, "end": 1390, "loc": { "start": { "line": 66, "column": 11 }, "end": { "line": 66, "column": 19 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "MemberExpression", "start": 1391, "end": 1399, "loc": { "start": { "line": 66, "column": 20 }, "end": { "line": 66, "column": 28 } }, "object": { "type": "ThisExpression", "start": 1391, "end": 1395, "loc": { "start": { "line": 66, "column": 20 }, "end": { "line": 66, "column": 24 } } }, "property": { "type": "Identifier", "start": 1396, "end": 1399, "loc": { "start": { "line": 66, "column": 25 }, "end": { "line": 66, "column": 28 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "computed": true }, "operator": "+", "right": { "type": "BinaryExpression", "start": 1410, "end": 1442, "loc": { "start": { "line": 67, "column": 7 }, "end": { "line": 67, "column": 39 } }, "left": { "type": "MemberExpression", "start": 1410, "end": 1437, "loc": { "start": { "line": 67, "column": 7 }, "end": { "line": 67, "column": 34 } }, "object": { "type": "MemberExpression", "start": 1410, "end": 1423, "loc": { "start": { "line": 67, "column": 7 }, "end": { "line": 67, "column": 20 } }, "object": { "type": "ThisExpression", "start": 1410, "end": 1414, "loc": { "start": { "line": 67, "column": 7 }, "end": { "line": 67, "column": 11 } } }, "property": { "type": "Identifier", "start": 1415, "end": 1423, "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 20 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "BinaryExpression", "start": 1424, "end": 1436, "loc": { "start": { "line": 67, "column": 21 }, "end": { "line": 67, "column": 33 } }, "left": { "type": "MemberExpression", "start": 1424, "end": 1432, "loc": { "start": { "line": 67, "column": 21 }, "end": { "line": 67, "column": 29 } }, "object": { "type": "ThisExpression", "start": 1424, "end": 1428, "loc": { "start": { "line": 67, "column": 21 }, "end": { "line": 67, "column": 25 } } }, "property": { "type": "Identifier", "start": 1429, "end": 1432, "loc": { "start": { "line": 67, "column": 26 }, "end": { "line": 67, "column": 29 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "operator": "+", "right": { "type": "NumericLiteral", "start": 1435, "end": 1436, "loc": { "start": { "line": 67, "column": 32 }, "end": { "line": 67, "column": 33 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "computed": true }, "operator": "<<", "right": { "type": "NumericLiteral", "start": 1441, "end": 1442, "loc": { "start": { "line": 67, "column": 38 }, "end": { "line": 67, "column": 39 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 }, "extra": { "parenthesized": true, "parenStart": 1409 } } }, "operator": "+", "right": { "type": "BinaryExpression", "start": 1453, "end": 1486, "loc": { "start": { "line": 68, "column": 7 }, "end": { "line": 68, "column": 40 } }, "left": { "type": "MemberExpression", "start": 1453, "end": 1480, "loc": { "start": { "line": 68, "column": 7 }, "end": { "line": 68, "column": 34 } }, "object": { "type": "MemberExpression", "start": 1453, "end": 1466, "loc": { "start": { "line": 68, "column": 7 }, "end": { "line": 68, "column": 20 } }, "object": { "type": "ThisExpression", "start": 1453, "end": 1457, "loc": { "start": { "line": 68, "column": 7 }, "end": { "line": 68, "column": 11 } } }, "property": { "type": "Identifier", "start": 1458, "end": 1466, "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 20 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "BinaryExpression", "start": 1467, "end": 1479, "loc": { "start": { "line": 68, "column": 21 }, "end": { "line": 68, "column": 33 } }, "left": { "type": "MemberExpression", "start": 1467, "end": 1475, "loc": { "start": { "line": 68, "column": 21 }, "end": { "line": 68, "column": 29 } }, "object": { "type": "ThisExpression", "start": 1467, "end": 1471, "loc": { "start": { "line": 68, "column": 21 }, "end": { "line": 68, "column": 25 } } }, "property": { "type": "Identifier", "start": 1472, "end": 1475, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 29 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "operator": "+", "right": { "type": "NumericLiteral", "start": 1478, "end": 1479, "loc": { "start": { "line": 68, "column": 32 }, "end": { "line": 68, "column": 33 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, "computed": true }, "operator": "<<", "right": { "type": "NumericLiteral", "start": 1484, "end": 1486, "loc": { "start": { "line": 68, "column": 38 }, "end": { "line": 68, "column": 40 } }, "extra": { "rawValue": 16, "raw": "16" }, "value": 16 }, "extra": { "parenthesized": true, "parenStart": 1452 } } }, "operator": "+", "right": { "type": "BinaryExpression", "start": 1497, "end": 1530, "loc": { "start": { "line": 69, "column": 7 }, "end": { "line": 69, "column": 40 } }, "left": { "type": "MemberExpression", "start": 1497, "end": 1524, "loc": { "start": { "line": 69, "column": 7 }, "end": { "line": 69, "column": 34 } }, "object": { "type": "MemberExpression", "start": 1497, "end": 1510, "loc": { "start": { "line": 69, "column": 7 }, "end": { "line": 69, "column": 20 } }, "object": { "type": "ThisExpression", "start": 1497, "end": 1501, "loc": { "start": { "line": 69, "column": 7 }, "end": { "line": 69, "column": 11 } } }, "property": { "type": "Identifier", "start": 1502, "end": 1510, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 20 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "BinaryExpression", "start": 1511, "end": 1523, "loc": { "start": { "line": 69, "column": 21 }, "end": { "line": 69, "column": 33 } }, "left": { "type": "MemberExpression", "start": 1511, "end": 1519, "loc": { "start": { "line": 69, "column": 21 }, "end": { "line": 69, "column": 29 } }, "object": { "type": "ThisExpression", "start": 1511, "end": 1515, "loc": { "start": { "line": 69, "column": 21 }, "end": { "line": 69, "column": 25 } } }, "property": { "type": "Identifier", "start": 1516, "end": 1519, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 29 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "operator": "+", "right": { "type": "NumericLiteral", "start": 1522, "end": 1523, "loc": { "start": { "line": 69, "column": 32 }, "end": { "line": 69, "column": 33 } }, "extra": { "rawValue": 3, "raw": "3" }, "value": 3 } }, "computed": true }, "operator": "<<", "right": { "type": "NumericLiteral", "start": 1528, "end": 1530, "loc": { "start": { "line": 69, "column": 38 }, "end": { "line": 69, "column": 40 } }, "extra": { "rawValue": 24, "raw": "24" }, "value": 24 }, "extra": { "parenthesized": true, "parenStart": 1496 } } } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 1536, "end": 1549, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 70, "column": 17 } }, "expression": { "type": "AssignmentExpression", "start": 1536, "end": 1549, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 70, "column": 17 } }, "operator": "+=", "left": { "type": "MemberExpression", "start": 1536, "end": 1544, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 70, "column": 12 } }, "object": { "type": "ThisExpression", "start": 1536, "end": 1540, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 70, "column": 8 } } }, "property": { "type": "Identifier", "start": 1541, "end": 1544, "loc": { "start": { "line": 70, "column": 9 }, "end": { "line": 70, "column": 12 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 1548, "end": 1549, "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 17 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } } }, { "type": "ReturnStatement", "start": 1554, "end": 1565, "loc": { "start": { "line": 71, "column": 4 }, "end": { "line": 71, "column": 15 } }, "argument": { "type": "Identifier", "start": 1561, "end": 1565, "loc": { "start": { "line": 71, "column": 11 }, "end": { "line": 71, "column": 15 }, "identifierName": "uint" }, "name": "uint" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Read 4 bytes as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1241, "end": 1337, "loc": { "start": { "line": 59, "column": 2 }, "end": { "line": 63, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Look ahead without incrementing position.\n * to the next byte and read it as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1573, "end": 1732, "loc": { "start": { "line": 74, "column": 2 }, "end": { "line": 79, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1735, "end": 1788, "loc": { "start": { "line": 80, "column": 2 }, "end": { "line": 82, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1735, "end": 1744, "loc": { "start": { "line": 80, "column": 2 }, "end": { "line": 80, "column": 11 }, "identifierName": "peekUint8" }, "name": "peekUint8", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 1748, "end": 1788, "loc": { "start": { "line": 80, "column": 15 }, "end": { "line": 82, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 1754, "end": 1784, "loc": { "start": { "line": 81, "column": 4 }, "end": { "line": 81, "column": 34 } }, "argument": { "type": "MemberExpression", "start": 1761, "end": 1784, "loc": { "start": { "line": 81, "column": 11 }, "end": { "line": 81, "column": 34 } }, "object": { "type": "MemberExpression", "start": 1761, "end": 1774, "loc": { "start": { "line": 81, "column": 11 }, "end": { "line": 81, "column": 24 } }, "object": { "type": "ThisExpression", "start": 1761, "end": 1765, "loc": { "start": { "line": 81, "column": 11 }, "end": { "line": 81, "column": 15 } } }, "property": { "type": "Identifier", "start": 1766, "end": 1774, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 24 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "MemberExpression", "start": 1775, "end": 1783, "loc": { "start": { "line": 81, "column": 25 }, "end": { "line": 81, "column": 33 } }, "object": { "type": "ThisExpression", "start": 1775, "end": 1779, "loc": { "start": { "line": 81, "column": 25 }, "end": { "line": 81, "column": 29 } } }, "property": { "type": "Identifier", "start": 1780, "end": 1783, "loc": { "start": { "line": 81, "column": 30 }, "end": { "line": 81, "column": 33 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "computed": true } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Look ahead without incrementing position.\n * to the next byte and read it as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1573, "end": 1732, "loc": { "start": { "line": 74, "column": 2 }, "end": { "line": 79, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Read unsigned integer (32bit) with variable length.\n * 1/8th of the storage is used as encoding overhead.\n * * numbers < 2^7 is stored in one byte.\n * * numbers < 2^14 is stored in two bytes.\n *\n * @return {number} An unsigned integer.\n ", "start": 1792, "end": 2054, "loc": { "start": { "line": 84, "column": 2 }, "end": { "line": 91, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2057, "end": 2395, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 106, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2057, "end": 2068, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 92, "column": 13 }, "identifierName": "readVarUint" }, "name": "readVarUint", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2072, "end": 2395, "loc": { "start": { "line": 92, "column": 17 }, "end": { "line": 106, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 2078, "end": 2089, "loc": { "start": { "line": 93, "column": 4 }, "end": { "line": 93, "column": 15 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2082, "end": 2089, "loc": { "start": { "line": 93, "column": 8 }, "end": { "line": 93, "column": 15 } }, "id": { "type": "Identifier", "start": 2082, "end": 2085, "loc": { "start": { "line": 93, "column": 8 }, "end": { "line": 93, "column": 11 }, "identifierName": "num" }, "name": "num" }, "init": { "type": "NumericLiteral", "start": 2088, "end": 2089, "loc": { "start": { "line": 93, "column": 14 }, "end": { "line": 93, "column": 15 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 2094, "end": 2105, "loc": { "start": { "line": 94, "column": 4 }, "end": { "line": 94, "column": 15 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2098, "end": 2105, "loc": { "start": { "line": 94, "column": 8 }, "end": { "line": 94, "column": 15 } }, "id": { "type": "Identifier", "start": 2098, "end": 2101, "loc": { "start": { "line": 94, "column": 8 }, "end": { "line": 94, "column": 11 }, "identifierName": "len" }, "name": "len" }, "init": { "type": "NumericLiteral", "start": 2104, "end": 2105, "loc": { "start": { "line": 94, "column": 14 }, "end": { "line": 94, "column": 15 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, { "type": "WhileStatement", "start": 2110, "end": 2391, "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 105, "column": 5 } }, "test": { "type": "BooleanLiteral", "start": 2117, "end": 2121, "loc": { "start": { "line": 95, "column": 11 }, "end": { "line": 95, "column": 15 } }, "value": true }, "body": { "type": "BlockStatement", "start": 2123, "end": 2391, "loc": { "start": { "line": 95, "column": 17 }, "end": { "line": 105, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 2131, "end": 2164, "loc": { "start": { "line": 96, "column": 6 }, "end": { "line": 96, "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2135, "end": 2164, "loc": { "start": { "line": 96, "column": 10 }, "end": { "line": 96, "column": 39 } }, "id": { "type": "Identifier", "start": 2135, "end": 2136, "loc": { "start": { "line": 96, "column": 10 }, "end": { "line": 96, "column": 11 }, "identifierName": "r" }, "name": "r" }, "init": { "type": "MemberExpression", "start": 2139, "end": 2164, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 39 } }, "object": { "type": "MemberExpression", "start": 2139, "end": 2152, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 27 } }, "object": { "type": "ThisExpression", "start": 2139, "end": 2143, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 18 } } }, "property": { "type": "Identifier", "start": 2144, "end": 2152, "loc": { "start": { "line": 96, "column": 19 }, "end": { "line": 96, "column": 27 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "UpdateExpression", "start": 2153, "end": 2163, "loc": { "start": { "line": 96, "column": 28 }, "end": { "line": 96, "column": 38 } }, "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "start": 2153, "end": 2161, "loc": { "start": { "line": 96, "column": 28 }, "end": { "line": 96, "column": 36 } }, "object": { "type": "ThisExpression", "start": 2153, "end": 2157, "loc": { "start": { "line": 96, "column": 28 }, "end": { "line": 96, "column": 32 } } }, "property": { "type": "Identifier", "start": 2158, "end": 2161, "loc": { "start": { "line": 96, "column": 33 }, "end": { "line": 96, "column": 36 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } }, "computed": true } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 2171, "end": 2207, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 2171, "end": 2207, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 42 } }, "operator": "=", "left": { "type": "Identifier", "start": 2171, "end": 2174, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 9 }, "identifierName": "num" }, "name": "num" }, "right": { "type": "BinaryExpression", "start": 2177, "end": 2207, "loc": { "start": { "line": 97, "column": 12 }, "end": { "line": 97, "column": 42 } }, "left": { "type": "Identifier", "start": 2177, "end": 2180, "loc": { "start": { "line": 97, "column": 12 }, "end": { "line": 97, "column": 15 }, "identifierName": "num" }, "name": "num" }, "operator": "|", "right": { "type": "BinaryExpression", "start": 2184, "end": 2206, "loc": { "start": { "line": 97, "column": 19 }, "end": { "line": 97, "column": 41 } }, "left": { "type": "BinaryExpression", "start": 2185, "end": 2198, "loc": { "start": { "line": 97, "column": 20 }, "end": { "line": 97, "column": 33 } }, "left": { "type": "Identifier", "start": 2185, "end": 2186, "loc": { "start": { "line": 97, "column": 20 }, "end": { "line": 97, "column": 21 }, "identifierName": "r" }, "name": "r" }, "operator": "&", "right": { "type": "NumericLiteral", "start": 2189, "end": 2198, "loc": { "start": { "line": 97, "column": 24 }, "end": { "line": 97, "column": 33 } }, "extra": { "rawValue": 127, "raw": "0b1111111" }, "value": 127 }, "extra": { "parenthesized": true, "parenStart": 2184 } }, "operator": "<<", "right": { "type": "Identifier", "start": 2203, "end": 2206, "loc": { "start": { "line": 97, "column": 38 }, "end": { "line": 97, "column": 41 }, "identifierName": "len" }, "name": "len" }, "extra": { "parenthesized": true, "parenStart": 2183 } } } } }, { "type": "ExpressionStatement", "start": 2214, "end": 2222, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 14 } }, "expression": { "type": "AssignmentExpression", "start": 2214, "end": 2222, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 14 } }, "operator": "+=", "left": { "type": "Identifier", "start": 2214, "end": 2217, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 9 }, "identifierName": "len" }, "name": "len" }, "right": { "type": "NumericLiteral", "start": 2221, "end": 2222, "loc": { "start": { "line": 98, "column": 13 }, "end": { "line": 98, "column": 14 } }, "extra": { "rawValue": 7, "raw": "7" }, "value": 7 } } }, { "type": "IfStatement", "start": 2229, "end": 2306, "loc": { "start": { "line": 99, "column": 6 }, "end": { "line": 101, "column": 7 } }, "test": { "type": "BinaryExpression", "start": 2233, "end": 2243, "loc": { "start": { "line": 99, "column": 10 }, "end": { "line": 99, "column": 20 } }, "left": { "type": "Identifier", "start": 2233, "end": 2234, "loc": { "start": { "line": 99, "column": 10 }, "end": { "line": 99, "column": 11 }, "identifierName": "r" }, "name": "r" }, "operator": "<", "right": { "type": "BinaryExpression", "start": 2237, "end": 2243, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 20 } }, "left": { "type": "NumericLiteral", "start": 2237, "end": 2238, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 15 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "operator": "<<", "right": { "type": "NumericLiteral", "start": 2242, "end": 2243, "loc": { "start": { "line": 99, "column": 19 }, "end": { "line": 99, "column": 20 } }, "extra": { "rawValue": 7, "raw": "7" }, "value": 7 } } }, "consequent": { "type": "BlockStatement", "start": 2245, "end": 2306, "loc": { "start": { "line": 99, "column": 22 }, "end": { "line": 101, "column": 7 } }, "body": [ { "type": "ReturnStatement", "start": 2255, "end": 2271, "loc": { "start": { "line": 100, "column": 8 }, "end": { "line": 100, "column": 24 } }, "argument": { "type": "BinaryExpression", "start": 2262, "end": 2271, "loc": { "start": { "line": 100, "column": 15 }, "end": { "line": 100, "column": 24 } }, "left": { "type": "Identifier", "start": 2262, "end": 2265, "loc": { "start": { "line": 100, "column": 15 }, "end": { "line": 100, "column": 18 }, "identifierName": "num" }, "name": "num" }, "operator": ">>>", "right": { "type": "NumericLiteral", "start": 2270, "end": 2271, "loc": { "start": { "line": 100, "column": 23 }, "end": { "line": 100, "column": 24 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0, "leadingComments": null, "trailingComments": null }, "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " return unsigned number!", "start": 2272, "end": 2298, "loc": { "start": { "line": 100, "column": 25 }, "end": { "line": 100, "column": 51 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 2313, "end": 2385, "loc": { "start": { "line": 102, "column": 6 }, "end": { "line": 104, "column": 7 } }, "test": { "type": "BinaryExpression", "start": 2317, "end": 2325, "loc": { "start": { "line": 102, "column": 10 }, "end": { "line": 102, "column": 18 } }, "left": { "type": "Identifier", "start": 2317, "end": 2320, "loc": { "start": { "line": 102, "column": 10 }, "end": { "line": 102, "column": 13 }, "identifierName": "len" }, "name": "len" }, "operator": ">", "right": { "type": "NumericLiteral", "start": 2323, "end": 2325, "loc": { "start": { "line": 102, "column": 16 }, "end": { "line": 102, "column": 18 } }, "extra": { "rawValue": 35, "raw": "35" }, "value": 35 } }, "consequent": { "type": "BlockStatement", "start": 2327, "end": 2385, "loc": { "start": { "line": 102, "column": 20 }, "end": { "line": 104, "column": 7 } }, "body": [ { "type": "ThrowStatement", "start": 2337, "end": 2377, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 48 } }, "argument": { "type": "NewExpression", "start": 2343, "end": 2377, "loc": { "start": { "line": 103, "column": 14 }, "end": { "line": 103, "column": 48 } }, "callee": { "type": "Identifier", "start": 2347, "end": 2352, "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 23 }, "identifierName": "Error" }, "name": "Error" }, "arguments": [ { "type": "StringLiteral", "start": 2353, "end": 2376, "loc": { "start": { "line": 103, "column": 24 }, "end": { "line": 103, "column": 47 } }, "extra": { "rawValue": "Integer out of range!", "raw": "'Integer out of range!'" }, "value": "Integer out of range!" } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Read unsigned integer (32bit) with variable length.\n * 1/8th of the storage is used as encoding overhead.\n * * numbers < 2^7 is stored in one byte.\n * * numbers < 2^14 is stored in two bytes.\n *\n * @return {number} An unsigned integer.\n ", "start": 1792, "end": 2054, "loc": { "start": { "line": 84, "column": 2 }, "end": { "line": 91, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Read string of variable length\n * * varUint is used to store the length of the string\n *\n * @return {String} The read String.\n ", "start": 2399, "end": 2545, "loc": { "start": { "line": 108, "column": 2 }, "end": { "line": 113, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2548, "end": 2845, "loc": { "start": { "line": 114, "column": 2 }, "end": { "line": 122, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2548, "end": 2561, "loc": { "start": { "line": 114, "column": 2 }, "end": { "line": 114, "column": 15 }, "identifierName": "readVarString" }, "name": "readVarString", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2565, "end": 2845, "loc": { "start": { "line": 114, "column": 19 }, "end": { "line": 122, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 2571, "end": 2599, "loc": { "start": { "line": 115, "column": 4 }, "end": { "line": 115, "column": 32 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2575, "end": 2599, "loc": { "start": { "line": 115, "column": 8 }, "end": { "line": 115, "column": 32 } }, "id": { "type": "Identifier", "start": 2575, "end": 2578, "loc": { "start": { "line": 115, "column": 8 }, "end": { "line": 115, "column": 11 }, "identifierName": "len" }, "name": "len" }, "init": { "type": "CallExpression", "start": 2581, "end": 2599, "loc": { "start": { "line": 115, "column": 14 }, "end": { "line": 115, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 2581, "end": 2597, "loc": { "start": { "line": 115, "column": 14 }, "end": { "line": 115, "column": 30 } }, "object": { "type": "ThisExpression", "start": 2581, "end": 2585, "loc": { "start": { "line": 115, "column": 14 }, "end": { "line": 115, "column": 18 } } }, "property": { "type": "Identifier", "start": 2586, "end": 2597, "loc": { "start": { "line": 115, "column": 19 }, "end": { "line": 115, "column": 30 }, "identifierName": "readVarUint" }, "name": "readVarUint" }, "computed": false }, "arguments": [] } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 2604, "end": 2630, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 116, "column": 30 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2608, "end": 2630, "loc": { "start": { "line": 116, "column": 8 }, "end": { "line": 116, "column": 30 } }, "id": { "type": "Identifier", "start": 2608, "end": 2613, "loc": { "start": { "line": 116, "column": 8 }, "end": { "line": 116, "column": 13 }, "identifierName": "bytes" }, "name": "bytes" }, "init": { "type": "NewExpression", "start": 2616, "end": 2630, "loc": { "start": { "line": 116, "column": 16 }, "end": { "line": 116, "column": 30 } }, "callee": { "type": "Identifier", "start": 2620, "end": 2625, "loc": { "start": { "line": 116, "column": 20 }, "end": { "line": 116, "column": 25 }, "identifierName": "Array" }, "name": "Array" }, "arguments": [ { "type": "Identifier", "start": 2626, "end": 2629, "loc": { "start": { "line": 116, "column": 26 }, "end": { "line": 116, "column": 29 }, "identifierName": "len" }, "name": "len" } ] } } ], "kind": "let" }, { "type": "ForStatement", "start": 2635, "end": 2715, "loc": { "start": { "line": 117, "column": 4 }, "end": { "line": 119, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 2640, "end": 2649, "loc": { "start": { "line": 117, "column": 9 }, "end": { "line": 117, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2644, "end": 2649, "loc": { "start": { "line": 117, "column": 13 }, "end": { "line": 117, "column": 18 } }, "id": { "type": "Identifier", "start": 2644, "end": 2645, "loc": { "start": { "line": 117, "column": 13 }, "end": { "line": 117, "column": 14 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 2648, "end": 2649, "loc": { "start": { "line": 117, "column": 17 }, "end": { "line": 117, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 2651, "end": 2658, "loc": { "start": { "line": 117, "column": 20 }, "end": { "line": 117, "column": 27 } }, "left": { "type": "Identifier", "start": 2651, "end": 2652, "loc": { "start": { "line": 117, "column": 20 }, "end": { "line": 117, "column": 21 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "Identifier", "start": 2655, "end": 2658, "loc": { "start": { "line": 117, "column": 24 }, "end": { "line": 117, "column": 27 }, "identifierName": "len" }, "name": "len" } }, "update": { "type": "UpdateExpression", "start": 2660, "end": 2663, "loc": { "start": { "line": 117, "column": 29 }, "end": { "line": 117, "column": 32 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 2660, "end": 2661, "loc": { "start": { "line": 117, "column": 29 }, "end": { "line": 117, "column": 30 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 2665, "end": 2715, "loc": { "start": { "line": 117, "column": 34 }, "end": { "line": 119, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2673, "end": 2709, "loc": { "start": { "line": 118, "column": 6 }, "end": { "line": 118, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 2673, "end": 2709, "loc": { "start": { "line": 118, "column": 6 }, "end": { "line": 118, "column": 42 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2673, "end": 2681, "loc": { "start": { "line": 118, "column": 6 }, "end": { "line": 118, "column": 14 } }, "object": { "type": "Identifier", "start": 2673, "end": 2678, "loc": { "start": { "line": 118, "column": 6 }, "end": { "line": 118, "column": 11 }, "identifierName": "bytes" }, "name": "bytes" }, "property": { "type": "Identifier", "start": 2679, "end": 2680, "loc": { "start": { "line": 118, "column": 12 }, "end": { "line": 118, "column": 13 }, "identifierName": "i" }, "name": "i" }, "computed": true }, "right": { "type": "MemberExpression", "start": 2684, "end": 2709, "loc": { "start": { "line": 118, "column": 17 }, "end": { "line": 118, "column": 42 } }, "object": { "type": "MemberExpression", "start": 2684, "end": 2697, "loc": { "start": { "line": 118, "column": 17 }, "end": { "line": 118, "column": 30 } }, "object": { "type": "ThisExpression", "start": 2684, "end": 2688, "loc": { "start": { "line": 118, "column": 17 }, "end": { "line": 118, "column": 21 } } }, "property": { "type": "Identifier", "start": 2689, "end": 2697, "loc": { "start": { "line": 118, "column": 22 }, "end": { "line": 118, "column": 30 }, "identifierName": "uint8arr" }, "name": "uint8arr" }, "computed": false }, "property": { "type": "UpdateExpression", "start": 2698, "end": 2708, "loc": { "start": { "line": 118, "column": 31 }, "end": { "line": 118, "column": 41 } }, "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "start": 2698, "end": 2706, "loc": { "start": { "line": 118, "column": 31 }, "end": { "line": 118, "column": 39 } }, "object": { "type": "ThisExpression", "start": 2698, "end": 2702, "loc": { "start": { "line": 118, "column": 31 }, "end": { "line": 118, "column": 35 } } }, "property": { "type": "Identifier", "start": 2703, "end": 2706, "loc": { "start": { "line": 118, "column": 36 }, "end": { "line": 118, "column": 39 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } }, "computed": true } } } ], "directives": [] } }, { "type": "VariableDeclaration", "start": 2720, "end": 2788, "loc": { "start": { "line": 120, "column": 4 }, "end": { "line": 120, "column": 72 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2724, "end": 2788, "loc": { "start": { "line": 120, "column": 8 }, "end": { "line": 120, "column": 72 } }, "id": { "type": "Identifier", "start": 2724, "end": 2737, "loc": { "start": { "line": 120, "column": 8 }, "end": { "line": 120, "column": 21 }, "identifierName": "encodedString" }, "name": "encodedString" }, "init": { "type": "CallExpression", "start": 2740, "end": 2788, "loc": { "start": { "line": 120, "column": 24 }, "end": { "line": 120, "column": 72 } }, "callee": { "type": "MemberExpression", "start": 2740, "end": 2784, "loc": { "start": { "line": 120, "column": 24 }, "end": { "line": 120, "column": 68 } }, "object": { "type": "CallExpression", "start": 2740, "end": 2779, "loc": { "start": { "line": 120, "column": 24 }, "end": { "line": 120, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 2740, "end": 2749, "loc": { "start": { "line": 120, "column": 24 }, "end": { "line": 120, "column": 33 } }, "object": { "type": "Identifier", "start": 2740, "end": 2745, "loc": { "start": { "line": 120, "column": 24 }, "end": { "line": 120, "column": 29 }, "identifierName": "bytes" }, "name": "bytes" }, "property": { "type": "Identifier", "start": 2746, "end": 2749, "loc": { "start": { "line": 120, "column": 30 }, "end": { "line": 120, "column": 33 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 2750, "end": 2778, "loc": { "start": { "line": 120, "column": 34 }, "end": { "line": 120, "column": 62 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 2750, "end": 2751, "loc": { "start": { "line": 120, "column": 34 }, "end": { "line": 120, "column": 35 }, "identifierName": "b" }, "name": "b" } ], "body": { "type": "CallExpression", "start": 2755, "end": 2778, "loc": { "start": { "line": 120, "column": 39 }, "end": { "line": 120, "column": 62 } }, "callee": { "type": "MemberExpression", "start": 2755, "end": 2775, "loc": { "start": { "line": 120, "column": 39 }, "end": { "line": 120, "column": 59 } }, "object": { "type": "Identifier", "start": 2755, "end": 2761, "loc": { "start": { "line": 120, "column": 39 }, "end": { "line": 120, "column": 45 }, "identifierName": "String" }, "name": "String" }, "property": { "type": "Identifier", "start": 2762, "end": 2775, "loc": { "start": { "line": 120, "column": 46 }, "end": { "line": 120, "column": 59 }, "identifierName": "fromCodePoint" }, "name": "fromCodePoint" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2776, "end": 2777, "loc": { "start": { "line": 120, "column": 60 }, "end": { "line": 120, "column": 61 }, "identifierName": "b" }, "name": "b" } ] } } ] }, "property": { "type": "Identifier", "start": 2780, "end": 2784, "loc": { "start": { "line": 120, "column": 64 }, "end": { "line": 120, "column": 68 }, "identifierName": "join" }, "name": "join" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2785, "end": 2787, "loc": { "start": { "line": 120, "column": 69 }, "end": { "line": 120, "column": 71 } }, "extra": { "rawValue": "", "raw": "''" }, "value": "" } ] } } ], "kind": "let" }, { "type": "ReturnStatement", "start": 2793, "end": 2841, "loc": { "start": { "line": 121, "column": 4 }, "end": { "line": 121, "column": 52 } }, "argument": { "type": "CallExpression", "start": 2800, "end": 2841, "loc": { "start": { "line": 121, "column": 11 }, "end": { "line": 121, "column": 52 } }, "callee": { "type": "Identifier", "start": 2800, "end": 2818, "loc": { "start": { "line": 121, "column": 11 }, "end": { "line": 121, "column": 29 }, "identifierName": "decodeURIComponent" }, "name": "decodeURIComponent" }, "arguments": [ { "type": "CallExpression", "start": 2819, "end": 2840, "loc": { "start": { "line": 121, "column": 30 }, "end": { "line": 121, "column": 51 } }, "callee": { "type": "Identifier", "start": 2819, "end": 2825, "loc": { "start": { "line": 121, "column": 30 }, "end": { "line": 121, "column": 36 }, "identifierName": "escape" }, "name": "escape" }, "arguments": [ { "type": "Identifier", "start": 2826, "end": 2839, "loc": { "start": { "line": 121, "column": 37 }, "end": { "line": 121, "column": 50 }, "identifierName": "encodedString" }, "name": "encodedString" } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Read string of variable length\n * * varUint is used to store the length of the string\n *\n * @return {String} The read String.\n ", "start": 2399, "end": 2545, "loc": { "start": { "line": 108, "column": 2 }, "end": { "line": 113, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Look ahead and read varString without incrementing position\n ", "start": 2849, "end": 2923, "loc": { "start": { "line": 124, "column": 2 }, "end": { "line": 126, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2926, "end": 3036, "loc": { "start": { "line": 127, "column": 2 }, "end": { "line": 132, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2926, "end": 2939, "loc": { "start": { "line": 127, "column": 2 }, "end": { "line": 127, "column": 15 }, "identifierName": "peekVarString" }, "name": "peekVarString", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2943, "end": 3036, "loc": { "start": { "line": 127, "column": 19 }, "end": { "line": 132, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 2949, "end": 2967, "loc": { "start": { "line": 128, "column": 4 }, "end": { "line": 128, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2953, "end": 2967, "loc": { "start": { "line": 128, "column": 8 }, "end": { "line": 128, "column": 22 } }, "id": { "type": "Identifier", "start": 2953, "end": 2956, "loc": { "start": { "line": 128, "column": 8 }, "end": { "line": 128, "column": 11 }, "identifierName": "pos" }, "name": "pos" }, "init": { "type": "MemberExpression", "start": 2959, "end": 2967, "loc": { "start": { "line": 128, "column": 14 }, "end": { "line": 128, "column": 22 } }, "object": { "type": "ThisExpression", "start": 2959, "end": 2963, "loc": { "start": { "line": 128, "column": 14 }, "end": { "line": 128, "column": 18 } } }, "property": { "type": "Identifier", "start": 2964, "end": 2967, "loc": { "start": { "line": 128, "column": 19 }, "end": { "line": 128, "column": 22 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 2972, "end": 3000, "loc": { "start": { "line": 129, "column": 4 }, "end": { "line": 129, "column": 32 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2976, "end": 3000, "loc": { "start": { "line": 129, "column": 8 }, "end": { "line": 129, "column": 32 } }, "id": { "type": "Identifier", "start": 2976, "end": 2977, "loc": { "start": { "line": 129, "column": 8 }, "end": { "line": 129, "column": 9 }, "identifierName": "s" }, "name": "s" }, "init": { "type": "CallExpression", "start": 2980, "end": 3000, "loc": { "start": { "line": 129, "column": 12 }, "end": { "line": 129, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 2980, "end": 2998, "loc": { "start": { "line": 129, "column": 12 }, "end": { "line": 129, "column": 30 } }, "object": { "type": "ThisExpression", "start": 2980, "end": 2984, "loc": { "start": { "line": 129, "column": 12 }, "end": { "line": 129, "column": 16 } } }, "property": { "type": "Identifier", "start": 2985, "end": 2998, "loc": { "start": { "line": 129, "column": 17 }, "end": { "line": 129, "column": 30 }, "identifierName": "readVarString" }, "name": "readVarString" }, "computed": false }, "arguments": [] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 3005, "end": 3019, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 130, "column": 18 } }, "expression": { "type": "AssignmentExpression", "start": 3005, "end": 3019, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 130, "column": 18 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 3005, "end": 3013, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 130, "column": 12 } }, "object": { "type": "ThisExpression", "start": 3005, "end": 3009, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 130, "column": 8 } } }, "property": { "type": "Identifier", "start": 3010, "end": 3013, "loc": { "start": { "line": 130, "column": 9 }, "end": { "line": 130, "column": 12 }, "identifierName": "pos" }, "name": "pos" }, "computed": false }, "right": { "type": "Identifier", "start": 3016, "end": 3019, "loc": { "start": { "line": 130, "column": 15 }, "end": { "line": 130, "column": 18 }, "identifierName": "pos" }, "name": "pos" } } }, { "type": "ReturnStatement", "start": 3024, "end": 3032, "loc": { "start": { "line": 131, "column": 4 }, "end": { "line": 131, "column": 12 } }, "argument": { "type": "Identifier", "start": 3031, "end": 3032, "loc": { "start": { "line": 131, "column": 11 }, "end": { "line": 131, "column": 12 }, "identifierName": "s" }, "name": "s" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Look ahead and read varString without incrementing position\n ", "start": 2849, "end": 2923, "loc": { "start": { "line": 124, "column": 2 }, "end": { "line": 126, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Read ID.\n * * If first varUint read is 0xFFFFFF a RootID is returned.\n * * Otherwise an ID is returned.\n *\n * @return ID\n ", "start": 3040, "end": 3183, "loc": { "start": { "line": 134, "column": 2 }, "end": { "line": 140, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 3186, "end": 3470, "loc": { "start": { "line": 141, "column": 2 }, "end": { "line": 150, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3186, "end": 3192, "loc": { "start": { "line": 141, "column": 2 }, "end": { "line": 141, "column": 8 }, "identifierName": "readID" }, "name": "readID", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 3196, "end": 3470, "loc": { "start": { "line": 141, "column": 12 }, "end": { "line": 150, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 3202, "end": 3231, "loc": { "start": { "line": 142, "column": 4 }, "end": { "line": 142, "column": 33 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3206, "end": 3231, "loc": { "start": { "line": 142, "column": 8 }, "end": { "line": 142, "column": 33 } }, "id": { "type": "Identifier", "start": 3206, "end": 3210, "loc": { "start": { "line": 142, "column": 8 }, "end": { "line": 142, "column": 12 }, "identifierName": "user" }, "name": "user" }, "init": { "type": "CallExpression", "start": 3213, "end": 3231, "loc": { "start": { "line": 142, "column": 15 }, "end": { "line": 142, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 3213, "end": 3229, "loc": { "start": { "line": 142, "column": 15 }, "end": { "line": 142, "column": 31 } }, "object": { "type": "ThisExpression", "start": 3213, "end": 3217, "loc": { "start": { "line": 142, "column": 15 }, "end": { "line": 142, "column": 19 } } }, "property": { "type": "Identifier", "start": 3218, "end": 3229, "loc": { "start": { "line": 142, "column": 20 }, "end": { "line": 142, "column": 31 }, "identifierName": "readVarUint" }, "name": "readVarUint" }, "computed": false }, "arguments": [] } } ], "kind": "let" }, { "type": "IfStatement", "start": 3236, "end": 3422, "loc": { "start": { "line": 143, "column": 4 }, "end": { "line": 148, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 3240, "end": 3263, "loc": { "start": { "line": 143, "column": 8 }, "end": { "line": 143, "column": 31 } }, "left": { "type": "Identifier", "start": 3240, "end": 3244, "loc": { "start": { "line": 143, "column": 8 }, "end": { "line": 143, "column": 12 }, "identifierName": "user" }, "name": "user" }, "operator": "===", "right": { "type": "Identifier", "start": 3249, "end": 3263, "loc": { "start": { "line": 143, "column": 17 }, "end": { "line": 143, "column": 31 }, "identifierName": "RootFakeUserID" }, "name": "RootFakeUserID" } }, "consequent": { "type": "BlockStatement", "start": 3265, "end": 3422, "loc": { "start": { "line": 143, "column": 33 }, "end": { "line": 148, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 3313, "end": 3363, "loc": { "start": { "line": 145, "column": 6 }, "end": { "line": 145, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3319, "end": 3363, "loc": { "start": { "line": 145, "column": 12 }, "end": { "line": 145, "column": 56 } }, "id": { "type": "Identifier", "start": 3319, "end": 3322, "loc": { "start": { "line": 145, "column": 12 }, "end": { "line": 145, "column": 15 }, "identifierName": "rid" }, "name": "rid", "leadingComments": null }, "init": { "type": "NewExpression", "start": 3325, "end": 3363, "loc": { "start": { "line": 145, "column": 18 }, "end": { "line": 145, "column": 56 } }, "callee": { "type": "Identifier", "start": 3329, "end": 3335, "loc": { "start": { "line": 145, "column": 22 }, "end": { "line": 145, "column": 28 }, "identifierName": "RootID" }, "name": "RootID" }, "arguments": [ { "type": "CallExpression", "start": 3336, "end": 3356, "loc": { "start": { "line": 145, "column": 29 }, "end": { "line": 145, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 3336, "end": 3354, "loc": { "start": { "line": 145, "column": 29 }, "end": { "line": 145, "column": 47 } }, "object": { "type": "ThisExpression", "start": 3336, "end": 3340, "loc": { "start": { "line": 145, "column": 29 }, "end": { "line": 145, "column": 33 } } }, "property": { "type": "Identifier", "start": 3341, "end": 3354, "loc": { "start": { "line": 145, "column": 34 }, "end": { "line": 145, "column": 47 }, "identifierName": "readVarString" }, "name": "readVarString" }, "computed": false }, "arguments": [] }, { "type": "NullLiteral", "start": 3358, "end": 3362, "loc": { "start": { "line": 145, "column": 51 }, "end": { "line": 145, "column": 55 } } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " read property name and type id", "start": 3273, "end": 3306, "loc": { "start": { "line": 144, "column": 6 }, "end": { "line": 144, "column": 39 } } } ] }, { "type": "ExpressionStatement", "start": 3370, "end": 3399, "loc": { "start": { "line": 146, "column": 6 }, "end": { "line": 146, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 3370, "end": 3399, "loc": { "start": { "line": 146, "column": 6 }, "end": { "line": 146, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 3370, "end": 3378, "loc": { "start": { "line": 146, "column": 6 }, "end": { "line": 146, "column": 14 } }, "object": { "type": "Identifier", "start": 3370, "end": 3373, "loc": { "start": { "line": 146, "column": 6 }, "end": { "line": 146, "column": 9 }, "identifierName": "rid" }, "name": "rid" }, "property": { "type": "Identifier", "start": 3374, "end": 3378, "loc": { "start": { "line": 146, "column": 10 }, "end": { "line": 146, "column": 14 }, "identifierName": "type" }, "name": "type" }, "computed": false }, "right": { "type": "CallExpression", "start": 3381, "end": 3399, "loc": { "start": { "line": 146, "column": 17 }, "end": { "line": 146, "column": 35 } }, "callee": { "type": "MemberExpression", "start": 3381, "end": 3397, "loc": { "start": { "line": 146, "column": 17 }, "end": { "line": 146, "column": 33 } }, "object": { "type": "ThisExpression", "start": 3381, "end": 3385, "loc": { "start": { "line": 146, "column": 17 }, "end": { "line": 146, "column": 21 } } }, "property": { "type": "Identifier", "start": 3386, "end": 3397, "loc": { "start": { "line": 146, "column": 22 }, "end": { "line": 146, "column": 33 }, "identifierName": "readVarUint" }, "name": "readVarUint" }, "computed": false }, "arguments": [] } } }, { "type": "ReturnStatement", "start": 3406, "end": 3416, "loc": { "start": { "line": 147, "column": 6 }, "end": { "line": 147, "column": 16 } }, "argument": { "type": "Identifier", "start": 3413, "end": 3416, "loc": { "start": { "line": 147, "column": 13 }, "end": { "line": 147, "column": 16 }, "identifierName": "rid" }, "name": "rid" } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 3427, "end": 3466, "loc": { "start": { "line": 149, "column": 4 }, "end": { "line": 149, "column": 43 } }, "argument": { "type": "NewExpression", "start": 3434, "end": 3466, "loc": { "start": { "line": 149, "column": 11 }, "end": { "line": 149, "column": 43 } }, "callee": { "type": "Identifier", "start": 3438, "end": 3440, "loc": { "start": { "line": 149, "column": 15 }, "end": { "line": 149, "column": 17 }, "identifierName": "ID" }, "name": "ID" }, "arguments": [ { "type": "Identifier", "start": 3441, "end": 3445, "loc": { "start": { "line": 149, "column": 18 }, "end": { "line": 149, "column": 22 }, "identifierName": "user" }, "name": "user" }, { "type": "CallExpression", "start": 3447, "end": 3465, "loc": { "start": { "line": 149, "column": 24 }, "end": { "line": 149, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 3447, "end": 3463, "loc": { "start": { "line": 149, "column": 24 }, "end": { "line": 149, "column": 40 } }, "object": { "type": "ThisExpression", "start": 3447, "end": 3451, "loc": { "start": { "line": 149, "column": 24 }, "end": { "line": 149, "column": 28 } } }, "property": { "type": "Identifier", "start": 3452, "end": 3463, "loc": { "start": { "line": 149, "column": 29 }, "end": { "line": 149, "column": 40 }, "identifierName": "readVarUint" }, "name": "readVarUint" }, "computed": false }, "arguments": [] } ] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Read ID.\n * * If first varUint read is 0xFFFFFF a RootID is returned.\n * * Otherwise an ID is returned.\n *\n * @return ID\n ", "start": 3040, "end": 3183, "loc": { "start": { "line": 134, "column": 2 }, "end": { "line": 140, "column": 5 } } } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * A BinaryDecoder handles the decoding of an ArrayBuffer.\n ", "start": 98, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * A BinaryDecoder handles the decoding of an ArrayBuffer.\n ", "start": 98, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 3 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\n * A BinaryDecoder handles the decoding of an ArrayBuffer.\n ", "start": 98, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * @param {Uint8Array|Buffer} buffer The binary data that this instance\n * decodes.\n ", "start": 204, "end": 335, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 11, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Clone this decoder instance.\n * Optionally set a new position parameter.\n ", "start": 727, "end": 816, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 31, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Number of bytes.\n ", "start": 949, "end": 980, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 40, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Skip one byte, jump to the next position.\n ", "start": 1038, "end": 1094, "loc": { "start": { "line": 45, "column": 2 }, "end": { "line": 47, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Read one byte as unsigned integer.\n ", "start": 1130, "end": 1179, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 54, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Read 4 bytes as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1241, "end": 1337, "loc": { "start": { "line": 59, "column": 2 }, "end": { "line": 63, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Look ahead without incrementing position.\n * to the next byte and read it as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1573, "end": 1732, "loc": { "start": { "line": 74, "column": 2 }, "end": { "line": 79, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Read unsigned integer (32bit) with variable length.\n * 1/8th of the storage is used as encoding overhead.\n * * numbers < 2^7 is stored in one byte.\n * * numbers < 2^14 is stored in two bytes.\n *\n * @return {number} An unsigned integer.\n ", "start": 1792, "end": 2054, "loc": { "start": { "line": 84, "column": 2 }, "end": { "line": 91, "column": 5 } } }, { "type": "CommentLine", "value": " return unsigned number!", "start": 2272, "end": 2298, "loc": { "start": { "line": 100, "column": 25 }, "end": { "line": 100, "column": 51 } } }, { "type": "CommentBlock", "value": "*\n * Read string of variable length\n * * varUint is used to store the length of the string\n *\n * @return {String} The read String.\n ", "start": 2399, "end": 2545, "loc": { "start": { "line": 108, "column": 2 }, "end": { "line": 113, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Look ahead and read varString without incrementing position\n ", "start": 2849, "end": 2923, "loc": { "start": { "line": 124, "column": 2 }, "end": { "line": 126, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Read ID.\n * * If first varUint read is 0xFFFFFF a RootID is returned.\n * * Otherwise an ID is returned.\n *\n * @return ID\n ", "start": 3040, "end": 3183, "loc": { "start": { "line": 134, "column": 2 }, "end": { "line": 140, "column": 5 } } }, { "type": "CommentLine", "value": " read property name and type id", "start": 3273, "end": 3306, "loc": { "start": { "line": 144, "column": 6 }, "end": { "line": 144, "column": 39 } } } ], "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": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ID", "start": 7, "end": 9, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 10, "end": 14, "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../ID/ID.js", "start": 15, "end": 28, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 28 } } }, { "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": 29, "end": 35, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 36, "end": 37, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "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": 38, "end": 45, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "as", "start": 46, "end": 48, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "RootID", "start": 49, "end": 55, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 26 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 55, "end": 56, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "RootFakeUserID", "start": 57, "end": 71, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 42 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 72, "end": 73, "loc": { "start": { "line": 2, "column": 43 }, "end": { "line": 2, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 74, "end": 78, "loc": { "start": { "line": 2, "column": 45 }, "end": { "line": 2, "column": 49 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../ID/RootID.js", "start": 79, "end": 96, "loc": { "start": { "line": 2, "column": 50 }, "end": { "line": 2, "column": 67 } } }, { "type": "CommentBlock", "value": "*\n * A BinaryDecoder handles the decoding of an ArrayBuffer.\n ", "start": 98, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "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": 165, "end": 171, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "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": 172, "end": 179, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "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": 180, "end": 185, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 7, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BinaryDecoder", "start": 186, "end": 199, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 200, "end": 201, "loc": { "start": { "line": 7, "column": 35 }, "end": { "line": 7, "column": 36 } } }, { "type": "CommentBlock", "value": "*\n * @param {Uint8Array|Buffer} buffer The binary data that this instance\n * decodes.\n ", "start": 204, "end": 335, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 11, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 338, "end": 349, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 350, "end": 351, "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": "buffer", "start": 351, "end": 357, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 357, "end": 358, "loc": { "start": { "line": 12, "column": 21 }, "end": { "line": 12, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 359, "end": 360, "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 24 } } }, { "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": 365, "end": 367, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 368, "end": 369, "loc": { "start": { "line": 13, "column": 7 }, "end": { "line": 13, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffer", "start": 369, "end": 375, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 14 } } }, { "type": { "label": "instanceof", "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "instanceof", "start": 376, "end": 386, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ArrayBuffer", "start": 387, "end": 398, "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 37 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 398, "end": 399, "loc": { "start": { "line": 13, "column": 37 }, "end": { "line": 13, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 400, "end": 401, "loc": { "start": { "line": 13, "column": 39 }, "end": { "line": 13, "column": 40 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 408, "end": 412, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 412, "end": 413, "loc": { "start": { "line": 14, "column": 10 }, "end": { "line": 14, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 413, "end": 421, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 422, "end": 423, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 21 } } }, { "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": 424, "end": 427, "loc": { "start": { "line": 14, "column": 22 }, "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": "Uint8Array", "start": 428, "end": 438, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 36 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 438, "end": 439, "loc": { "start": { "line": 14, "column": 36 }, "end": { "line": 14, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffer", "start": 439, "end": 445, "loc": { "start": { "line": 14, "column": 37 }, "end": { "line": 14, "column": 43 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 445, "end": 446, "loc": { "start": { "line": 14, "column": 43 }, "end": { "line": 14, "column": 44 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 451, "end": 452, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "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": 453, "end": 457, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "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": 458, "end": 460, "loc": { "start": { "line": 15, "column": 11 }, "end": { "line": 15, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 461, "end": 462, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffer", "start": 469, "end": 475, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 12 } } }, { "type": { "label": "instanceof", "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "instanceof", "start": 476, "end": 486, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Uint8Array", "start": 487, "end": 497, "loc": { "start": { "line": 16, "column": 24 }, "end": { "line": 16, "column": 34 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 498, "end": 500, "loc": { "start": { "line": 16, "column": 35 }, "end": { "line": 16, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 507, "end": 508, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 7 } } }, { "type": { "label": "typeof", "keyword": "typeof", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "typeof", "start": 517, "end": 523, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Buffer", "start": 524, "end": 530, "loc": { "start": { "line": 18, "column": 15 }, "end": { "line": 18, "column": 21 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 531, "end": 534, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 25 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "undefined", "start": 535, "end": 546, "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 37 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 547, "end": 549, "loc": { "start": { "line": 18, "column": 38 }, "end": { "line": 18, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffer", "start": 550, "end": 556, "loc": { "start": { "line": 18, "column": 41 }, "end": { "line": 18, "column": 47 } } }, { "type": { "label": "instanceof", "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "instanceof", "start": 557, "end": 567, "loc": { "start": { "line": 18, "column": 48 }, "end": { "line": 18, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Buffer", "start": 568, "end": 574, "loc": { "start": { "line": 18, "column": 59 }, "end": { "line": 18, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 581, "end": 582, "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 7 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 587, "end": 588, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 5 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 589, "end": 590, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 7 } } }, { "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": 597, "end": 601, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 601, "end": 602, "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 602, "end": 610, "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 611, "end": 612, "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffer", "start": 613, "end": 619, "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 624, "end": 625, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "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": 626, "end": 630, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 10 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 631, "end": 632, "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 12 } } }, { "type": { "label": "throw", "keyword": "throw", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "throw", "start": 639, "end": 644, "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 23, "column": 11 } } }, { "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": 645, "end": 648, "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Error", "start": 649, "end": 654, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 654, "end": 655, "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Expected an ArrayBuffer or Uint8Array!", "start": 655, "end": 695, "loc": { "start": { "line": 23, "column": 22 }, "end": { "line": 23, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 695, "end": 696, "loc": { "start": { "line": 23, "column": 62 }, "end": { "line": 23, "column": 63 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 701, "end": 702, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 5 } } }, { "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": 707, "end": 711, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 711, "end": 712, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 712, "end": 715, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 716, "end": 717, "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 14 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 718, "end": 719, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 722, "end": 723, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 26, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Clone this decoder instance.\n * Optionally set a new position parameter.\n ", "start": 727, "end": 816, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 31, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clone", "start": 819, "end": 824, "loc": { "start": { "line": 32, "column": 2 }, "end": { "line": 32, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 825, "end": 826, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newPos", "start": 826, "end": 832, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 15 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 833, "end": 834, "loc": { "start": { "line": 32, "column": 16 }, "end": { "line": 32, "column": 17 } } }, { "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": 835, "end": 839, "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 839, "end": 840, "loc": { "start": { "line": 32, "column": 22 }, "end": { "line": 32, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 840, "end": 843, "loc": { "start": { "line": 32, "column": 23 }, "end": { "line": 32, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 843, "end": 844, "loc": { "start": { "line": 32, "column": 26 }, "end": { "line": 32, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 845, "end": 846, "loc": { "start": { "line": 32, "column": 28 }, "end": { "line": 32, "column": 29 } } }, { "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": 851, "end": 854, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "decoder", "start": 855, "end": 862, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 15 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 863, "end": 864, "loc": { "start": { "line": 33, "column": 16 }, "end": { "line": 33, "column": 17 } } }, { "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": 865, "end": 868, "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BinaryDecoder", "start": 869, "end": 882, "loc": { "start": { "line": 33, "column": 22 }, "end": { "line": 33, "column": 35 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 882, "end": 883, "loc": { "start": { "line": 33, "column": 35 }, "end": { "line": 33, "column": 36 } } }, { "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": 883, "end": 887, "loc": { "start": { "line": 33, "column": 36 }, "end": { "line": 33, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 887, "end": 888, "loc": { "start": { "line": 33, "column": 40 }, "end": { "line": 33, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 888, "end": 896, "loc": { "start": { "line": 33, "column": 41 }, "end": { "line": 33, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 896, "end": 897, "loc": { "start": { "line": 33, "column": 49 }, "end": { "line": 33, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "decoder", "start": 902, "end": 909, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 909, "end": 910, "loc": { "start": { "line": 34, "column": 11 }, "end": { "line": 34, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 910, "end": 913, "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 15 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 914, "end": 915, "loc": { "start": { "line": 34, "column": 16 }, "end": { "line": 34, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newPos", "start": 916, "end": 922, "loc": { "start": { "line": 34, "column": 18 }, "end": { "line": 34, "column": 24 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 927, "end": 933, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "decoder", "start": 934, "end": 941, "loc": { "start": { "line": 35, "column": 11 }, "end": { "line": 35, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 944, "end": 945, "loc": { "start": { "line": 36, "column": 2 }, "end": { "line": 36, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Number of bytes.\n ", "start": 949, "end": 980, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 40, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 983, "end": 986, "loc": { "start": { "line": 41, "column": 2 }, "end": { "line": 41, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 987, "end": 993, "loc": { "start": { "line": 41, "column": 6 }, "end": { "line": 41, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 994, "end": 995, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 995, "end": 996, "loc": { "start": { "line": 41, "column": 14 }, "end": { "line": 41, "column": 15 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 997, "end": 998, "loc": { "start": { "line": 41, "column": 16 }, "end": { "line": 41, "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": 1003, "end": 1009, "loc": { "start": { "line": 42, "column": 4 }, "end": { "line": 42, "column": 10 } } }, { "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": 1010, "end": 1014, "loc": { "start": { "line": 42, "column": 11 }, "end": { "line": 42, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1014, "end": 1015, "loc": { "start": { "line": 42, "column": 15 }, "end": { "line": 42, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1015, "end": 1023, "loc": { "start": { "line": 42, "column": 16 }, "end": { "line": 42, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1023, "end": 1024, "loc": { "start": { "line": 42, "column": 24 }, "end": { "line": 42, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 1024, "end": 1030, "loc": { "start": { "line": 42, "column": 25 }, "end": { "line": 42, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1033, "end": 1034, "loc": { "start": { "line": 43, "column": 2 }, "end": { "line": 43, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Skip one byte, jump to the next position.\n ", "start": 1038, "end": 1094, "loc": { "start": { "line": 45, "column": 2 }, "end": { "line": 47, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "skip8", "start": 1097, "end": 1102, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 48, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1103, "end": 1104, "loc": { "start": { "line": 48, "column": 8 }, "end": { "line": 48, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1104, "end": 1105, "loc": { "start": { "line": 48, "column": 9 }, "end": { "line": 48, "column": 10 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1106, "end": 1107, "loc": { "start": { "line": 48, "column": 11 }, "end": { "line": 48, "column": 12 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1112, "end": 1116, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1116, "end": 1117, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1117, "end": 1120, "loc": { "start": { "line": 49, "column": 9 }, "end": { "line": 49, "column": 12 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 1120, "end": 1122, "loc": { "start": { "line": 49, "column": 12 }, "end": { "line": 49, "column": 14 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1125, "end": 1126, "loc": { "start": { "line": 50, "column": 2 }, "end": { "line": 50, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Read one byte as unsigned integer.\n ", "start": 1130, "end": 1179, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 54, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readUint8", "start": 1182, "end": 1191, "loc": { "start": { "line": 55, "column": 2 }, "end": { "line": 55, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1192, "end": 1193, "loc": { "start": { "line": 55, "column": 12 }, "end": { "line": 55, "column": 13 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1193, "end": 1194, "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1195, "end": 1196, "loc": { "start": { "line": 55, "column": 15 }, "end": { "line": 55, "column": 16 } } }, { "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": 1201, "end": 1207, "loc": { "start": { "line": 56, "column": 4 }, "end": { "line": 56, "column": 10 } } }, { "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": 1208, "end": 1212, "loc": { "start": { "line": 56, "column": 11 }, "end": { "line": 56, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1212, "end": 1213, "loc": { "start": { "line": 56, "column": 15 }, "end": { "line": 56, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1213, "end": 1221, "loc": { "start": { "line": 56, "column": 16 }, "end": { "line": 56, "column": 24 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1221, "end": 1222, "loc": { "start": { "line": 56, "column": 24 }, "end": { "line": 56, "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": 1222, "end": 1226, "loc": { "start": { "line": 56, "column": 25 }, "end": { "line": 56, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1226, "end": 1227, "loc": { "start": { "line": 56, "column": 29 }, "end": { "line": 56, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1227, "end": 1230, "loc": { "start": { "line": 56, "column": 30 }, "end": { "line": 56, "column": 33 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 1230, "end": 1232, "loc": { "start": { "line": 56, "column": 33 }, "end": { "line": 56, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1232, "end": 1233, "loc": { "start": { "line": 56, "column": 35 }, "end": { "line": 56, "column": 36 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1236, "end": 1237, "loc": { "start": { "line": 57, "column": 2 }, "end": { "line": 57, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Read 4 bytes as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1241, "end": 1337, "loc": { "start": { "line": 59, "column": 2 }, "end": { "line": 63, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readUint32", "start": 1340, "end": 1350, "loc": { "start": { "line": 64, "column": 2 }, "end": { "line": 64, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1351, "end": 1352, "loc": { "start": { "line": 64, "column": 13 }, "end": { "line": 64, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1352, "end": 1353, "loc": { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 15 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1354, "end": 1355, "loc": { "start": { "line": 64, "column": 16 }, "end": { "line": 64, "column": 17 } } }, { "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": 1360, "end": 1363, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 65, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint", "start": 1364, "end": 1368, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1369, "end": 1370, "loc": { "start": { "line": 65, "column": 13 }, "end": { "line": 65, "column": 14 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1377, "end": 1381, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1381, "end": 1382, "loc": { "start": { "line": 66, "column": 10 }, "end": { "line": 66, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1382, "end": 1390, "loc": { "start": { "line": 66, "column": 11 }, "end": { "line": 66, "column": 19 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1390, "end": 1391, "loc": { "start": { "line": 66, "column": 19 }, "end": { "line": 66, "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": 1391, "end": 1395, "loc": { "start": { "line": 66, "column": 20 }, "end": { "line": 66, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1395, "end": 1396, "loc": { "start": { "line": 66, "column": 24 }, "end": { "line": 66, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1396, "end": 1399, "loc": { "start": { "line": 66, "column": 25 }, "end": { "line": 66, "column": 28 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1399, "end": 1400, "loc": { "start": { "line": 66, "column": 28 }, "end": { "line": 66, "column": 29 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1401, "end": 1402, "loc": { "start": { "line": 66, "column": 30 }, "end": { "line": 66, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1409, "end": 1410, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 7 } } }, { "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": 1410, "end": 1414, "loc": { "start": { "line": 67, "column": 7 }, "end": { "line": 67, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1414, "end": 1415, "loc": { "start": { "line": 67, "column": 11 }, "end": { "line": 67, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1415, "end": 1423, "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 20 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1423, "end": 1424, "loc": { "start": { "line": 67, "column": 20 }, "end": { "line": 67, "column": 21 } } }, { "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": 1424, "end": 1428, "loc": { "start": { "line": 67, "column": 21 }, "end": { "line": 67, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1428, "end": 1429, "loc": { "start": { "line": 67, "column": 25 }, "end": { "line": 67, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1429, "end": 1432, "loc": { "start": { "line": 67, "column": 26 }, "end": { "line": 67, "column": 29 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1433, "end": 1434, "loc": { "start": { "line": 67, "column": 30 }, "end": { "line": 67, "column": 31 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 1435, "end": 1436, "loc": { "start": { "line": 67, "column": 32 }, "end": { "line": 67, "column": 33 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1436, "end": 1437, "loc": { "start": { "line": 67, "column": 33 }, "end": { "line": 67, "column": 34 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": "<<", "start": 1438, "end": 1440, "loc": { "start": { "line": 67, "column": 35 }, "end": { "line": 67, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 1441, "end": 1442, "loc": { "start": { "line": 67, "column": 38 }, "end": { "line": 67, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1442, "end": 1443, "loc": { "start": { "line": 67, "column": 39 }, "end": { "line": 67, "column": 40 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1444, "end": 1445, "loc": { "start": { "line": 67, "column": 41 }, "end": { "line": 67, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1452, "end": 1453, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 7 } } }, { "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": 1453, "end": 1457, "loc": { "start": { "line": 68, "column": 7 }, "end": { "line": 68, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1457, "end": 1458, "loc": { "start": { "line": 68, "column": 11 }, "end": { "line": 68, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1458, "end": 1466, "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 20 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1466, "end": 1467, "loc": { "start": { "line": 68, "column": 20 }, "end": { "line": 68, "column": 21 } } }, { "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": 1467, "end": 1471, "loc": { "start": { "line": 68, "column": 21 }, "end": { "line": 68, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1471, "end": 1472, "loc": { "start": { "line": 68, "column": 25 }, "end": { "line": 68, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1472, "end": 1475, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 29 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1476, "end": 1477, "loc": { "start": { "line": 68, "column": 30 }, "end": { "line": 68, "column": 31 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 1478, "end": 1479, "loc": { "start": { "line": 68, "column": 32 }, "end": { "line": 68, "column": 33 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1479, "end": 1480, "loc": { "start": { "line": 68, "column": 33 }, "end": { "line": 68, "column": 34 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": "<<", "start": 1481, "end": 1483, "loc": { "start": { "line": 68, "column": 35 }, "end": { "line": 68, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 16, "start": 1484, "end": 1486, "loc": { "start": { "line": 68, "column": 38 }, "end": { "line": 68, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1486, "end": 1487, "loc": { "start": { "line": 68, "column": 40 }, "end": { "line": 68, "column": 41 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1488, "end": 1489, "loc": { "start": { "line": 68, "column": 42 }, "end": { "line": 68, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1496, "end": 1497, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 7 } } }, { "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": 1497, "end": 1501, "loc": { "start": { "line": 69, "column": 7 }, "end": { "line": 69, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1501, "end": 1502, "loc": { "start": { "line": 69, "column": 11 }, "end": { "line": 69, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1502, "end": 1510, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 20 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1510, "end": 1511, "loc": { "start": { "line": 69, "column": 20 }, "end": { "line": 69, "column": 21 } } }, { "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": 69, "column": 21 }, "end": { "line": 69, "column": 25 } } }, { "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": 69, "column": 25 }, "end": { "line": 69, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1516, "end": 1519, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 29 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1520, "end": 1521, "loc": { "start": { "line": 69, "column": 30 }, "end": { "line": 69, "column": 31 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 3, "start": 1522, "end": 1523, "loc": { "start": { "line": 69, "column": 32 }, "end": { "line": 69, "column": 33 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1523, "end": 1524, "loc": { "start": { "line": 69, "column": 33 }, "end": { "line": 69, "column": 34 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": "<<", "start": 1525, "end": 1527, "loc": { "start": { "line": 69, "column": 35 }, "end": { "line": 69, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 24, "start": 1528, "end": 1530, "loc": { "start": { "line": 69, "column": 38 }, "end": { "line": 69, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1530, "end": 1531, "loc": { "start": { "line": 69, "column": 40 }, "end": { "line": 69, "column": 41 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1536, "end": 1540, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 70, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1540, "end": 1541, "loc": { "start": { "line": 70, "column": 8 }, "end": { "line": 70, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1541, "end": 1544, "loc": { "start": { "line": 70, "column": 9 }, "end": { "line": 70, "column": 12 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "+=", "start": 1545, "end": 1547, "loc": { "start": { "line": 70, "column": 13 }, "end": { "line": 70, "column": 15 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 1548, "end": 1549, "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "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": 1554, "end": 1560, "loc": { "start": { "line": 71, "column": 4 }, "end": { "line": 71, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint", "start": 1561, "end": 1565, "loc": { "start": { "line": 71, "column": 11 }, "end": { "line": 71, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1568, "end": 1569, "loc": { "start": { "line": 72, "column": 2 }, "end": { "line": 72, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Look ahead without incrementing position.\n * to the next byte and read it as unsigned integer.\n *\n * @return {number} An unsigned integer.\n ", "start": 1573, "end": 1732, "loc": { "start": { "line": 74, "column": 2 }, "end": { "line": 79, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "peekUint8", "start": 1735, "end": 1744, "loc": { "start": { "line": 80, "column": 2 }, "end": { "line": 80, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1745, "end": 1746, "loc": { "start": { "line": 80, "column": 12 }, "end": { "line": 80, "column": 13 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1746, "end": 1747, "loc": { "start": { "line": 80, "column": 13 }, "end": { "line": 80, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1748, "end": 1749, "loc": { "start": { "line": 80, "column": 15 }, "end": { "line": 80, "column": 16 } } }, { "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": 1754, "end": 1760, "loc": { "start": { "line": 81, "column": 4 }, "end": { "line": 81, "column": 10 } } }, { "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": 1761, "end": 1765, "loc": { "start": { "line": 81, "column": 11 }, "end": { "line": 81, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1765, "end": 1766, "loc": { "start": { "line": 81, "column": 15 }, "end": { "line": 81, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 1766, "end": 1774, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 24 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1774, "end": 1775, "loc": { "start": { "line": 81, "column": 24 }, "end": { "line": 81, "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": 1775, "end": 1779, "loc": { "start": { "line": 81, "column": 25 }, "end": { "line": 81, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1779, "end": 1780, "loc": { "start": { "line": 81, "column": 29 }, "end": { "line": 81, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1780, "end": 1783, "loc": { "start": { "line": 81, "column": 30 }, "end": { "line": 81, "column": 33 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1783, "end": 1784, "loc": { "start": { "line": 81, "column": 33 }, "end": { "line": 81, "column": 34 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1787, "end": 1788, "loc": { "start": { "line": 82, "column": 2 }, "end": { "line": 82, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Read unsigned integer (32bit) with variable length.\n * 1/8th of the storage is used as encoding overhead.\n * * numbers < 2^7 is stored in one byte.\n * * numbers < 2^14 is stored in two bytes.\n *\n * @return {number} An unsigned integer.\n ", "start": 1792, "end": 2054, "loc": { "start": { "line": 84, "column": 2 }, "end": { "line": 91, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarUint", "start": 2057, "end": 2068, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 92, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2069, "end": 2070, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2070, "end": 2071, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2072, "end": 2073, "loc": { "start": { "line": 92, "column": 17 }, "end": { "line": 92, "column": 18 } } }, { "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": 2078, "end": 2081, "loc": { "start": { "line": 93, "column": 4 }, "end": { "line": 93, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2082, "end": 2085, "loc": { "start": { "line": 93, "column": 8 }, "end": { "line": 93, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2086, "end": 2087, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 13 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2088, "end": 2089, "loc": { "start": { "line": 93, "column": 14 }, "end": { "line": 93, "column": 15 } } }, { "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": 2094, "end": 2097, "loc": { "start": { "line": 94, "column": 4 }, "end": { "line": 94, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2098, "end": 2101, "loc": { "start": { "line": 94, "column": 8 }, "end": { "line": 94, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2102, "end": 2103, "loc": { "start": { "line": 94, "column": 12 }, "end": { "line": 94, "column": 13 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2104, "end": 2105, "loc": { "start": { "line": 94, "column": 14 }, "end": { "line": 94, "column": 15 } } }, { "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": 2110, "end": 2115, "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 95, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2116, "end": 2117, "loc": { "start": { "line": 95, "column": 10 }, "end": { "line": 95, "column": 11 } } }, { "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": 2117, "end": 2121, "loc": { "start": { "line": 95, "column": 11 }, "end": { "line": 95, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2121, "end": 2122, "loc": { "start": { "line": 95, "column": 15 }, "end": { "line": 95, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2123, "end": 2124, "loc": { "start": { "line": 95, "column": 17 }, "end": { "line": 95, "column": 18 } } }, { "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": 2131, "end": 2134, "loc": { "start": { "line": 96, "column": 6 }, "end": { "line": 96, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "r", "start": 2135, "end": 2136, "loc": { "start": { "line": 96, "column": 10 }, "end": { "line": 96, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2137, "end": 2138, "loc": { "start": { "line": 96, "column": 12 }, "end": { "line": 96, "column": 13 } } }, { "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": 2139, "end": 2143, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2143, "end": 2144, "loc": { "start": { "line": 96, "column": 18 }, "end": { "line": 96, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 2144, "end": 2152, "loc": { "start": { "line": 96, "column": 19 }, "end": { "line": 96, "column": 27 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2152, "end": 2153, "loc": { "start": { "line": 96, "column": 27 }, "end": { "line": 96, "column": 28 } } }, { "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": 2153, "end": 2157, "loc": { "start": { "line": 96, "column": 28 }, "end": { "line": 96, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2157, "end": 2158, "loc": { "start": { "line": 96, "column": 32 }, "end": { "line": 96, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 2158, "end": 2161, "loc": { "start": { "line": 96, "column": 33 }, "end": { "line": 96, "column": 36 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2161, "end": 2163, "loc": { "start": { "line": 96, "column": 36 }, "end": { "line": 96, "column": 38 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2163, "end": 2164, "loc": { "start": { "line": 96, "column": 38 }, "end": { "line": 96, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2171, "end": 2174, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 9 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2175, "end": 2176, "loc": { "start": { "line": 97, "column": 10 }, "end": { "line": 97, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2177, "end": 2180, "loc": { "start": { "line": 97, "column": 12 }, "end": { "line": 97, "column": 15 } } }, { "type": { "label": "|", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 3, "updateContext": null }, "value": "|", "start": 2181, "end": 2182, "loc": { "start": { "line": 97, "column": 16 }, "end": { "line": 97, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2183, "end": 2184, "loc": { "start": { "line": 97, "column": 18 }, "end": { "line": 97, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2184, "end": 2185, "loc": { "start": { "line": 97, "column": 19 }, "end": { "line": 97, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "r", "start": 2185, "end": 2186, "loc": { "start": { "line": 97, "column": 20 }, "end": { "line": 97, "column": 21 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 2187, "end": 2188, "loc": { "start": { "line": 97, "column": 22 }, "end": { "line": 97, "column": 23 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 127, "start": 2189, "end": 2198, "loc": { "start": { "line": 97, "column": 24 }, "end": { "line": 97, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2198, "end": 2199, "loc": { "start": { "line": 97, "column": 33 }, "end": { "line": 97, "column": 34 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": "<<", "start": 2200, "end": 2202, "loc": { "start": { "line": 97, "column": 35 }, "end": { "line": 97, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2203, "end": 2206, "loc": { "start": { "line": 97, "column": 38 }, "end": { "line": 97, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2206, "end": 2207, "loc": { "start": { "line": 97, "column": 41 }, "end": { "line": 97, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2214, "end": 2217, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 9 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "+=", "start": 2218, "end": 2220, "loc": { "start": { "line": 98, "column": 10 }, "end": { "line": 98, "column": 12 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 7, "start": 2221, "end": 2222, "loc": { "start": { "line": 98, "column": 13 }, "end": { "line": 98, "column": 14 } } }, { "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": 2229, "end": 2231, "loc": { "start": { "line": 99, "column": 6 }, "end": { "line": 99, "column": 8 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2232, "end": 2233, "loc": { "start": { "line": 99, "column": 9 }, "end": { "line": 99, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "r", "start": 2233, "end": 2234, "loc": { "start": { "line": 99, "column": 10 }, "end": { "line": 99, "column": 11 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2235, "end": 2236, "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 13 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 2237, "end": 2238, "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": 8, "updateContext": null }, "value": "<<", "start": 2239, "end": 2241, "loc": { "start": { "line": 99, "column": 16 }, "end": { "line": 99, "column": 18 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 7, "start": 2242, "end": 2243, "loc": { "start": { "line": 99, "column": 19 }, "end": { "line": 99, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2243, "end": 2244, "loc": { "start": { "line": 99, "column": 20 }, "end": { "line": 99, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2245, "end": 2246, "loc": { "start": { "line": 99, "column": 22 }, "end": { "line": 99, "column": 23 } } }, { "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": 2255, "end": 2261, "loc": { "start": { "line": 100, "column": 8 }, "end": { "line": 100, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2262, "end": 2265, "loc": { "start": { "line": 100, "column": 15 }, "end": { "line": 100, "column": 18 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": ">>>", "start": 2266, "end": 2269, "loc": { "start": { "line": 100, "column": 19 }, "end": { "line": 100, "column": 22 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2270, "end": 2271, "loc": { "start": { "line": 100, "column": 23 }, "end": { "line": 100, "column": 24 } } }, { "type": "CommentLine", "value": " return unsigned number!", "start": 2272, "end": 2298, "loc": { "start": { "line": 100, "column": 25 }, "end": { "line": 100, "column": 51 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2305, "end": 2306, "loc": { "start": { "line": 101, "column": 6 }, "end": { "line": 101, "column": 7 } } }, { "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": 2313, "end": 2315, "loc": { "start": { "line": 102, "column": 6 }, "end": { "line": 102, "column": 8 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2316, "end": 2317, "loc": { "start": { "line": 102, "column": 9 }, "end": { "line": 102, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2317, "end": 2320, "loc": { "start": { "line": 102, "column": 10 }, "end": { "line": 102, "column": 13 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">", "start": 2321, "end": 2322, "loc": { "start": { "line": 102, "column": 14 }, "end": { "line": 102, "column": 15 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 35, "start": 2323, "end": 2325, "loc": { "start": { "line": 102, "column": 16 }, "end": { "line": 102, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2325, "end": 2326, "loc": { "start": { "line": 102, "column": 18 }, "end": { "line": 102, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2327, "end": 2328, "loc": { "start": { "line": 102, "column": 20 }, "end": { "line": 102, "column": 21 } } }, { "type": { "label": "throw", "keyword": "throw", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "throw", "start": 2337, "end": 2342, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 13 } } }, { "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": 2343, "end": 2346, "loc": { "start": { "line": 103, "column": 14 }, "end": { "line": 103, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Error", "start": 2347, "end": 2352, "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2352, "end": 2353, "loc": { "start": { "line": 103, "column": 23 }, "end": { "line": 103, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Integer out of range!", "start": 2353, "end": 2376, "loc": { "start": { "line": 103, "column": 24 }, "end": { "line": 103, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2376, "end": 2377, "loc": { "start": { "line": 103, "column": 47 }, "end": { "line": 103, "column": 48 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2384, "end": 2385, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 7 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2390, "end": 2391, "loc": { "start": { "line": 105, "column": 4 }, "end": { "line": 105, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2394, "end": 2395, "loc": { "start": { "line": 106, "column": 2 }, "end": { "line": 106, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Read string of variable length\n * * varUint is used to store the length of the string\n *\n * @return {String} The read String.\n ", "start": 2399, "end": 2545, "loc": { "start": { "line": 108, "column": 2 }, "end": { "line": 113, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarString", "start": 2548, "end": 2561, "loc": { "start": { "line": 114, "column": 2 }, "end": { "line": 114, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2562, "end": 2563, "loc": { "start": { "line": 114, "column": 16 }, "end": { "line": 114, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2563, "end": 2564, "loc": { "start": { "line": 114, "column": 17 }, "end": { "line": 114, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2565, "end": 2566, "loc": { "start": { "line": 114, "column": 19 }, "end": { "line": 114, "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": 2571, "end": 2574, "loc": { "start": { "line": 115, "column": 4 }, "end": { "line": 115, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2575, "end": 2578, "loc": { "start": { "line": 115, "column": 8 }, "end": { "line": 115, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2579, "end": 2580, "loc": { "start": { "line": 115, "column": 12 }, "end": { "line": 115, "column": 13 } } }, { "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": 2581, "end": 2585, "loc": { "start": { "line": 115, "column": 14 }, "end": { "line": 115, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2585, "end": 2586, "loc": { "start": { "line": 115, "column": 18 }, "end": { "line": 115, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarUint", "start": 2586, "end": 2597, "loc": { "start": { "line": 115, "column": 19 }, "end": { "line": 115, "column": 30 } } }, { "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": 115, "column": 30 }, "end": { "line": 115, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2598, "end": 2599, "loc": { "start": { "line": 115, "column": 31 }, "end": { "line": 115, "column": 32 } } }, { "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": 2604, "end": 2607, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 116, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bytes", "start": 2608, "end": 2613, "loc": { "start": { "line": 116, "column": 8 }, "end": { "line": 116, "column": 13 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2614, "end": 2615, "loc": { "start": { "line": 116, "column": 14 }, "end": { "line": 116, "column": 15 } } }, { "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": 2616, "end": 2619, "loc": { "start": { "line": 116, "column": 16 }, "end": { "line": 116, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Array", "start": 2620, "end": 2625, "loc": { "start": { "line": 116, "column": 20 }, "end": { "line": 116, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2625, "end": 2626, "loc": { "start": { "line": 116, "column": 25 }, "end": { "line": 116, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2626, "end": 2629, "loc": { "start": { "line": 116, "column": 26 }, "end": { "line": 116, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2629, "end": 2630, "loc": { "start": { "line": 116, "column": 29 }, "end": { "line": 116, "column": 30 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 2635, "end": 2638, "loc": { "start": { "line": 117, "column": 4 }, "end": { "line": 117, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2639, "end": 2640, "loc": { "start": { "line": 117, "column": 8 }, "end": { "line": 117, "column": 9 } } }, { "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": 2640, "end": 2643, "loc": { "start": { "line": 117, "column": 9 }, "end": { "line": 117, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2644, "end": 2645, "loc": { "start": { "line": 117, "column": 13 }, "end": { "line": 117, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2646, "end": 2647, "loc": { "start": { "line": 117, "column": 15 }, "end": { "line": 117, "column": 16 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2648, "end": 2649, "loc": { "start": { "line": 117, "column": 17 }, "end": { "line": 117, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2649, "end": 2650, "loc": { "start": { "line": 117, "column": 18 }, "end": { "line": 117, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2651, "end": 2652, "loc": { "start": { "line": 117, "column": 20 }, "end": { "line": 117, "column": 21 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2653, "end": 2654, "loc": { "start": { "line": 117, "column": 22 }, "end": { "line": 117, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2655, "end": 2658, "loc": { "start": { "line": 117, "column": 24 }, "end": { "line": 117, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2658, "end": 2659, "loc": { "start": { "line": 117, "column": 27 }, "end": { "line": 117, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2660, "end": 2661, "loc": { "start": { "line": 117, "column": 29 }, "end": { "line": 117, "column": 30 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2661, "end": 2663, "loc": { "start": { "line": 117, "column": 30 }, "end": { "line": 117, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2663, "end": 2664, "loc": { "start": { "line": 117, "column": 32 }, "end": { "line": 117, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2665, "end": 2666, "loc": { "start": { "line": 117, "column": 34 }, "end": { "line": 117, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bytes", "start": 2673, "end": 2678, "loc": { "start": { "line": 118, "column": 6 }, "end": { "line": 118, "column": 11 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2678, "end": 2679, "loc": { "start": { "line": 118, "column": 11 }, "end": { "line": 118, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2679, "end": 2680, "loc": { "start": { "line": 118, "column": 12 }, "end": { "line": 118, "column": 13 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2680, "end": 2681, "loc": { "start": { "line": 118, "column": 13 }, "end": { "line": 118, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2682, "end": 2683, "loc": { "start": { "line": 118, "column": 15 }, "end": { "line": 118, "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": 2684, "end": 2688, "loc": { "start": { "line": 118, "column": 17 }, "end": { "line": 118, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2688, "end": 2689, "loc": { "start": { "line": 118, "column": 21 }, "end": { "line": 118, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint8arr", "start": 2689, "end": 2697, "loc": { "start": { "line": 118, "column": 22 }, "end": { "line": 118, "column": 30 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2697, "end": 2698, "loc": { "start": { "line": 118, "column": 30 }, "end": { "line": 118, "column": 31 } } }, { "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": 2698, "end": 2702, "loc": { "start": { "line": 118, "column": 31 }, "end": { "line": 118, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2702, "end": 2703, "loc": { "start": { "line": 118, "column": 35 }, "end": { "line": 118, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 2703, "end": 2706, "loc": { "start": { "line": 118, "column": 36 }, "end": { "line": 118, "column": 39 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2706, "end": 2708, "loc": { "start": { "line": 118, "column": 39 }, "end": { "line": 118, "column": 41 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2708, "end": 2709, "loc": { "start": { "line": 118, "column": 41 }, "end": { "line": 118, "column": 42 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2714, "end": 2715, "loc": { "start": { "line": 119, "column": 4 }, "end": { "line": 119, "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": 2720, "end": 2723, "loc": { "start": { "line": 120, "column": 4 }, "end": { "line": 120, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "encodedString", "start": 2724, "end": 2737, "loc": { "start": { "line": 120, "column": 8 }, "end": { "line": 120, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2738, "end": 2739, "loc": { "start": { "line": 120, "column": 22 }, "end": { "line": 120, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bytes", "start": 2740, "end": 2745, "loc": { "start": { "line": 120, "column": 24 }, "end": { "line": 120, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2745, "end": 2746, "loc": { "start": { "line": 120, "column": 29 }, "end": { "line": 120, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "map", "start": 2746, "end": 2749, "loc": { "start": { "line": 120, "column": 30 }, "end": { "line": 120, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2749, "end": 2750, "loc": { "start": { "line": 120, "column": 33 }, "end": { "line": 120, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "b", "start": 2750, "end": 2751, "loc": { "start": { "line": 120, "column": 34 }, "end": { "line": 120, "column": 35 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2752, "end": 2754, "loc": { "start": { "line": 120, "column": 36 }, "end": { "line": 120, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "String", "start": 2755, "end": 2761, "loc": { "start": { "line": 120, "column": 39 }, "end": { "line": 120, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2761, "end": 2762, "loc": { "start": { "line": 120, "column": 45 }, "end": { "line": 120, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromCodePoint", "start": 2762, "end": 2775, "loc": { "start": { "line": 120, "column": 46 }, "end": { "line": 120, "column": 59 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2775, "end": 2776, "loc": { "start": { "line": 120, "column": 59 }, "end": { "line": 120, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "b", "start": 2776, "end": 2777, "loc": { "start": { "line": 120, "column": 60 }, "end": { "line": 120, "column": 61 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2777, "end": 2778, "loc": { "start": { "line": 120, "column": 61 }, "end": { "line": 120, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2778, "end": 2779, "loc": { "start": { "line": 120, "column": 62 }, "end": { "line": 120, "column": 63 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2779, "end": 2780, "loc": { "start": { "line": 120, "column": 63 }, "end": { "line": 120, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "join", "start": 2780, "end": 2784, "loc": { "start": { "line": 120, "column": 64 }, "end": { "line": 120, "column": 68 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2784, "end": 2785, "loc": { "start": { "line": 120, "column": 68 }, "end": { "line": 120, "column": 69 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "", "start": 2785, "end": 2787, "loc": { "start": { "line": 120, "column": 69 }, "end": { "line": 120, "column": 71 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2787, "end": 2788, "loc": { "start": { "line": 120, "column": 71 }, "end": { "line": 120, "column": 72 } } }, { "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": 2793, "end": 2799, "loc": { "start": { "line": 121, "column": 4 }, "end": { "line": 121, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "decodeURIComponent", "start": 2800, "end": 2818, "loc": { "start": { "line": 121, "column": 11 }, "end": { "line": 121, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2818, "end": 2819, "loc": { "start": { "line": 121, "column": 29 }, "end": { "line": 121, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "escape", "start": 2819, "end": 2825, "loc": { "start": { "line": 121, "column": 30 }, "end": { "line": 121, "column": 36 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2825, "end": 2826, "loc": { "start": { "line": 121, "column": 36 }, "end": { "line": 121, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "encodedString", "start": 2826, "end": 2839, "loc": { "start": { "line": 121, "column": 37 }, "end": { "line": 121, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2839, "end": 2840, "loc": { "start": { "line": 121, "column": 50 }, "end": { "line": 121, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2840, "end": 2841, "loc": { "start": { "line": 121, "column": 51 }, "end": { "line": 121, "column": 52 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2844, "end": 2845, "loc": { "start": { "line": 122, "column": 2 }, "end": { "line": 122, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Look ahead and read varString without incrementing position\n ", "start": 2849, "end": 2923, "loc": { "start": { "line": 124, "column": 2 }, "end": { "line": 126, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "peekVarString", "start": 2926, "end": 2939, "loc": { "start": { "line": 127, "column": 2 }, "end": { "line": 127, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2940, "end": 2941, "loc": { "start": { "line": 127, "column": 16 }, "end": { "line": 127, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2941, "end": 2942, "loc": { "start": { "line": 127, "column": 17 }, "end": { "line": 127, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2943, "end": 2944, "loc": { "start": { "line": 127, "column": 19 }, "end": { "line": 127, "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": 2949, "end": 2952, "loc": { "start": { "line": 128, "column": 4 }, "end": { "line": 128, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 2953, "end": 2956, "loc": { "start": { "line": 128, "column": 8 }, "end": { "line": 128, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2957, "end": 2958, "loc": { "start": { "line": 128, "column": 12 }, "end": { "line": 128, "column": 13 } } }, { "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": 2959, "end": 2963, "loc": { "start": { "line": 128, "column": 14 }, "end": { "line": 128, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2963, "end": 2964, "loc": { "start": { "line": 128, "column": 18 }, "end": { "line": 128, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 2964, "end": 2967, "loc": { "start": { "line": 128, "column": 19 }, "end": { "line": 128, "column": 22 } } }, { "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": 2972, "end": 2975, "loc": { "start": { "line": 129, "column": 4 }, "end": { "line": 129, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "s", "start": 2976, "end": 2977, "loc": { "start": { "line": 129, "column": 8 }, "end": { "line": 129, "column": 9 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2978, "end": 2979, "loc": { "start": { "line": 129, "column": 10 }, "end": { "line": 129, "column": 11 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2980, "end": 2984, "loc": { "start": { "line": 129, "column": 12 }, "end": { "line": 129, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2984, "end": 2985, "loc": { "start": { "line": 129, "column": 16 }, "end": { "line": 129, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarString", "start": 2985, "end": 2998, "loc": { "start": { "line": 129, "column": 17 }, "end": { "line": 129, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2998, "end": 2999, "loc": { "start": { "line": 129, "column": 30 }, "end": { "line": 129, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2999, "end": 3000, "loc": { "start": { "line": 129, "column": 31 }, "end": { "line": 129, "column": 32 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3005, "end": 3009, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 130, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3009, "end": 3010, "loc": { "start": { "line": 130, "column": 8 }, "end": { "line": 130, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 3010, "end": 3013, "loc": { "start": { "line": 130, "column": 9 }, "end": { "line": 130, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3014, "end": 3015, "loc": { "start": { "line": 130, "column": 13 }, "end": { "line": 130, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 3016, "end": 3019, "loc": { "start": { "line": 130, "column": 15 }, "end": { "line": 130, "column": 18 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 3024, "end": 3030, "loc": { "start": { "line": 131, "column": 4 }, "end": { "line": 131, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "s", "start": 3031, "end": 3032, "loc": { "start": { "line": 131, "column": 11 }, "end": { "line": 131, "column": 12 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3035, "end": 3036, "loc": { "start": { "line": 132, "column": 2 }, "end": { "line": 132, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Read ID.\n * * If first varUint read is 0xFFFFFF a RootID is returned.\n * * Otherwise an ID is returned.\n *\n * @return ID\n ", "start": 3040, "end": 3183, "loc": { "start": { "line": 134, "column": 2 }, "end": { "line": 140, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readID", "start": 3186, "end": 3192, "loc": { "start": { "line": 141, "column": 2 }, "end": { "line": 141, "column": 8 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3193, "end": 3194, "loc": { "start": { "line": 141, "column": 9 }, "end": { "line": 141, "column": 10 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3194, "end": 3195, "loc": { "start": { "line": 141, "column": 10 }, "end": { "line": 141, "column": 11 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3196, "end": 3197, "loc": { "start": { "line": 141, "column": 12 }, "end": { "line": 141, "column": 13 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 3202, "end": 3205, "loc": { "start": { "line": 142, "column": 4 }, "end": { "line": 142, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "user", "start": 3206, "end": 3210, "loc": { "start": { "line": 142, "column": 8 }, "end": { "line": 142, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3211, "end": 3212, "loc": { "start": { "line": 142, "column": 13 }, "end": { "line": 142, "column": 14 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3213, "end": 3217, "loc": { "start": { "line": 142, "column": 15 }, "end": { "line": 142, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3217, "end": 3218, "loc": { "start": { "line": 142, "column": 19 }, "end": { "line": 142, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarUint", "start": 3218, "end": 3229, "loc": { "start": { "line": 142, "column": 20 }, "end": { "line": 142, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3229, "end": 3230, "loc": { "start": { "line": 142, "column": 31 }, "end": { "line": 142, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3230, "end": 3231, "loc": { "start": { "line": 142, "column": 32 }, "end": { "line": 142, "column": 33 } } }, { "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": 3236, "end": 3238, "loc": { "start": { "line": 143, "column": 4 }, "end": { "line": 143, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3239, "end": 3240, "loc": { "start": { "line": 143, "column": 7 }, "end": { "line": 143, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "user", "start": 3240, "end": 3244, "loc": { "start": { "line": 143, "column": 8 }, "end": { "line": 143, "column": 12 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 3245, "end": 3248, "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "RootFakeUserID", "start": 3249, "end": 3263, "loc": { "start": { "line": 143, "column": 17 }, "end": { "line": 143, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3263, "end": 3264, "loc": { "start": { "line": 143, "column": 31 }, "end": { "line": 143, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3265, "end": 3266, "loc": { "start": { "line": 143, "column": 33 }, "end": { "line": 143, "column": 34 } } }, { "type": "CommentLine", "value": " read property name and type id", "start": 3273, "end": 3306, "loc": { "start": { "line": 144, "column": 6 }, "end": { "line": 144, "column": 39 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 3313, "end": 3318, "loc": { "start": { "line": 145, "column": 6 }, "end": { "line": 145, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rid", "start": 3319, "end": 3322, "loc": { "start": { "line": 145, "column": 12 }, "end": { "line": 145, "column": 15 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3323, "end": 3324, "loc": { "start": { "line": 145, "column": 16 }, "end": { "line": 145, "column": 17 } } }, { "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": 3325, "end": 3328, "loc": { "start": { "line": 145, "column": 18 }, "end": { "line": 145, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "RootID", "start": 3329, "end": 3335, "loc": { "start": { "line": 145, "column": 22 }, "end": { "line": 145, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3335, "end": 3336, "loc": { "start": { "line": 145, "column": 28 }, "end": { "line": 145, "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": 3336, "end": 3340, "loc": { "start": { "line": 145, "column": 29 }, "end": { "line": 145, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3340, "end": 3341, "loc": { "start": { "line": 145, "column": 33 }, "end": { "line": 145, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarString", "start": 3341, "end": 3354, "loc": { "start": { "line": 145, "column": 34 }, "end": { "line": 145, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3354, "end": 3355, "loc": { "start": { "line": 145, "column": 47 }, "end": { "line": 145, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3355, "end": 3356, "loc": { "start": { "line": 145, "column": 48 }, "end": { "line": 145, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3356, "end": 3357, "loc": { "start": { "line": 145, "column": 49 }, "end": { "line": 145, "column": 50 } } }, { "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": 3358, "end": 3362, "loc": { "start": { "line": 145, "column": 51 }, "end": { "line": 145, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3362, "end": 3363, "loc": { "start": { "line": 145, "column": 55 }, "end": { "line": 145, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rid", "start": 3370, "end": 3373, "loc": { "start": { "line": 146, "column": 6 }, "end": { "line": 146, "column": 9 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3373, "end": 3374, "loc": { "start": { "line": 146, "column": 9 }, "end": { "line": 146, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "type", "start": 3374, "end": 3378, "loc": { "start": { "line": 146, "column": 10 }, "end": { "line": 146, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3379, "end": 3380, "loc": { "start": { "line": 146, "column": 15 }, "end": { "line": 146, "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": 3381, "end": 3385, "loc": { "start": { "line": 146, "column": 17 }, "end": { "line": 146, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3385, "end": 3386, "loc": { "start": { "line": 146, "column": 21 }, "end": { "line": 146, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarUint", "start": 3386, "end": 3397, "loc": { "start": { "line": 146, "column": 22 }, "end": { "line": 146, "column": 33 } } }, { "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": 146, "column": 33 }, "end": { "line": 146, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3398, "end": 3399, "loc": { "start": { "line": 146, "column": 34 }, "end": { "line": 146, "column": 35 } } }, { "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": 3406, "end": 3412, "loc": { "start": { "line": 147, "column": 6 }, "end": { "line": 147, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rid", "start": 3413, "end": 3416, "loc": { "start": { "line": 147, "column": 13 }, "end": { "line": 147, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3421, "end": 3422, "loc": { "start": { "line": 148, "column": 4 }, "end": { "line": 148, "column": 5 } } }, { "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": 3427, "end": 3433, "loc": { "start": { "line": 149, "column": 4 }, "end": { "line": 149, "column": 10 } } }, { "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": 3434, "end": 3437, "loc": { "start": { "line": 149, "column": 11 }, "end": { "line": 149, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ID", "start": 3438, "end": 3440, "loc": { "start": { "line": 149, "column": 15 }, "end": { "line": 149, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3440, "end": 3441, "loc": { "start": { "line": 149, "column": 17 }, "end": { "line": 149, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "user", "start": 3441, "end": 3445, "loc": { "start": { "line": 149, "column": 18 }, "end": { "line": 149, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3445, "end": 3446, "loc": { "start": { "line": 149, "column": 22 }, "end": { "line": 149, "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": 3447, "end": 3451, "loc": { "start": { "line": 149, "column": 24 }, "end": { "line": 149, "column": 28 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3451, "end": 3452, "loc": { "start": { "line": 149, "column": 28 }, "end": { "line": 149, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readVarUint", "start": 3452, "end": 3463, "loc": { "start": { "line": 149, "column": 29 }, "end": { "line": 149, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3463, "end": 3464, "loc": { "start": { "line": 149, "column": 40 }, "end": { "line": 149, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3464, "end": 3465, "loc": { "start": { "line": 149, "column": 41 }, "end": { "line": 149, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3465, "end": 3466, "loc": { "start": { "line": 149, "column": 42 }, "end": { "line": 149, "column": 43 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3469, "end": 3470, "loc": { "start": { "line": 150, "column": 2 }, "end": { "line": 150, "column": 3 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3471, "end": 3472, "loc": { "start": { "line": 151, "column": 0 }, "end": { "line": 151, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3473, "end": 3473, "loc": { "start": { "line": 152, "column": 0 }, "end": { "line": 152, "column": 0 } } } ] }