{ "type": "File", "start": 0, "end": 3360, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 146, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 3360, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 146, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 48, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 48 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 23, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 23 } }, "imported": { "type": "Identifier", "start": 9, "end": 23, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 23 }, "identifierName": "RootFakeUserID" }, "name": "RootFakeUserID" }, "local": { "type": "Identifier", "start": 9, "end": 23, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 23 }, "identifierName": "RootFakeUserID" }, "name": "RootFakeUserID" } } ], "source": { "type": "StringLiteral", "start": 31, "end": 48, "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 48 } }, "extra": { "rawValue": "../ID/RootID.js", "raw": "'../ID/RootID.js'" }, "value": "../ID/RootID.js" } }, { "type": "VariableDeclaration", "start": 50, "end": 73, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 23 } }, "declarations": [ { "type": "VariableDeclarator", "start": 56, "end": 73, "loc": { "start": { "line": 3, "column": 6 }, "end": { "line": 3, "column": 23 } }, "id": { "type": "Identifier", "start": 56, "end": 61, "loc": { "start": { "line": 3, "column": 6 }, "end": { "line": 3, "column": 11 }, "identifierName": "bits7" }, "name": "bits7" }, "init": { "type": "NumericLiteral", "start": 64, "end": 73, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 23 } }, "extra": { "rawValue": 127, "raw": "0b1111111" }, "value": 127 } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 74, "end": 98, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", "start": 80, "end": 98, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 24 } }, "id": { "type": "Identifier", "start": 80, "end": 85, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 11 }, "identifierName": "bits8" }, "name": "bits8" }, "init": { "type": "NumericLiteral", "start": 88, "end": 98, "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 24 } }, "extra": { "rawValue": 255, "raw": "0b11111111" }, "value": 255, "leadingComments": null, "trailingComments": null }, "trailingComments": null } ], "kind": "const", "trailingComments": [ { "type": "CommentBlock", "value": "*\n * A BinaryEncoder handles the encoding to an ArrayBuffer.\n ", "start": 100, "end": 166, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportDefaultDeclaration", "start": 167, "end": 3359, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 145, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 182, "end": 3359, "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 145, "column": 1 } }, "id": { "type": "Identifier", "start": 188, "end": 201, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 34 }, "identifierName": "BinaryEncoder" }, "name": "BinaryEncoder", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 202, "end": 3359, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 145, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 206, "end": 366, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 14, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 206, "end": 217, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 10, "column": 13 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 221, "end": 366, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 14, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 348, "end": 362, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 18 } }, "expression": { "type": "AssignmentExpression", "start": 348, "end": 362, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 18 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 348, "end": 357, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 13 } }, "object": { "type": "ThisExpression", "start": 348, "end": 352, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 8 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 353, "end": 357, "loc": { "start": { "line": 13, "column": 9 }, "end": { "line": 13, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 360, "end": 362, "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 18 } }, "elements": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " TODO: implement chained Uint8Array buffers instead of Array buffer", "start": 227, "end": 296, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 73 } } }, { "type": "CommentLine", "value": " TODO: Rewrite all methods as functions!", "start": 301, "end": 343, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 46 } } } ] } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * The current length of the encoded data.\n ", "start": 370, "end": 424, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 18, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 427, "end": 474, "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 21, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 431, "end": 437, "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 12 }, "identifierName": "length" }, "name": "length" }, "kind": "get", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 441, "end": 474, "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 21, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 447, "end": 470, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 27 } }, "argument": { "type": "MemberExpression", "start": 454, "end": 470, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 27 } }, "object": { "type": "MemberExpression", "start": 454, "end": 463, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 20 } }, "object": { "type": "ThisExpression", "start": 454, "end": 458, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 15 } } }, "property": { "type": "Identifier", "start": 459, "end": 463, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 20 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 464, "end": 470, "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 27 }, "identifierName": "length" }, "name": "length" }, "computed": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * The current length of the encoded data.\n ", "start": 370, "end": 424, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 18, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * The current write pointer (the same as {@link length}).\n ", "start": 478, "end": 548, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 25, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 551, "end": 595, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 28, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 555, "end": 558, "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 9 }, "identifierName": "pos" }, "name": "pos" }, "kind": "get", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 562, "end": 595, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 28, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 568, "end": 591, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 27 } }, "argument": { "type": "MemberExpression", "start": 575, "end": 591, "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 27 } }, "object": { "type": "MemberExpression", "start": 575, "end": 584, "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 20 } }, "object": { "type": "ThisExpression", "start": 575, "end": 579, "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 15 } } }, "property": { "type": "Identifier", "start": 580, "end": 584, "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 20 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 585, "end": 591, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 27 }, "identifierName": "length" }, "name": "length" }, "computed": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * The current write pointer (the same as {@link length}).\n ", "start": 478, "end": 548, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 25, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Create an ArrayBuffer.\n *\n * @return {Uint8Array} A Uint8Array that represents the written data.\n ", "start": 599, "end": 714, "loc": { "start": { "line": 30, "column": 2 }, "end": { "line": 34, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 717, "end": 783, "loc": { "start": { "line": 35, "column": 2 }, "end": { "line": 37, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 717, "end": 729, "loc": { "start": { "line": 35, "column": 2 }, "end": { "line": 35, "column": 14 }, "identifierName": "createBuffer" }, "name": "createBuffer", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 733, "end": 783, "loc": { "start": { "line": 35, "column": 18 }, "end": { "line": 37, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 739, "end": 779, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 36, "column": 44 } }, "argument": { "type": "MemberExpression", "start": 746, "end": 779, "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 44 } }, "object": { "type": "CallExpression", "start": 746, "end": 772, "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 37 } }, "callee": { "type": "MemberExpression", "start": 746, "end": 761, "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 26 } }, "object": { "type": "Identifier", "start": 746, "end": 756, "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 21 }, "identifierName": "Uint8Array" }, "name": "Uint8Array" }, "property": { "type": "Identifier", "start": 757, "end": 761, "loc": { "start": { "line": 36, "column": 22 }, "end": { "line": 36, "column": 26 }, "identifierName": "from" }, "name": "from" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 762, "end": 771, "loc": { "start": { "line": 36, "column": 27 }, "end": { "line": 36, "column": 36 } }, "object": { "type": "ThisExpression", "start": 762, "end": 766, "loc": { "start": { "line": 36, "column": 27 }, "end": { "line": 36, "column": 31 } } }, "property": { "type": "Identifier", "start": 767, "end": 771, "loc": { "start": { "line": 36, "column": 32 }, "end": { "line": 36, "column": 36 }, "identifierName": "data" }, "name": "data" }, "computed": false } ] }, "property": { "type": "Identifier", "start": 773, "end": 779, "loc": { "start": { "line": 36, "column": 38 }, "end": { "line": 36, "column": 44 }, "identifierName": "buffer" }, "name": "buffer" }, "computed": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Create an ArrayBuffer.\n *\n * @return {Uint8Array} A Uint8Array that represents the written data.\n ", "start": 599, "end": 714, "loc": { "start": { "line": 30, "column": 2 }, "end": { "line": 34, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 787, "end": 904, "loc": { "start": { "line": 39, "column": 2 }, "end": { "line": 43, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 907, "end": 961, "loc": { "start": { "line": 44, "column": 2 }, "end": { "line": 46, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 907, "end": 917, "loc": { "start": { "line": 44, "column": 2 }, "end": { "line": 44, "column": 12 }, "identifierName": "writeUint8" }, "name": "writeUint8", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 919, "end": 922, "loc": { "start": { "line": 44, "column": 14 }, "end": { "line": 44, "column": 17 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 924, "end": 961, "loc": { "start": { "line": 44, "column": 19 }, "end": { "line": 46, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 930, "end": 957, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 45, "column": 31 } }, "expression": { "type": "CallExpression", "start": 930, "end": 957, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 45, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 930, "end": 944, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 45, "column": 18 } }, "object": { "type": "MemberExpression", "start": 930, "end": 939, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 45, "column": 13 } }, "object": { "type": "ThisExpression", "start": 930, "end": 934, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 45, "column": 8 } } }, "property": { "type": "Identifier", "start": 935, "end": 939, "loc": { "start": { "line": 45, "column": 9 }, "end": { "line": 45, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 940, "end": 944, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 18 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 945, "end": 956, "loc": { "start": { "line": 45, "column": 19 }, "end": { "line": 45, "column": 30 } }, "left": { "type": "Identifier", "start": 945, "end": 948, "loc": { "start": { "line": 45, "column": 19 }, "end": { "line": 45, "column": 22 }, "identifierName": "num" }, "name": "num" }, "operator": "&", "right": { "type": "Identifier", "start": 951, "end": 956, "loc": { "start": { "line": 45, "column": 25 }, "end": { "line": 45, "column": 30 }, "identifierName": "bits8" }, "name": "bits8" } } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 787, "end": 904, "loc": { "start": { "line": 39, "column": 2 }, "end": { "line": 43, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned Integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 965, "end": 1175, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 53, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1178, "end": 1236, "loc": { "start": { "line": 54, "column": 2 }, "end": { "line": 56, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1178, "end": 1186, "loc": { "start": { "line": 54, "column": 2 }, "end": { "line": 54, "column": 10 }, "identifierName": "setUint8" }, "name": "setUint8", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1188, "end": 1191, "loc": { "start": { "line": 54, "column": 12 }, "end": { "line": 54, "column": 15 }, "identifierName": "pos" }, "name": "pos" }, { "type": "Identifier", "start": 1193, "end": 1196, "loc": { "start": { "line": 54, "column": 17 }, "end": { "line": 54, "column": 20 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 1198, "end": 1236, "loc": { "start": { "line": 54, "column": 22 }, "end": { "line": 56, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 1204, "end": 1232, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 1204, "end": 1232, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1204, "end": 1218, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 18 } }, "object": { "type": "MemberExpression", "start": 1204, "end": 1213, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 13 } }, "object": { "type": "ThisExpression", "start": 1204, "end": 1208, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 8 } } }, "property": { "type": "Identifier", "start": 1209, "end": 1213, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 1214, "end": 1217, "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 17 }, "identifierName": "pos" }, "name": "pos" }, "computed": true }, "right": { "type": "BinaryExpression", "start": 1221, "end": 1232, "loc": { "start": { "line": 55, "column": 21 }, "end": { "line": 55, "column": 32 } }, "left": { "type": "Identifier", "start": 1221, "end": 1224, "loc": { "start": { "line": 55, "column": 21 }, "end": { "line": 55, "column": 24 }, "identifierName": "num" }, "name": "num" }, "operator": "&", "right": { "type": "Identifier", "start": 1227, "end": 1232, "loc": { "start": { "line": 55, "column": 27 }, "end": { "line": 55, "column": 32 }, "identifierName": "bits8" }, "name": "bits8" } } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned Integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 965, "end": 1175, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 53, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1240, "end": 1358, "loc": { "start": { "line": 58, "column": 2 }, "end": { "line": 62, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1361, "end": 1437, "loc": { "start": { "line": 63, "column": 2 }, "end": { "line": 65, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1361, "end": 1372, "loc": { "start": { "line": 63, "column": 2 }, "end": { "line": 63, "column": 13 }, "identifierName": "writeUint16" }, "name": "writeUint16", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1374, "end": 1377, "loc": { "start": { "line": 63, "column": 15 }, "end": { "line": 63, "column": 18 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 1379, "end": 1437, "loc": { "start": { "line": 63, "column": 20 }, "end": { "line": 65, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 1385, "end": 1433, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 52 } }, "expression": { "type": "CallExpression", "start": 1385, "end": 1433, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 1385, "end": 1399, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 18 } }, "object": { "type": "MemberExpression", "start": 1385, "end": 1394, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 13 } }, "object": { "type": "ThisExpression", "start": 1385, "end": 1389, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 8 } } }, "property": { "type": "Identifier", "start": 1390, "end": 1394, "loc": { "start": { "line": 64, "column": 9 }, "end": { "line": 64, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 1395, "end": 1399, "loc": { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 18 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 1400, "end": 1411, "loc": { "start": { "line": 64, "column": 19 }, "end": { "line": 64, "column": 30 } }, "left": { "type": "Identifier", "start": 1400, "end": 1403, "loc": { "start": { "line": 64, "column": 19 }, "end": { "line": 64, "column": 22 }, "identifierName": "num" }, "name": "num" }, "operator": "&", "right": { "type": "Identifier", "start": 1406, "end": 1411, "loc": { "start": { "line": 64, "column": 25 }, "end": { "line": 64, "column": 30 }, "identifierName": "bits8" }, "name": "bits8" } }, { "type": "BinaryExpression", "start": 1413, "end": 1432, "loc": { "start": { "line": 64, "column": 32 }, "end": { "line": 64, "column": 51 } }, "left": { "type": "BinaryExpression", "start": 1414, "end": 1423, "loc": { "start": { "line": 64, "column": 33 }, "end": { "line": 64, "column": 42 } }, "left": { "type": "Identifier", "start": 1414, "end": 1417, "loc": { "start": { "line": 64, "column": 33 }, "end": { "line": 64, "column": 36 }, "identifierName": "num" }, "name": "num" }, "operator": ">>>", "right": { "type": "NumericLiteral", "start": 1422, "end": 1423, "loc": { "start": { "line": 64, "column": 41 }, "end": { "line": 64, "column": 42 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 }, "extra": { "parenthesized": true, "parenStart": 1413 } }, "operator": "&", "right": { "type": "Identifier", "start": 1427, "end": 1432, "loc": { "start": { "line": 64, "column": 46 }, "end": { "line": 64, "column": 51 }, "identifierName": "bits8" }, "name": "bits8" } } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1240, "end": 1358, "loc": { "start": { "line": 58, "column": 2 }, "end": { "line": 62, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 1440, "end": 1651, "loc": { "start": { "line": 66, "column": 2 }, "end": { "line": 71, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1654, "end": 1758, "loc": { "start": { "line": 72, "column": 2 }, "end": { "line": 75, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1654, "end": 1663, "loc": { "start": { "line": 72, "column": 2 }, "end": { "line": 72, "column": 11 }, "identifierName": "setUint16" }, "name": "setUint16", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1665, "end": 1668, "loc": { "start": { "line": 72, "column": 13 }, "end": { "line": 72, "column": 16 }, "identifierName": "pos" }, "name": "pos" }, { "type": "Identifier", "start": 1670, "end": 1673, "loc": { "start": { "line": 72, "column": 18 }, "end": { "line": 72, "column": 21 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 1675, "end": 1758, "loc": { "start": { "line": 72, "column": 23 }, "end": { "line": 75, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 1681, "end": 1709, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 1681, "end": 1709, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1681, "end": 1695, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 18 } }, "object": { "type": "MemberExpression", "start": 1681, "end": 1690, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 13 } }, "object": { "type": "ThisExpression", "start": 1681, "end": 1685, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 8 } } }, "property": { "type": "Identifier", "start": 1686, "end": 1690, "loc": { "start": { "line": 73, "column": 9 }, "end": { "line": 73, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 1691, "end": 1694, "loc": { "start": { "line": 73, "column": 14 }, "end": { "line": 73, "column": 17 }, "identifierName": "pos" }, "name": "pos" }, "computed": true }, "right": { "type": "BinaryExpression", "start": 1698, "end": 1709, "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 32 } }, "left": { "type": "Identifier", "start": 1698, "end": 1701, "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 24 }, "identifierName": "num" }, "name": "num" }, "operator": "&", "right": { "type": "Identifier", "start": 1704, "end": 1709, "loc": { "start": { "line": 73, "column": 27 }, "end": { "line": 73, "column": 32 }, "identifierName": "bits8" }, "name": "bits8" } } } }, { "type": "ExpressionStatement", "start": 1714, "end": 1754, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 44 } }, "expression": { "type": "AssignmentExpression", "start": 1714, "end": 1754, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1714, "end": 1732, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 22 } }, "object": { "type": "MemberExpression", "start": 1714, "end": 1723, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 13 } }, "object": { "type": "ThisExpression", "start": 1714, "end": 1718, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 8 } } }, "property": { "type": "Identifier", "start": 1719, "end": 1723, "loc": { "start": { "line": 74, "column": 9 }, "end": { "line": 74, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "BinaryExpression", "start": 1724, "end": 1731, "loc": { "start": { "line": 74, "column": 14 }, "end": { "line": 74, "column": 21 } }, "left": { "type": "Identifier", "start": 1724, "end": 1727, "loc": { "start": { "line": 74, "column": 14 }, "end": { "line": 74, "column": 17 }, "identifierName": "pos" }, "name": "pos" }, "operator": "+", "right": { "type": "NumericLiteral", "start": 1730, "end": 1731, "loc": { "start": { "line": 74, "column": 20 }, "end": { "line": 74, "column": 21 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "computed": true }, "right": { "type": "BinaryExpression", "start": 1735, "end": 1754, "loc": { "start": { "line": 74, "column": 25 }, "end": { "line": 74, "column": 44 } }, "left": { "type": "BinaryExpression", "start": 1736, "end": 1745, "loc": { "start": { "line": 74, "column": 26 }, "end": { "line": 74, "column": 35 } }, "left": { "type": "Identifier", "start": 1736, "end": 1739, "loc": { "start": { "line": 74, "column": 26 }, "end": { "line": 74, "column": 29 }, "identifierName": "num" }, "name": "num" }, "operator": ">>>", "right": { "type": "NumericLiteral", "start": 1744, "end": 1745, "loc": { "start": { "line": 74, "column": 34 }, "end": { "line": 74, "column": 35 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 }, "extra": { "parenthesized": true, "parenStart": 1735 } }, "operator": "&", "right": { "type": "Identifier", "start": 1749, "end": 1754, "loc": { "start": { "line": 74, "column": 39 }, "end": { "line": 74, "column": 44 }, "identifierName": "bits8" }, "name": "bits8" } } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 1440, "end": 1651, "loc": { "start": { "line": 66, "column": 2 }, "end": { "line": 71, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1762, "end": 1879, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 81, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1882, "end": 1996, "loc": { "start": { "line": 82, "column": 2 }, "end": { "line": 87, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1882, "end": 1893, "loc": { "start": { "line": 82, "column": 2 }, "end": { "line": 82, "column": 13 }, "identifierName": "writeUint32" }, "name": "writeUint32", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1895, "end": 1898, "loc": { "start": { "line": 82, "column": 15 }, "end": { "line": 82, "column": 18 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 1900, "end": 1996, "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 87, "column": 3 } }, "body": [ { "type": "ForStatement", "start": 1906, "end": 1992, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 86, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 1911, "end": 1920, "loc": { "start": { "line": 83, "column": 9 }, "end": { "line": 83, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1915, "end": 1920, "loc": { "start": { "line": 83, "column": 13 }, "end": { "line": 83, "column": 18 } }, "id": { "type": "Identifier", "start": 1915, "end": 1916, "loc": { "start": { "line": 83, "column": 13 }, "end": { "line": 83, "column": 14 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 1919, "end": 1920, "loc": { "start": { "line": 83, "column": 17 }, "end": { "line": 83, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 1922, "end": 1927, "loc": { "start": { "line": 83, "column": 20 }, "end": { "line": 83, "column": 25 } }, "left": { "type": "Identifier", "start": 1922, "end": 1923, "loc": { "start": { "line": 83, "column": 20 }, "end": { "line": 83, "column": 21 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 1926, "end": 1927, "loc": { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 25 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 1929, "end": 1932, "loc": { "start": { "line": 83, "column": 27 }, "end": { "line": 83, "column": 30 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 1929, "end": 1930, "loc": { "start": { "line": 83, "column": 27 }, "end": { "line": 83, "column": 28 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 1934, "end": 1992, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 86, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1942, "end": 1969, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 33 } }, "expression": { "type": "CallExpression", "start": 1942, "end": 1969, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 1942, "end": 1956, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 20 } }, "object": { "type": "MemberExpression", "start": 1942, "end": 1951, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 15 } }, "object": { "type": "ThisExpression", "start": 1942, "end": 1946, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 10 } } }, "property": { "type": "Identifier", "start": 1947, "end": 1951, "loc": { "start": { "line": 84, "column": 11 }, "end": { "line": 84, "column": 15 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 1952, "end": 1956, "loc": { "start": { "line": 84, "column": 16 }, "end": { "line": 84, "column": 20 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 1957, "end": 1968, "loc": { "start": { "line": 84, "column": 21 }, "end": { "line": 84, "column": 32 } }, "left": { "type": "Identifier", "start": 1957, "end": 1960, "loc": { "start": { "line": 84, "column": 21 }, "end": { "line": 84, "column": 24 }, "identifierName": "num" }, "name": "num" }, "operator": "&", "right": { "type": "Identifier", "start": 1963, "end": 1968, "loc": { "start": { "line": 84, "column": 27 }, "end": { "line": 84, "column": 32 }, "identifierName": "bits8" }, "name": "bits8" } } ] } }, { "type": "ExpressionStatement", "start": 1976, "end": 1986, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 16 } }, "expression": { "type": "AssignmentExpression", "start": 1976, "end": 1986, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 16 } }, "operator": ">>>=", "left": { "type": "Identifier", "start": 1976, "end": 1979, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 9 }, "identifierName": "num" }, "name": "num" }, "right": { "type": "NumericLiteral", "start": 1985, "end": 1986, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 16 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 } } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1762, "end": 1879, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 81, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 2000, "end": 2211, "loc": { "start": { "line": 89, "column": 2 }, "end": { "line": 94, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2214, "end": 2336, "loc": { "start": { "line": 95, "column": 2 }, "end": { "line": 100, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2214, "end": 2223, "loc": { "start": { "line": 95, "column": 2 }, "end": { "line": 95, "column": 11 }, "identifierName": "setUint32" }, "name": "setUint32", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2225, "end": 2228, "loc": { "start": { "line": 95, "column": 13 }, "end": { "line": 95, "column": 16 }, "identifierName": "pos" }, "name": "pos" }, { "type": "Identifier", "start": 2230, "end": 2233, "loc": { "start": { "line": 95, "column": 18 }, "end": { "line": 95, "column": 21 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 2235, "end": 2336, "loc": { "start": { "line": 95, "column": 23 }, "end": { "line": 100, "column": 3 } }, "body": [ { "type": "ForStatement", "start": 2241, "end": 2332, "loc": { "start": { "line": 96, "column": 4 }, "end": { "line": 99, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 2246, "end": 2255, "loc": { "start": { "line": 96, "column": 9 }, "end": { "line": 96, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2250, "end": 2255, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 18 } }, "id": { "type": "Identifier", "start": 2250, "end": 2251, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 14 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 2254, "end": 2255, "loc": { "start": { "line": 96, "column": 17 }, "end": { "line": 96, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 2257, "end": 2262, "loc": { "start": { "line": 96, "column": 20 }, "end": { "line": 96, "column": 25 } }, "left": { "type": "Identifier", "start": 2257, "end": 2258, "loc": { "start": { "line": 96, "column": 20 }, "end": { "line": 96, "column": 21 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 2261, "end": 2262, "loc": { "start": { "line": 96, "column": 24 }, "end": { "line": 96, "column": 25 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 2264, "end": 2267, "loc": { "start": { "line": 96, "column": 27 }, "end": { "line": 96, "column": 30 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 2264, "end": 2265, "loc": { "start": { "line": 96, "column": 27 }, "end": { "line": 96, "column": 28 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 2269, "end": 2332, "loc": { "start": { "line": 96, "column": 32 }, "end": { "line": 99, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2277, "end": 2309, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 2277, "end": 2309, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2277, "end": 2295, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 24 } }, "object": { "type": "MemberExpression", "start": 2277, "end": 2286, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 15 } }, "object": { "type": "ThisExpression", "start": 2277, "end": 2281, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 10 } } }, "property": { "type": "Identifier", "start": 2282, "end": 2286, "loc": { "start": { "line": 97, "column": 11 }, "end": { "line": 97, "column": 15 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "BinaryExpression", "start": 2287, "end": 2294, "loc": { "start": { "line": 97, "column": 16 }, "end": { "line": 97, "column": 23 } }, "left": { "type": "Identifier", "start": 2287, "end": 2290, "loc": { "start": { "line": 97, "column": 16 }, "end": { "line": 97, "column": 19 }, "identifierName": "pos" }, "name": "pos" }, "operator": "+", "right": { "type": "Identifier", "start": 2293, "end": 2294, "loc": { "start": { "line": 97, "column": 22 }, "end": { "line": 97, "column": 23 }, "identifierName": "i" }, "name": "i" } }, "computed": true }, "right": { "type": "BinaryExpression", "start": 2298, "end": 2309, "loc": { "start": { "line": 97, "column": 27 }, "end": { "line": 97, "column": 38 } }, "left": { "type": "Identifier", "start": 2298, "end": 2301, "loc": { "start": { "line": 97, "column": 27 }, "end": { "line": 97, "column": 30 }, "identifierName": "num" }, "name": "num" }, "operator": "&", "right": { "type": "Identifier", "start": 2304, "end": 2309, "loc": { "start": { "line": 97, "column": 33 }, "end": { "line": 97, "column": 38 }, "identifierName": "bits8" }, "name": "bits8" } } } }, { "type": "ExpressionStatement", "start": 2316, "end": 2326, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 16 } }, "expression": { "type": "AssignmentExpression", "start": 2316, "end": 2326, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 16 } }, "operator": ">>>=", "left": { "type": "Identifier", "start": 2316, "end": 2319, "loc": { "start": { "line": 98, "column": 6 }, "end": { "line": 98, "column": 9 }, "identifierName": "num" }, "name": "num" }, "right": { "type": "NumericLiteral", "start": 2325, "end": 2326, "loc": { "start": { "line": 98, "column": 15 }, "end": { "line": 98, "column": 16 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 } } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 2000, "end": 2211, "loc": { "start": { "line": 89, "column": 2 }, "end": { "line": 94, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write a variable length unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 2340, "end": 2460, "loc": { "start": { "line": 102, "column": 2 }, "end": { "line": 106, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2463, "end": 2623, "loc": { "start": { "line": 107, "column": 2 }, "end": { "line": 113, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2463, "end": 2475, "loc": { "start": { "line": 107, "column": 2 }, "end": { "line": 107, "column": 14 }, "identifierName": "writeVarUint" }, "name": "writeVarUint", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2477, "end": 2480, "loc": { "start": { "line": 107, "column": 16 }, "end": { "line": 107, "column": 19 }, "identifierName": "num" }, "name": "num" } ], "body": { "type": "BlockStatement", "start": 2482, "end": 2623, "loc": { "start": { "line": 107, "column": 21 }, "end": { "line": 113, "column": 3 } }, "body": [ { "type": "WhileStatement", "start": 2488, "end": 2587, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 111, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 2495, "end": 2512, "loc": { "start": { "line": 108, "column": 11 }, "end": { "line": 108, "column": 28 } }, "left": { "type": "Identifier", "start": 2495, "end": 2498, "loc": { "start": { "line": 108, "column": 11 }, "end": { "line": 108, "column": 14 }, "identifierName": "num" }, "name": "num" }, "operator": ">=", "right": { "type": "NumericLiteral", "start": 2502, "end": 2512, "loc": { "start": { "line": 108, "column": 18 }, "end": { "line": 108, "column": 28 } }, "extra": { "rawValue": 128, "raw": "0b10000000" }, "value": 128 } }, "body": { "type": "BlockStatement", "start": 2514, "end": 2587, "loc": { "start": { "line": 108, "column": 30 }, "end": { "line": 111, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2522, "end": 2564, "loc": { "start": { "line": 109, "column": 6 }, "end": { "line": 109, "column": 48 } }, "expression": { "type": "CallExpression", "start": 2522, "end": 2564, "loc": { "start": { "line": 109, "column": 6 }, "end": { "line": 109, "column": 48 } }, "callee": { "type": "MemberExpression", "start": 2522, "end": 2536, "loc": { "start": { "line": 109, "column": 6 }, "end": { "line": 109, "column": 20 } }, "object": { "type": "MemberExpression", "start": 2522, "end": 2531, "loc": { "start": { "line": 109, "column": 6 }, "end": { "line": 109, "column": 15 } }, "object": { "type": "ThisExpression", "start": 2522, "end": 2526, "loc": { "start": { "line": 109, "column": 6 }, "end": { "line": 109, "column": 10 } } }, "property": { "type": "Identifier", "start": 2527, "end": 2531, "loc": { "start": { "line": 109, "column": 11 }, "end": { "line": 109, "column": 15 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 2532, "end": 2536, "loc": { "start": { "line": 109, "column": 16 }, "end": { "line": 109, "column": 20 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 2537, "end": 2563, "loc": { "start": { "line": 109, "column": 21 }, "end": { "line": 109, "column": 47 } }, "left": { "type": "NumericLiteral", "start": 2537, "end": 2547, "loc": { "start": { "line": 109, "column": 21 }, "end": { "line": 109, "column": 31 } }, "extra": { "rawValue": 128, "raw": "0b10000000" }, "value": 128 }, "operator": "|", "right": { "type": "BinaryExpression", "start": 2551, "end": 2562, "loc": { "start": { "line": 109, "column": 35 }, "end": { "line": 109, "column": 46 } }, "left": { "type": "Identifier", "start": 2551, "end": 2556, "loc": { "start": { "line": 109, "column": 35 }, "end": { "line": 109, "column": 40 }, "identifierName": "bits7" }, "name": "bits7" }, "operator": "&", "right": { "type": "Identifier", "start": 2559, "end": 2562, "loc": { "start": { "line": 109, "column": 43 }, "end": { "line": 109, "column": 46 }, "identifierName": "num" }, "name": "num" }, "extra": { "parenthesized": true, "parenStart": 2550 } } } ] } }, { "type": "ExpressionStatement", "start": 2571, "end": 2581, "loc": { "start": { "line": 110, "column": 6 }, "end": { "line": 110, "column": 16 } }, "expression": { "type": "AssignmentExpression", "start": 2571, "end": 2581, "loc": { "start": { "line": 110, "column": 6 }, "end": { "line": 110, "column": 16 } }, "operator": ">>>=", "left": { "type": "Identifier", "start": 2571, "end": 2574, "loc": { "start": { "line": 110, "column": 6 }, "end": { "line": 110, "column": 9 }, "identifierName": "num" }, "name": "num" }, "right": { "type": "NumericLiteral", "start": 2580, "end": 2581, "loc": { "start": { "line": 110, "column": 15 }, "end": { "line": 110, "column": 16 } }, "extra": { "rawValue": 7, "raw": "7" }, "value": 7 } } } ], "directives": [] } }, { "type": "ExpressionStatement", "start": 2592, "end": 2619, "loc": { "start": { "line": 112, "column": 4 }, "end": { "line": 112, "column": 31 } }, "expression": { "type": "CallExpression", "start": 2592, "end": 2619, "loc": { "start": { "line": 112, "column": 4 }, "end": { "line": 112, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 2592, "end": 2606, "loc": { "start": { "line": 112, "column": 4 }, "end": { "line": 112, "column": 18 } }, "object": { "type": "MemberExpression", "start": 2592, "end": 2601, "loc": { "start": { "line": 112, "column": 4 }, "end": { "line": 112, "column": 13 } }, "object": { "type": "ThisExpression", "start": 2592, "end": 2596, "loc": { "start": { "line": 112, "column": 4 }, "end": { "line": 112, "column": 8 } } }, "property": { "type": "Identifier", "start": 2597, "end": 2601, "loc": { "start": { "line": 112, "column": 9 }, "end": { "line": 112, "column": 13 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 2602, "end": 2606, "loc": { "start": { "line": 112, "column": 14 }, "end": { "line": 112, "column": 18 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 2607, "end": 2618, "loc": { "start": { "line": 112, "column": 19 }, "end": { "line": 112, "column": 30 } }, "left": { "type": "Identifier", "start": 2607, "end": 2612, "loc": { "start": { "line": 112, "column": 19 }, "end": { "line": 112, "column": 24 }, "identifierName": "bits7" }, "name": "bits7" }, "operator": "&", "right": { "type": "Identifier", "start": 2615, "end": 2618, "loc": { "start": { "line": 112, "column": 27 }, "end": { "line": 112, "column": 30 }, "identifierName": "num" }, "name": "num" } } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write a variable length unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 2340, "end": 2460, "loc": { "start": { "line": 102, "column": 2 }, "end": { "line": 106, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write a variable length string.\n *\n * @param {String} str The string that is to be encoded.\n ", "start": 2627, "end": 2737, "loc": { "start": { "line": 115, "column": 2 }, "end": { "line": 119, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2740, "end": 3017, "loc": { "start": { "line": 120, "column": 2 }, "end": { "line": 128, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2740, "end": 2754, "loc": { "start": { "line": 120, "column": 2 }, "end": { "line": 120, "column": 16 }, "identifierName": "writeVarString" }, "name": "writeVarString", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2756, "end": 2759, "loc": { "start": { "line": 120, "column": 18 }, "end": { "line": 120, "column": 21 }, "identifierName": "str" }, "name": "str" } ], "body": { "type": "BlockStatement", "start": 2761, "end": 3017, "loc": { "start": { "line": 120, "column": 23 }, "end": { "line": 128, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 2767, "end": 2820, "loc": { "start": { "line": 121, "column": 4 }, "end": { "line": 121, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2771, "end": 2820, "loc": { "start": { "line": 121, "column": 8 }, "end": { "line": 121, "column": 57 } }, "id": { "type": "Identifier", "start": 2771, "end": 2784, "loc": { "start": { "line": 121, "column": 8 }, "end": { "line": 121, "column": 21 }, "identifierName": "encodedString" }, "name": "encodedString" }, "init": { "type": "CallExpression", "start": 2787, "end": 2820, "loc": { "start": { "line": 121, "column": 24 }, "end": { "line": 121, "column": 57 } }, "callee": { "type": "Identifier", "start": 2787, "end": 2795, "loc": { "start": { "line": 121, "column": 24 }, "end": { "line": 121, "column": 32 }, "identifierName": "unescape" }, "name": "unescape" }, "arguments": [ { "type": "CallExpression", "start": 2796, "end": 2819, "loc": { "start": { "line": 121, "column": 33 }, "end": { "line": 121, "column": 56 } }, "callee": { "type": "Identifier", "start": 2796, "end": 2814, "loc": { "start": { "line": 121, "column": 33 }, "end": { "line": 121, "column": 51 }, "identifierName": "encodeURIComponent" }, "name": "encodeURIComponent" }, "arguments": [ { "type": "Identifier", "start": 2815, "end": 2818, "loc": { "start": { "line": 121, "column": 52 }, "end": { "line": 121, "column": 55 }, "identifierName": "str" }, "name": "str" } ] } ] } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 2825, "end": 2886, "loc": { "start": { "line": 122, "column": 4 }, "end": { "line": 122, "column": 65 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2829, "end": 2886, "loc": { "start": { "line": 122, "column": 8 }, "end": { "line": 122, "column": 65 } }, "id": { "type": "Identifier", "start": 2829, "end": 2834, "loc": { "start": { "line": 122, "column": 8 }, "end": { "line": 122, "column": 13 }, "identifierName": "bytes" }, "name": "bytes" }, "init": { "type": "CallExpression", "start": 2837, "end": 2886, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 65 } }, "callee": { "type": "MemberExpression", "start": 2837, "end": 2864, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 43 } }, "object": { "type": "CallExpression", "start": 2837, "end": 2860, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 2837, "end": 2856, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 35 } }, "object": { "type": "Identifier", "start": 2837, "end": 2850, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 29 }, "identifierName": "encodedString" }, "name": "encodedString" }, "property": { "type": "Identifier", "start": 2851, "end": 2856, "loc": { "start": { "line": 122, "column": 30 }, "end": { "line": 122, "column": 35 }, "identifierName": "split" }, "name": "split" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2857, "end": 2859, "loc": { "start": { "line": 122, "column": 36 }, "end": { "line": 122, "column": 38 } }, "extra": { "rawValue": "", "raw": "''" }, "value": "" } ] }, "property": { "type": "Identifier", "start": 2861, "end": 2864, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 43 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 2865, "end": 2885, "loc": { "start": { "line": 122, "column": 44 }, "end": { "line": 122, "column": 64 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 2865, "end": 2866, "loc": { "start": { "line": 122, "column": 44 }, "end": { "line": 122, "column": 45 }, "identifierName": "c" }, "name": "c" } ], "body": { "type": "CallExpression", "start": 2870, "end": 2885, "loc": { "start": { "line": 122, "column": 49 }, "end": { "line": 122, "column": 64 } }, "callee": { "type": "MemberExpression", "start": 2870, "end": 2883, "loc": { "start": { "line": 122, "column": 49 }, "end": { "line": 122, "column": 62 } }, "object": { "type": "Identifier", "start": 2870, "end": 2871, "loc": { "start": { "line": 122, "column": 49 }, "end": { "line": 122, "column": 50 }, "identifierName": "c" }, "name": "c" }, "property": { "type": "Identifier", "start": 2872, "end": 2883, "loc": { "start": { "line": 122, "column": 51 }, "end": { "line": 122, "column": 62 }, "identifierName": "codePointAt" }, "name": "codePointAt" }, "computed": false }, "arguments": [] } } ] } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 2891, "end": 2913, "loc": { "start": { "line": 123, "column": 4 }, "end": { "line": 123, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2895, "end": 2913, "loc": { "start": { "line": 123, "column": 8 }, "end": { "line": 123, "column": 26 } }, "id": { "type": "Identifier", "start": 2895, "end": 2898, "loc": { "start": { "line": 123, "column": 8 }, "end": { "line": 123, "column": 11 }, "identifierName": "len" }, "name": "len" }, "init": { "type": "MemberExpression", "start": 2901, "end": 2913, "loc": { "start": { "line": 123, "column": 14 }, "end": { "line": 123, "column": 26 } }, "object": { "type": "Identifier", "start": 2901, "end": 2906, "loc": { "start": { "line": 123, "column": 14 }, "end": { "line": 123, "column": 19 }, "identifierName": "bytes" }, "name": "bytes" }, "property": { "type": "Identifier", "start": 2907, "end": 2913, "loc": { "start": { "line": 123, "column": 20 }, "end": { "line": 123, "column": 26 }, "identifierName": "length" }, "name": "length" }, "computed": false } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 2918, "end": 2940, "loc": { "start": { "line": 124, "column": 4 }, "end": { "line": 124, "column": 26 } }, "expression": { "type": "CallExpression", "start": 2918, "end": 2940, "loc": { "start": { "line": 124, "column": 4 }, "end": { "line": 124, "column": 26 } }, "callee": { "type": "MemberExpression", "start": 2918, "end": 2935, "loc": { "start": { "line": 124, "column": 4 }, "end": { "line": 124, "column": 21 } }, "object": { "type": "ThisExpression", "start": 2918, "end": 2922, "loc": { "start": { "line": 124, "column": 4 }, "end": { "line": 124, "column": 8 } } }, "property": { "type": "Identifier", "start": 2923, "end": 2935, "loc": { "start": { "line": 124, "column": 9 }, "end": { "line": 124, "column": 21 }, "identifierName": "writeVarUint" }, "name": "writeVarUint" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2936, "end": 2939, "loc": { "start": { "line": 124, "column": 22 }, "end": { "line": 124, "column": 25 }, "identifierName": "len" }, "name": "len" } ] } }, { "type": "ForStatement", "start": 2945, "end": 3013, "loc": { "start": { "line": 125, "column": 4 }, "end": { "line": 127, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 2950, "end": 2959, "loc": { "start": { "line": 125, "column": 9 }, "end": { "line": 125, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2954, "end": 2959, "loc": { "start": { "line": 125, "column": 13 }, "end": { "line": 125, "column": 18 } }, "id": { "type": "Identifier", "start": 2954, "end": 2955, "loc": { "start": { "line": 125, "column": 13 }, "end": { "line": 125, "column": 14 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 2958, "end": 2959, "loc": { "start": { "line": 125, "column": 17 }, "end": { "line": 125, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 2961, "end": 2968, "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 27 } }, "left": { "type": "Identifier", "start": 2961, "end": 2962, "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 21 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "Identifier", "start": 2965, "end": 2968, "loc": { "start": { "line": 125, "column": 24 }, "end": { "line": 125, "column": 27 }, "identifierName": "len" }, "name": "len" } }, "update": { "type": "UpdateExpression", "start": 2970, "end": 2973, "loc": { "start": { "line": 125, "column": 29 }, "end": { "line": 125, "column": 32 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 2970, "end": 2971, "loc": { "start": { "line": 125, "column": 29 }, "end": { "line": 125, "column": 30 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 2975, "end": 3013, "loc": { "start": { "line": 125, "column": 34 }, "end": { "line": 127, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2983, "end": 3007, "loc": { "start": { "line": 126, "column": 6 }, "end": { "line": 126, "column": 30 } }, "expression": { "type": "CallExpression", "start": 2983, "end": 3007, "loc": { "start": { "line": 126, "column": 6 }, "end": { "line": 126, "column": 30 } }, "callee": { "type": "MemberExpression", "start": 2983, "end": 2997, "loc": { "start": { "line": 126, "column": 6 }, "end": { "line": 126, "column": 20 } }, "object": { "type": "MemberExpression", "start": 2983, "end": 2992, "loc": { "start": { "line": 126, "column": 6 }, "end": { "line": 126, "column": 15 } }, "object": { "type": "ThisExpression", "start": 2983, "end": 2987, "loc": { "start": { "line": 126, "column": 6 }, "end": { "line": 126, "column": 10 } } }, "property": { "type": "Identifier", "start": 2988, "end": 2992, "loc": { "start": { "line": 126, "column": 11 }, "end": { "line": 126, "column": 15 }, "identifierName": "data" }, "name": "data" }, "computed": false }, "property": { "type": "Identifier", "start": 2993, "end": 2997, "loc": { "start": { "line": 126, "column": 16 }, "end": { "line": 126, "column": 20 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 2998, "end": 3006, "loc": { "start": { "line": 126, "column": 21 }, "end": { "line": 126, "column": 29 } }, "object": { "type": "Identifier", "start": 2998, "end": 3003, "loc": { "start": { "line": 126, "column": 21 }, "end": { "line": 126, "column": 26 }, "identifierName": "bytes" }, "name": "bytes" }, "property": { "type": "Identifier", "start": 3004, "end": 3005, "loc": { "start": { "line": 126, "column": 27 }, "end": { "line": 126, "column": 28 }, "identifierName": "i" }, "name": "i" }, "computed": true } ] } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write a variable length string.\n *\n * @param {String} str The string that is to be encoded.\n ", "start": 2627, "end": 2737, "loc": { "start": { "line": 115, "column": 2 }, "end": { "line": 119, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Write an ID at the current position.\n *\n * @param {ID} id The ID that is to be written.\n ", "start": 3021, "end": 3127, "loc": { "start": { "line": 130, "column": 2 }, "end": { "line": 134, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 3130, "end": 3357, "loc": { "start": { "line": 135, "column": 2 }, "end": { "line": 144, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3130, "end": 3137, "loc": { "start": { "line": 135, "column": 2 }, "end": { "line": 135, "column": 9 }, "identifierName": "writeID" }, "name": "writeID", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3139, "end": 3141, "loc": { "start": { "line": 135, "column": 11 }, "end": { "line": 135, "column": 13 }, "identifierName": "id" }, "name": "id" } ], "body": { "type": "BlockStatement", "start": 3143, "end": 3357, "loc": { "start": { "line": 135, "column": 15 }, "end": { "line": 144, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 3149, "end": 3169, "loc": { "start": { "line": 136, "column": 4 }, "end": { "line": 136, "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3155, "end": 3169, "loc": { "start": { "line": 136, "column": 10 }, "end": { "line": 136, "column": 24 } }, "id": { "type": "Identifier", "start": 3155, "end": 3159, "loc": { "start": { "line": 136, "column": 10 }, "end": { "line": 136, "column": 14 }, "identifierName": "user" }, "name": "user" }, "init": { "type": "MemberExpression", "start": 3162, "end": 3169, "loc": { "start": { "line": 136, "column": 17 }, "end": { "line": 136, "column": 24 } }, "object": { "type": "Identifier", "start": 3162, "end": 3164, "loc": { "start": { "line": 136, "column": 17 }, "end": { "line": 136, "column": 19 }, "identifierName": "id" }, "name": "id" }, "property": { "type": "Identifier", "start": 3165, "end": 3169, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 136, "column": 24 }, "identifierName": "user" }, "name": "user" }, "computed": false } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 3174, "end": 3197, "loc": { "start": { "line": 137, "column": 4 }, "end": { "line": 137, "column": 27 } }, "expression": { "type": "CallExpression", "start": 3174, "end": 3197, "loc": { "start": { "line": 137, "column": 4 }, "end": { "line": 137, "column": 27 } }, "callee": { "type": "MemberExpression", "start": 3174, "end": 3191, "loc": { "start": { "line": 137, "column": 4 }, "end": { "line": 137, "column": 21 } }, "object": { "type": "ThisExpression", "start": 3174, "end": 3178, "loc": { "start": { "line": 137, "column": 4 }, "end": { "line": 137, "column": 8 } } }, "property": { "type": "Identifier", "start": 3179, "end": 3191, "loc": { "start": { "line": 137, "column": 9 }, "end": { "line": 137, "column": 21 }, "identifierName": "writeVarUint" }, "name": "writeVarUint" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3192, "end": 3196, "loc": { "start": { "line": 137, "column": 22 }, "end": { "line": 137, "column": 26 }, "identifierName": "user" }, "name": "user" } ] } }, { "type": "IfStatement", "start": 3202, "end": 3353, "loc": { "start": { "line": 138, "column": 4 }, "end": { "line": 143, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 3206, "end": 3229, "loc": { "start": { "line": 138, "column": 8 }, "end": { "line": 138, "column": 31 } }, "left": { "type": "Identifier", "start": 3206, "end": 3210, "loc": { "start": { "line": 138, "column": 8 }, "end": { "line": 138, "column": 12 }, "identifierName": "user" }, "name": "user" }, "operator": "!==", "right": { "type": "Identifier", "start": 3215, "end": 3229, "loc": { "start": { "line": 138, "column": 17 }, "end": { "line": 138, "column": 31 }, "identifierName": "RootFakeUserID" }, "name": "RootFakeUserID" } }, "consequent": { "type": "BlockStatement", "start": 3231, "end": 3272, "loc": { "start": { "line": 138, "column": 33 }, "end": { "line": 140, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 3239, "end": 3266, "loc": { "start": { "line": 139, "column": 6 }, "end": { "line": 139, "column": 33 } }, "expression": { "type": "CallExpression", "start": 3239, "end": 3266, "loc": { "start": { "line": 139, "column": 6 }, "end": { "line": 139, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 3239, "end": 3256, "loc": { "start": { "line": 139, "column": 6 }, "end": { "line": 139, "column": 23 } }, "object": { "type": "ThisExpression", "start": 3239, "end": 3243, "loc": { "start": { "line": 139, "column": 6 }, "end": { "line": 139, "column": 10 } } }, "property": { "type": "Identifier", "start": 3244, "end": 3256, "loc": { "start": { "line": 139, "column": 11 }, "end": { "line": 139, "column": 23 }, "identifierName": "writeVarUint" }, "name": "writeVarUint" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 3257, "end": 3265, "loc": { "start": { "line": 139, "column": 24 }, "end": { "line": 139, "column": 32 } }, "object": { "type": "Identifier", "start": 3257, "end": 3259, "loc": { "start": { "line": 139, "column": 24 }, "end": { "line": 139, "column": 26 }, "identifierName": "id" }, "name": "id" }, "property": { "type": "Identifier", "start": 3260, "end": 3265, "loc": { "start": { "line": 139, "column": 27 }, "end": { "line": 139, "column": 32 }, "identifierName": "clock" }, "name": "clock" }, "computed": false } ] } } ], "directives": [] }, "alternate": { "type": "BlockStatement", "start": 3278, "end": 3353, "loc": { "start": { "line": 140, "column": 11 }, "end": { "line": 143, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 3286, "end": 3314, "loc": { "start": { "line": 141, "column": 6 }, "end": { "line": 141, "column": 34 } }, "expression": { "type": "CallExpression", "start": 3286, "end": 3314, "loc": { "start": { "line": 141, "column": 6 }, "end": { "line": 141, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 3286, "end": 3305, "loc": { "start": { "line": 141, "column": 6 }, "end": { "line": 141, "column": 25 } }, "object": { "type": "ThisExpression", "start": 3286, "end": 3290, "loc": { "start": { "line": 141, "column": 6 }, "end": { "line": 141, "column": 10 } } }, "property": { "type": "Identifier", "start": 3291, "end": 3305, "loc": { "start": { "line": 141, "column": 11 }, "end": { "line": 141, "column": 25 }, "identifierName": "writeVarString" }, "name": "writeVarString" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 3306, "end": 3313, "loc": { "start": { "line": 141, "column": 26 }, "end": { "line": 141, "column": 33 } }, "object": { "type": "Identifier", "start": 3306, "end": 3308, "loc": { "start": { "line": 141, "column": 26 }, "end": { "line": 141, "column": 28 }, "identifierName": "id" }, "name": "id" }, "property": { "type": "Identifier", "start": 3309, "end": 3313, "loc": { "start": { "line": 141, "column": 29 }, "end": { "line": 141, "column": 33 }, "identifierName": "name" }, "name": "name" }, "computed": false } ] } }, { "type": "ExpressionStatement", "start": 3321, "end": 3347, "loc": { "start": { "line": 142, "column": 6 }, "end": { "line": 142, "column": 32 } }, "expression": { "type": "CallExpression", "start": 3321, "end": 3347, "loc": { "start": { "line": 142, "column": 6 }, "end": { "line": 142, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 3321, "end": 3338, "loc": { "start": { "line": 142, "column": 6 }, "end": { "line": 142, "column": 23 } }, "object": { "type": "ThisExpression", "start": 3321, "end": 3325, "loc": { "start": { "line": 142, "column": 6 }, "end": { "line": 142, "column": 10 } } }, "property": { "type": "Identifier", "start": 3326, "end": 3338, "loc": { "start": { "line": 142, "column": 11 }, "end": { "line": 142, "column": 23 }, "identifierName": "writeVarUint" }, "name": "writeVarUint" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 3339, "end": 3346, "loc": { "start": { "line": 142, "column": 24 }, "end": { "line": 142, "column": 31 } }, "object": { "type": "Identifier", "start": 3339, "end": 3341, "loc": { "start": { "line": 142, "column": 24 }, "end": { "line": 142, "column": 26 }, "identifierName": "id" }, "name": "id" }, "property": { "type": "Identifier", "start": 3342, "end": 3346, "loc": { "start": { "line": 142, "column": 27 }, "end": { "line": 142, "column": 31 }, "identifierName": "type" }, "name": "type" }, "computed": false } ] } } ], "directives": [] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Write an ID at the current position.\n *\n * @param {ID} id The ID that is to be written.\n ", "start": 3021, "end": 3127, "loc": { "start": { "line": 130, "column": 2 }, "end": { "line": 134, "column": 5 } } } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * A BinaryEncoder handles the encoding to an ArrayBuffer.\n ", "start": 100, "end": 166, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * A BinaryEncoder handles the encoding to an ArrayBuffer.\n ", "start": 100, "end": 166, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\n * A BinaryEncoder handles the encoding to an ArrayBuffer.\n ", "start": 100, "end": 166, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 3 } } }, { "type": "CommentLine", "value": " TODO: implement chained Uint8Array buffers instead of Array buffer", "start": 227, "end": 296, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 73 } } }, { "type": "CommentLine", "value": " TODO: Rewrite all methods as functions!", "start": 301, "end": 343, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 46 } } }, { "type": "CommentBlock", "value": "*\n * The current length of the encoded data.\n ", "start": 370, "end": 424, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 18, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * The current write pointer (the same as {@link length}).\n ", "start": 478, "end": 548, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 25, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Create an ArrayBuffer.\n *\n * @return {Uint8Array} A Uint8Array that represents the written data.\n ", "start": 599, "end": 714, "loc": { "start": { "line": 30, "column": 2 }, "end": { "line": 34, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 787, "end": 904, "loc": { "start": { "line": 39, "column": 2 }, "end": { "line": 43, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned Integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 965, "end": 1175, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 53, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1240, "end": 1358, "loc": { "start": { "line": 58, "column": 2 }, "end": { "line": 62, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 1440, "end": 1651, "loc": { "start": { "line": 66, "column": 2 }, "end": { "line": 71, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1762, "end": 1879, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 81, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 2000, "end": 2211, "loc": { "start": { "line": 89, "column": 2 }, "end": { "line": 94, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write a variable length unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 2340, "end": 2460, "loc": { "start": { "line": 102, "column": 2 }, "end": { "line": 106, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write a variable length string.\n *\n * @param {String} str The string that is to be encoded.\n ", "start": 2627, "end": 2737, "loc": { "start": { "line": 115, "column": 2 }, "end": { "line": 119, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Write an ID at the current position.\n *\n * @param {ID} id The ID that is to be written.\n ", "start": 3021, "end": 3127, "loc": { "start": { "line": 130, "column": 2 }, "end": { "line": 134, "column": 5 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "RootFakeUserID", "start": 9, "end": 23, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 24, "end": 25, "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 26, "end": 30, "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 30 } } }, { "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": 31, "end": 48, "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 48 } } }, { "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": 50, "end": 55, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits7", "start": 56, "end": 61, "loc": { "start": { "line": 3, "column": 6 }, "end": { "line": 3, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 62, "end": 63, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 13 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 127, "start": 64, "end": 73, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 23 } } }, { "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": 74, "end": 79, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 80, "end": 85, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 86, "end": 87, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 13 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 255, "start": 88, "end": 98, "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 24 } } }, { "type": "CommentBlock", "value": "*\n * A BinaryEncoder handles the encoding to an ArrayBuffer.\n ", "start": 100, "end": 166, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "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": 167, "end": 173, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "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": 174, "end": 181, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "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": 182, "end": 187, "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BinaryEncoder", "start": 188, "end": 201, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 202, "end": 203, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 9, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 206, "end": 217, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 10, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 218, "end": 219, "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 219, "end": 220, "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 10, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 221, "end": 222, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 18 } } }, { "type": "CommentLine", "value": " TODO: implement chained Uint8Array buffers instead of Array buffer", "start": 227, "end": 296, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 73 } } }, { "type": "CommentLine", "value": " TODO: Rewrite all methods as functions!", "start": 301, "end": 343, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 46 } } }, { "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": 348, "end": 352, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 352, "end": 353, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 353, "end": 357, "loc": { "start": { "line": 13, "column": 9 }, "end": { "line": 13, "column": 13 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 358, "end": 359, "loc": { "start": { "line": 13, "column": 14 }, "end": { "line": 13, "column": 15 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 360, "end": 361, "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 17 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 361, "end": 362, "loc": { "start": { "line": 13, "column": 17 }, "end": { "line": 13, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 365, "end": 366, "loc": { "start": { "line": 14, "column": 2 }, "end": { "line": 14, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * The current length of the encoded data.\n ", "start": 370, "end": 424, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 18, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 427, "end": 430, "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 19, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 431, "end": 437, "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 12 } } }, { "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": 19, "column": 13 }, "end": { "line": 19, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 439, "end": 440, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 15 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 441, "end": 442, "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "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": 447, "end": 453, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "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": 454, "end": 458, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 458, "end": 459, "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 459, "end": 463, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 463, "end": 464, "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 464, "end": 470, "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 27 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 473, "end": 474, "loc": { "start": { "line": 21, "column": 2 }, "end": { "line": 21, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * The current write pointer (the same as {@link length}).\n ", "start": 478, "end": 548, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 25, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 551, "end": 554, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 26, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 555, "end": 558, "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 559, "end": 560, "loc": { "start": { "line": 26, "column": 10 }, "end": { "line": 26, "column": 11 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 560, "end": 561, "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 12 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 562, "end": 563, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 14 } } }, { "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": 568, "end": 574, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "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": 575, "end": 579, "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 579, "end": 580, "loc": { "start": { "line": 27, "column": 15 }, "end": { "line": 27, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 580, "end": 584, "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 584, "end": 585, "loc": { "start": { "line": 27, "column": 20 }, "end": { "line": 27, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 585, "end": 591, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 27 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 594, "end": 595, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 28, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Create an ArrayBuffer.\n *\n * @return {Uint8Array} A Uint8Array that represents the written data.\n ", "start": 599, "end": 714, "loc": { "start": { "line": 30, "column": 2 }, "end": { "line": 34, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createBuffer", "start": 717, "end": 729, "loc": { "start": { "line": 35, "column": 2 }, "end": { "line": 35, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 730, "end": 731, "loc": { "start": { "line": 35, "column": 15 }, "end": { "line": 35, "column": 16 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 731, "end": 732, "loc": { "start": { "line": 35, "column": 16 }, "end": { "line": 35, "column": 17 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 733, "end": 734, "loc": { "start": { "line": 35, "column": 18 }, "end": { "line": 35, "column": 19 } } }, { "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": 739, "end": 745, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 36, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Uint8Array", "start": 746, "end": 756, "loc": { "start": { "line": 36, "column": 11 }, "end": { "line": 36, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 756, "end": 757, "loc": { "start": { "line": 36, "column": 21 }, "end": { "line": 36, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 757, "end": 761, "loc": { "start": { "line": 36, "column": 22 }, "end": { "line": 36, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 761, "end": 762, "loc": { "start": { "line": 36, "column": 26 }, "end": { "line": 36, "column": 27 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 762, "end": 766, "loc": { "start": { "line": 36, "column": 27 }, "end": { "line": 36, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 766, "end": 767, "loc": { "start": { "line": 36, "column": 31 }, "end": { "line": 36, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 767, "end": 771, "loc": { "start": { "line": 36, "column": 32 }, "end": { "line": 36, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 771, "end": 772, "loc": { "start": { "line": 36, "column": 36 }, "end": { "line": 36, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 772, "end": 773, "loc": { "start": { "line": 36, "column": 37 }, "end": { "line": 36, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffer", "start": 773, "end": 779, "loc": { "start": { "line": 36, "column": 38 }, "end": { "line": 36, "column": 44 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 782, "end": 783, "loc": { "start": { "line": 37, "column": 2 }, "end": { "line": 37, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 787, "end": 904, "loc": { "start": { "line": 39, "column": 2 }, "end": { "line": 43, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeUint8", "start": 907, "end": 917, "loc": { "start": { "line": 44, "column": 2 }, "end": { "line": 44, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 918, "end": 919, "loc": { "start": { "line": 44, "column": 13 }, "end": { "line": 44, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 919, "end": 922, "loc": { "start": { "line": 44, "column": 14 }, "end": { "line": 44, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 922, "end": 923, "loc": { "start": { "line": 44, "column": 17 }, "end": { "line": 44, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 924, "end": 925, "loc": { "start": { "line": 44, "column": 19 }, "end": { "line": 44, "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": 930, "end": 934, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 45, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 934, "end": 935, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 935, "end": 939, "loc": { "start": { "line": 45, "column": 9 }, "end": { "line": 45, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 939, "end": 940, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 940, "end": 944, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 944, "end": 945, "loc": { "start": { "line": 45, "column": 18 }, "end": { "line": 45, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 945, "end": 948, "loc": { "start": { "line": 45, "column": 19 }, "end": { "line": 45, "column": 22 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 949, "end": 950, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 951, "end": 956, "loc": { "start": { "line": 45, "column": 25 }, "end": { "line": 45, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 956, "end": 957, "loc": { "start": { "line": 45, "column": 30 }, "end": { "line": 45, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 960, "end": 961, "loc": { "start": { "line": 46, "column": 2 }, "end": { "line": 46, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write one byte as an unsigned Integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 965, "end": 1175, "loc": { "start": { "line": 48, "column": 2 }, "end": { "line": 53, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setUint8", "start": 1178, "end": 1186, "loc": { "start": { "line": 54, "column": 2 }, "end": { "line": 54, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1187, "end": 1188, "loc": { "start": { "line": 54, "column": 11 }, "end": { "line": 54, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1188, "end": 1191, "loc": { "start": { "line": 54, "column": 12 }, "end": { "line": 54, "column": 15 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1191, "end": 1192, "loc": { "start": { "line": 54, "column": 15 }, "end": { "line": 54, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1193, "end": 1196, "loc": { "start": { "line": 54, "column": 17 }, "end": { "line": 54, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1196, "end": 1197, "loc": { "start": { "line": 54, "column": 20 }, "end": { "line": 54, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1198, "end": 1199, "loc": { "start": { "line": 54, "column": 22 }, "end": { "line": 54, "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": 1204, "end": 1208, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1208, "end": 1209, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 1209, "end": 1213, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 13 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1213, "end": 1214, "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1214, "end": 1217, "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 17 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1217, "end": 1218, "loc": { "start": { "line": 55, "column": 17 }, "end": { "line": 55, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1219, "end": 1220, "loc": { "start": { "line": 55, "column": 19 }, "end": { "line": 55, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1221, "end": 1224, "loc": { "start": { "line": 55, "column": 21 }, "end": { "line": 55, "column": 24 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 1225, "end": 1226, "loc": { "start": { "line": 55, "column": 25 }, "end": { "line": 55, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 1227, "end": 1232, "loc": { "start": { "line": 55, "column": 27 }, "end": { "line": 55, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1235, "end": 1236, "loc": { "start": { "line": 56, "column": 2 }, "end": { "line": 56, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1240, "end": 1358, "loc": { "start": { "line": 58, "column": 2 }, "end": { "line": 62, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeUint16", "start": 1361, "end": 1372, "loc": { "start": { "line": 63, "column": 2 }, "end": { "line": 63, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1373, "end": 1374, "loc": { "start": { "line": 63, "column": 14 }, "end": { "line": 63, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1374, "end": 1377, "loc": { "start": { "line": 63, "column": 15 }, "end": { "line": 63, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1377, "end": 1378, "loc": { "start": { "line": 63, "column": 18 }, "end": { "line": 63, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1379, "end": 1380, "loc": { "start": { "line": 63, "column": 20 }, "end": { "line": 63, "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": 1385, "end": 1389, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1389, "end": 1390, "loc": { "start": { "line": 64, "column": 8 }, "end": { "line": 64, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 1390, "end": 1394, "loc": { "start": { "line": 64, "column": 9 }, "end": { "line": 64, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1394, "end": 1395, "loc": { "start": { "line": 64, "column": 13 }, "end": { "line": 64, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 1395, "end": 1399, "loc": { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1399, "end": 1400, "loc": { "start": { "line": 64, "column": 18 }, "end": { "line": 64, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1400, "end": 1403, "loc": { "start": { "line": 64, "column": 19 }, "end": { "line": 64, "column": 22 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 1404, "end": 1405, "loc": { "start": { "line": 64, "column": 23 }, "end": { "line": 64, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 1406, "end": 1411, "loc": { "start": { "line": 64, "column": 25 }, "end": { "line": 64, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1411, "end": 1412, "loc": { "start": { "line": 64, "column": 30 }, "end": { "line": 64, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1413, "end": 1414, "loc": { "start": { "line": 64, "column": 32 }, "end": { "line": 64, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1414, "end": 1417, "loc": { "start": { "line": 64, "column": 33 }, "end": { "line": 64, "column": 36 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": ">>>", "start": 1418, "end": 1421, "loc": { "start": { "line": 64, "column": 37 }, "end": { "line": 64, "column": 40 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 1422, "end": 1423, "loc": { "start": { "line": 64, "column": 41 }, "end": { "line": 64, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1423, "end": 1424, "loc": { "start": { "line": 64, "column": 42 }, "end": { "line": 64, "column": 43 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 1425, "end": 1426, "loc": { "start": { "line": 64, "column": 44 }, "end": { "line": 64, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 1427, "end": 1432, "loc": { "start": { "line": 64, "column": 46 }, "end": { "line": 64, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1432, "end": 1433, "loc": { "start": { "line": 64, "column": 51 }, "end": { "line": 64, "column": 52 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1436, "end": 1437, "loc": { "start": { "line": 65, "column": 2 }, "end": { "line": 65, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 1440, "end": 1651, "loc": { "start": { "line": 66, "column": 2 }, "end": { "line": 71, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setUint16", "start": 1654, "end": 1663, "loc": { "start": { "line": 72, "column": 2 }, "end": { "line": 72, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1664, "end": 1665, "loc": { "start": { "line": 72, "column": 12 }, "end": { "line": 72, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1665, "end": 1668, "loc": { "start": { "line": 72, "column": 13 }, "end": { "line": 72, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1668, "end": 1669, "loc": { "start": { "line": 72, "column": 16 }, "end": { "line": 72, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1670, "end": 1673, "loc": { "start": { "line": 72, "column": 18 }, "end": { "line": 72, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1673, "end": 1674, "loc": { "start": { "line": 72, "column": 21 }, "end": { "line": 72, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1675, "end": 1676, "loc": { "start": { "line": 72, "column": 23 }, "end": { "line": 72, "column": 24 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1681, "end": 1685, "loc": { "start": { "line": 73, "column": 4 }, "end": { "line": 73, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1685, "end": 1686, "loc": { "start": { "line": 73, "column": 8 }, "end": { "line": 73, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 1686, "end": 1690, "loc": { "start": { "line": 73, "column": 9 }, "end": { "line": 73, "column": 13 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1690, "end": 1691, "loc": { "start": { "line": 73, "column": 13 }, "end": { "line": 73, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1691, "end": 1694, "loc": { "start": { "line": 73, "column": 14 }, "end": { "line": 73, "column": 17 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1694, "end": 1695, "loc": { "start": { "line": 73, "column": 17 }, "end": { "line": 73, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1696, "end": 1697, "loc": { "start": { "line": 73, "column": 19 }, "end": { "line": 73, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1698, "end": 1701, "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 24 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 1702, "end": 1703, "loc": { "start": { "line": 73, "column": 25 }, "end": { "line": 73, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 1704, "end": 1709, "loc": { "start": { "line": 73, "column": 27 }, "end": { "line": 73, "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": 1714, "end": 1718, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1718, "end": 1719, "loc": { "start": { "line": 74, "column": 8 }, "end": { "line": 74, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 1719, "end": 1723, "loc": { "start": { "line": 74, "column": 9 }, "end": { "line": 74, "column": 13 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1723, "end": 1724, "loc": { "start": { "line": 74, "column": 13 }, "end": { "line": 74, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 1724, "end": 1727, "loc": { "start": { "line": 74, "column": 14 }, "end": { "line": 74, "column": 17 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1728, "end": 1729, "loc": { "start": { "line": 74, "column": 18 }, "end": { "line": 74, "column": 19 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 1730, "end": 1731, "loc": { "start": { "line": 74, "column": 20 }, "end": { "line": 74, "column": 21 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1731, "end": 1732, "loc": { "start": { "line": 74, "column": 21 }, "end": { "line": 74, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1733, "end": 1734, "loc": { "start": { "line": 74, "column": 23 }, "end": { "line": 74, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1735, "end": 1736, "loc": { "start": { "line": 74, "column": 25 }, "end": { "line": 74, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1736, "end": 1739, "loc": { "start": { "line": 74, "column": 26 }, "end": { "line": 74, "column": 29 } } }, { "type": { "label": "<>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 8, "updateContext": null }, "value": ">>>", "start": 1740, "end": 1743, "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 33 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 1744, "end": 1745, "loc": { "start": { "line": 74, "column": 34 }, "end": { "line": 74, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1745, "end": 1746, "loc": { "start": { "line": 74, "column": 35 }, "end": { "line": 74, "column": 36 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 1747, "end": 1748, "loc": { "start": { "line": 74, "column": 37 }, "end": { "line": 74, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 1749, "end": 1754, "loc": { "start": { "line": 74, "column": 39 }, "end": { "line": 74, "column": 44 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1757, "end": 1758, "loc": { "start": { "line": 75, "column": 2 }, "end": { "line": 75, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 1762, "end": 1879, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 81, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeUint32", "start": 1882, "end": 1893, "loc": { "start": { "line": 82, "column": 2 }, "end": { "line": 82, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1894, "end": 1895, "loc": { "start": { "line": 82, "column": 14 }, "end": { "line": 82, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1895, "end": 1898, "loc": { "start": { "line": 82, "column": 15 }, "end": { "line": 82, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1898, "end": 1899, "loc": { "start": { "line": 82, "column": 18 }, "end": { "line": 82, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1900, "end": 1901, "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 82, "column": 21 } } }, { "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": 1906, "end": 1909, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 83, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1910, "end": 1911, "loc": { "start": { "line": 83, "column": 8 }, "end": { "line": 83, "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": 1911, "end": 1914, "loc": { "start": { "line": 83, "column": 9 }, "end": { "line": 83, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1915, "end": 1916, "loc": { "start": { "line": 83, "column": 13 }, "end": { "line": 83, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1917, "end": 1918, "loc": { "start": { "line": 83, "column": 15 }, "end": { "line": 83, "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": 1919, "end": 1920, "loc": { "start": { "line": 83, "column": 17 }, "end": { "line": 83, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1920, "end": 1921, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1922, "end": 1923, "loc": { "start": { "line": 83, "column": 20 }, "end": { "line": 83, "column": 21 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 1924, "end": 1925, "loc": { "start": { "line": 83, "column": 22 }, "end": { "line": 83, "column": 23 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 1926, "end": 1927, "loc": { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1927, "end": 1928, "loc": { "start": { "line": 83, "column": 25 }, "end": { "line": 83, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1929, "end": 1930, "loc": { "start": { "line": 83, "column": 27 }, "end": { "line": 83, "column": 28 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 1930, "end": 1932, "loc": { "start": { "line": 83, "column": 28 }, "end": { "line": 83, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1932, "end": 1933, "loc": { "start": { "line": 83, "column": 30 }, "end": { "line": 83, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1934, "end": 1935, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 33 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1942, "end": 1946, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1946, "end": 1947, "loc": { "start": { "line": 84, "column": 10 }, "end": { "line": 84, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 1947, "end": 1951, "loc": { "start": { "line": 84, "column": 11 }, "end": { "line": 84, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1951, "end": 1952, "loc": { "start": { "line": 84, "column": 15 }, "end": { "line": 84, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 1952, "end": 1956, "loc": { "start": { "line": 84, "column": 16 }, "end": { "line": 84, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1956, "end": 1957, "loc": { "start": { "line": 84, "column": 20 }, "end": { "line": 84, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1957, "end": 1960, "loc": { "start": { "line": 84, "column": 21 }, "end": { "line": 84, "column": 24 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 1961, "end": 1962, "loc": { "start": { "line": 84, "column": 25 }, "end": { "line": 84, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 1963, "end": 1968, "loc": { "start": { "line": 84, "column": 27 }, "end": { "line": 84, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1968, "end": 1969, "loc": { "start": { "line": 84, "column": 32 }, "end": { "line": 84, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 1976, "end": 1979, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 9 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ">>>=", "start": 1980, "end": 1984, "loc": { "start": { "line": 85, "column": 10 }, "end": { "line": 85, "column": 14 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 1985, "end": 1986, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1991, "end": 1992, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 86, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1995, "end": 1996, "loc": { "start": { "line": 87, "column": 2 }, "end": { "line": 87, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write two bytes as an unsigned integer at a specific location.\n *\n * @param {number} pos The location where the data will be written.\n * @param {number} num The number that is to be encoded.\n ", "start": 2000, "end": 2211, "loc": { "start": { "line": 89, "column": 2 }, "end": { "line": 94, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setUint32", "start": 2214, "end": 2223, "loc": { "start": { "line": 95, "column": 2 }, "end": { "line": 95, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2224, "end": 2225, "loc": { "start": { "line": 95, "column": 12 }, "end": { "line": 95, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 2225, "end": 2228, "loc": { "start": { "line": 95, "column": 13 }, "end": { "line": 95, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2228, "end": 2229, "loc": { "start": { "line": 95, "column": 16 }, "end": { "line": 95, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2230, "end": 2233, "loc": { "start": { "line": 95, "column": 18 }, "end": { "line": 95, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2233, "end": 2234, "loc": { "start": { "line": 95, "column": 21 }, "end": { "line": 95, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2235, "end": 2236, "loc": { "start": { "line": 95, "column": 23 }, "end": { "line": 95, "column": 24 } } }, { "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": 2241, "end": 2244, "loc": { "start": { "line": 96, "column": 4 }, "end": { "line": 96, "column": 7 } } }, { "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": 96, "column": 8 }, "end": { "line": 96, "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": 2246, "end": 2249, "loc": { "start": { "line": 96, "column": 9 }, "end": { "line": 96, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2250, "end": 2251, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2252, "end": 2253, "loc": { "start": { "line": 96, "column": 15 }, "end": { "line": 96, "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": 2254, "end": 2255, "loc": { "start": { "line": 96, "column": 17 }, "end": { "line": 96, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2255, "end": 2256, "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": "i", "start": 2257, "end": 2258, "loc": { "start": { "line": 96, "column": 20 }, "end": { "line": 96, "column": 21 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2259, "end": 2260, "loc": { "start": { "line": 96, "column": 22 }, "end": { "line": 96, "column": 23 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 2261, "end": 2262, "loc": { "start": { "line": 96, "column": 24 }, "end": { "line": 96, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2262, "end": 2263, "loc": { "start": { "line": 96, "column": 25 }, "end": { "line": 96, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2264, "end": 2265, "loc": { "start": { "line": 96, "column": 27 }, "end": { "line": 96, "column": 28 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2265, "end": 2267, "loc": { "start": { "line": 96, "column": 28 }, "end": { "line": 96, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2267, "end": 2268, "loc": { "start": { "line": 96, "column": 30 }, "end": { "line": 96, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2269, "end": 2270, "loc": { "start": { "line": 96, "column": 32 }, "end": { "line": 96, "column": 33 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2277, "end": 2281, "loc": { "start": { "line": 97, "column": 6 }, "end": { "line": 97, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2281, "end": 2282, "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": "data", "start": 2282, "end": 2286, "loc": { "start": { "line": 97, "column": 11 }, "end": { "line": 97, "column": 15 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2286, "end": 2287, "loc": { "start": { "line": 97, "column": 15 }, "end": { "line": 97, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 2287, "end": 2290, "loc": { "start": { "line": 97, "column": 16 }, "end": { "line": 97, "column": 19 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2291, "end": 2292, "loc": { "start": { "line": 97, "column": 20 }, "end": { "line": 97, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2293, "end": 2294, "loc": { "start": { "line": 97, "column": 22 }, "end": { "line": 97, "column": 23 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2294, "end": 2295, "loc": { "start": { "line": 97, "column": 23 }, "end": { "line": 97, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2296, "end": 2297, "loc": { "start": { "line": 97, "column": 25 }, "end": { "line": 97, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2298, "end": 2301, "loc": { "start": { "line": 97, "column": 27 }, "end": { "line": 97, "column": 30 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 2302, "end": 2303, "loc": { "start": { "line": 97, "column": 31 }, "end": { "line": 97, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits8", "start": 2304, "end": 2309, "loc": { "start": { "line": 97, "column": 33 }, "end": { "line": 97, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2316, "end": 2319, "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": 2320, "end": 2324, "loc": { "start": { "line": 98, "column": 10 }, "end": { "line": 98, "column": 14 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 2325, "end": 2326, "loc": { "start": { "line": 98, "column": 15 }, "end": { "line": 98, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2331, "end": 2332, "loc": { "start": { "line": 99, "column": 4 }, "end": { "line": 99, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2335, "end": 2336, "loc": { "start": { "line": 100, "column": 2 }, "end": { "line": 100, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write a variable length unsigned integer.\n *\n * @param {number} num The number that is to be encoded.\n ", "start": 2340, "end": 2460, "loc": { "start": { "line": 102, "column": 2 }, "end": { "line": 106, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarUint", "start": 2463, "end": 2475, "loc": { "start": { "line": 107, "column": 2 }, "end": { "line": 107, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2476, "end": 2477, "loc": { "start": { "line": 107, "column": 15 }, "end": { "line": 107, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2477, "end": 2480, "loc": { "start": { "line": 107, "column": 16 }, "end": { "line": 107, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2480, "end": 2481, "loc": { "start": { "line": 107, "column": 19 }, "end": { "line": 107, "column": 20 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2482, "end": 2483, "loc": { "start": { "line": 107, "column": 21 }, "end": { "line": 107, "column": 22 } } }, { "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": 2488, "end": 2493, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 108, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2494, "end": 2495, "loc": { "start": { "line": 108, "column": 10 }, "end": { "line": 108, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2495, "end": 2498, "loc": { "start": { "line": 108, "column": 11 }, "end": { "line": 108, "column": 14 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">=", "start": 2499, "end": 2501, "loc": { "start": { "line": 108, "column": 15 }, "end": { "line": 108, "column": 17 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 128, "start": 2502, "end": 2512, "loc": { "start": { "line": 108, "column": 18 }, "end": { "line": 108, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2512, "end": 2513, "loc": { "start": { "line": 108, "column": 28 }, "end": { "line": 108, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2514, "end": 2515, "loc": { "start": { "line": 108, "column": 30 }, "end": { "line": 108, "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": 2522, "end": 2526, "loc": { "start": { "line": 109, "column": 6 }, "end": { "line": 109, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2526, "end": 2527, "loc": { "start": { "line": 109, "column": 10 }, "end": { "line": 109, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 2527, "end": 2531, "loc": { "start": { "line": 109, "column": 11 }, "end": { "line": 109, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2531, "end": 2532, "loc": { "start": { "line": 109, "column": 15 }, "end": { "line": 109, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 2532, "end": 2536, "loc": { "start": { "line": 109, "column": 16 }, "end": { "line": 109, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2536, "end": 2537, "loc": { "start": { "line": 109, "column": 20 }, "end": { "line": 109, "column": 21 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 128, "start": 2537, "end": 2547, "loc": { "start": { "line": 109, "column": 21 }, "end": { "line": 109, "column": 31 } } }, { "type": { "label": "|", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 3, "updateContext": null }, "value": "|", "start": 2548, "end": 2549, "loc": { "start": { "line": 109, "column": 32 }, "end": { "line": 109, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2550, "end": 2551, "loc": { "start": { "line": 109, "column": 34 }, "end": { "line": 109, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits7", "start": 2551, "end": 2556, "loc": { "start": { "line": 109, "column": 35 }, "end": { "line": 109, "column": 40 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 2557, "end": 2558, "loc": { "start": { "line": 109, "column": 41 }, "end": { "line": 109, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2559, "end": 2562, "loc": { "start": { "line": 109, "column": 43 }, "end": { "line": 109, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2562, "end": 2563, "loc": { "start": { "line": 109, "column": 46 }, "end": { "line": 109, "column": 47 } } }, { "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": 109, "column": 47 }, "end": { "line": 109, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2571, "end": 2574, "loc": { "start": { "line": 110, "column": 6 }, "end": { "line": 110, "column": 9 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ">>>=", "start": 2575, "end": 2579, "loc": { "start": { "line": 110, "column": 10 }, "end": { "line": 110, "column": 14 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 7, "start": 2580, "end": 2581, "loc": { "start": { "line": 110, "column": 15 }, "end": { "line": 110, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2586, "end": 2587, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "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": 2592, "end": 2596, "loc": { "start": { "line": 112, "column": 4 }, "end": { "line": 112, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2596, "end": 2597, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 112, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 2597, "end": 2601, "loc": { "start": { "line": 112, "column": 9 }, "end": { "line": 112, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2601, "end": 2602, "loc": { "start": { "line": 112, "column": 13 }, "end": { "line": 112, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 2602, "end": 2606, "loc": { "start": { "line": 112, "column": 14 }, "end": { "line": 112, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2606, "end": 2607, "loc": { "start": { "line": 112, "column": 18 }, "end": { "line": 112, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bits7", "start": 2607, "end": 2612, "loc": { "start": { "line": 112, "column": 19 }, "end": { "line": 112, "column": 24 } } }, { "type": { "label": "&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 5, "updateContext": null }, "value": "&", "start": 2613, "end": 2614, "loc": { "start": { "line": 112, "column": 25 }, "end": { "line": 112, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "num", "start": 2615, "end": 2618, "loc": { "start": { "line": 112, "column": 27 }, "end": { "line": 112, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2618, "end": 2619, "loc": { "start": { "line": 112, "column": 30 }, "end": { "line": 112, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2622, "end": 2623, "loc": { "start": { "line": 113, "column": 2 }, "end": { "line": 113, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write a variable length string.\n *\n * @param {String} str The string that is to be encoded.\n ", "start": 2627, "end": 2737, "loc": { "start": { "line": 115, "column": 2 }, "end": { "line": 119, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarString", "start": 2740, "end": 2754, "loc": { "start": { "line": 120, "column": 2 }, "end": { "line": 120, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2755, "end": 2756, "loc": { "start": { "line": 120, "column": 17 }, "end": { "line": 120, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "str", "start": 2756, "end": 2759, "loc": { "start": { "line": 120, "column": 18 }, "end": { "line": 120, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2759, "end": 2760, "loc": { "start": { "line": 120, "column": 21 }, "end": { "line": 120, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2761, "end": 2762, "loc": { "start": { "line": 120, "column": 23 }, "end": { "line": 120, "column": 24 } } }, { "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": 2767, "end": 2770, "loc": { "start": { "line": 121, "column": 4 }, "end": { "line": 121, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "encodedString", "start": 2771, "end": 2784, "loc": { "start": { "line": 121, "column": 8 }, "end": { "line": 121, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2785, "end": 2786, "loc": { "start": { "line": 121, "column": 22 }, "end": { "line": 121, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "unescape", "start": 2787, "end": 2795, "loc": { "start": { "line": 121, "column": 24 }, "end": { "line": 121, "column": 32 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2795, "end": 2796, "loc": { "start": { "line": 121, "column": 32 }, "end": { "line": 121, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "encodeURIComponent", "start": 2796, "end": 2814, "loc": { "start": { "line": 121, "column": 33 }, "end": { "line": 121, "column": 51 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2814, "end": 2815, "loc": { "start": { "line": 121, "column": 51 }, "end": { "line": 121, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "str", "start": 2815, "end": 2818, "loc": { "start": { "line": 121, "column": 52 }, "end": { "line": 121, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2818, "end": 2819, "loc": { "start": { "line": 121, "column": 55 }, "end": { "line": 121, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2819, "end": 2820, "loc": { "start": { "line": 121, "column": 56 }, "end": { "line": 121, "column": 57 } } }, { "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": 2825, "end": 2828, "loc": { "start": { "line": 122, "column": 4 }, "end": { "line": 122, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bytes", "start": 2829, "end": 2834, "loc": { "start": { "line": 122, "column": 8 }, "end": { "line": 122, "column": 13 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2835, "end": 2836, "loc": { "start": { "line": 122, "column": 14 }, "end": { "line": 122, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "encodedString", "start": 2837, "end": 2850, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2850, "end": 2851, "loc": { "start": { "line": 122, "column": 29 }, "end": { "line": 122, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "split", "start": 2851, "end": 2856, "loc": { "start": { "line": 122, "column": 30 }, "end": { "line": 122, "column": 35 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2856, "end": 2857, "loc": { "start": { "line": 122, "column": 35 }, "end": { "line": 122, "column": 36 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "", "start": 2857, "end": 2859, "loc": { "start": { "line": 122, "column": 36 }, "end": { "line": 122, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2859, "end": 2860, "loc": { "start": { "line": 122, "column": 38 }, "end": { "line": 122, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2860, "end": 2861, "loc": { "start": { "line": 122, "column": 39 }, "end": { "line": 122, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "map", "start": 2861, "end": 2864, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2864, "end": 2865, "loc": { "start": { "line": 122, "column": 43 }, "end": { "line": 122, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "c", "start": 2865, "end": 2866, "loc": { "start": { "line": 122, "column": 44 }, "end": { "line": 122, "column": 45 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2867, "end": 2869, "loc": { "start": { "line": 122, "column": 46 }, "end": { "line": 122, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "c", "start": 2870, "end": 2871, "loc": { "start": { "line": 122, "column": 49 }, "end": { "line": 122, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2871, "end": 2872, "loc": { "start": { "line": 122, "column": 50 }, "end": { "line": 122, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "codePointAt", "start": 2872, "end": 2883, "loc": { "start": { "line": 122, "column": 51 }, "end": { "line": 122, "column": 62 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2883, "end": 2884, "loc": { "start": { "line": 122, "column": 62 }, "end": { "line": 122, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2884, "end": 2885, "loc": { "start": { "line": 122, "column": 63 }, "end": { "line": 122, "column": 64 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2885, "end": 2886, "loc": { "start": { "line": 122, "column": 64 }, "end": { "line": 122, "column": 65 } } }, { "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": 2891, "end": 2894, "loc": { "start": { "line": 123, "column": 4 }, "end": { "line": 123, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2895, "end": 2898, "loc": { "start": { "line": 123, "column": 8 }, "end": { "line": 123, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2899, "end": 2900, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bytes", "start": 2901, "end": 2906, "loc": { "start": { "line": 123, "column": 14 }, "end": { "line": 123, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2906, "end": 2907, "loc": { "start": { "line": 123, "column": 19 }, "end": { "line": 123, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 2907, "end": 2913, "loc": { "start": { "line": 123, "column": 20 }, "end": { "line": 123, "column": 26 } } }, { "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": 2918, "end": 2922, "loc": { "start": { "line": 124, "column": 4 }, "end": { "line": 124, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2922, "end": 2923, "loc": { "start": { "line": 124, "column": 8 }, "end": { "line": 124, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarUint", "start": 2923, "end": 2935, "loc": { "start": { "line": 124, "column": 9 }, "end": { "line": 124, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2935, "end": 2936, "loc": { "start": { "line": 124, "column": 21 }, "end": { "line": 124, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2936, "end": 2939, "loc": { "start": { "line": 124, "column": 22 }, "end": { "line": 124, "column": 25 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2939, "end": 2940, "loc": { "start": { "line": 124, "column": 25 }, "end": { "line": 124, "column": 26 } } }, { "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": 2945, "end": 2948, "loc": { "start": { "line": 125, "column": 4 }, "end": { "line": 125, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2949, "end": 2950, "loc": { "start": { "line": 125, "column": 8 }, "end": { "line": 125, "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": 2950, "end": 2953, "loc": { "start": { "line": 125, "column": 9 }, "end": { "line": 125, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2954, "end": 2955, "loc": { "start": { "line": 125, "column": 13 }, "end": { "line": 125, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2956, "end": 2957, "loc": { "start": { "line": 125, "column": 15 }, "end": { "line": 125, "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": 2958, "end": 2959, "loc": { "start": { "line": 125, "column": 17 }, "end": { "line": 125, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2959, "end": 2960, "loc": { "start": { "line": 125, "column": 18 }, "end": { "line": 125, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2961, "end": 2962, "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 21 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2963, "end": 2964, "loc": { "start": { "line": 125, "column": 22 }, "end": { "line": 125, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "len", "start": 2965, "end": 2968, "loc": { "start": { "line": 125, "column": 24 }, "end": { "line": 125, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2968, "end": 2969, "loc": { "start": { "line": 125, "column": 27 }, "end": { "line": 125, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2970, "end": 2971, "loc": { "start": { "line": 125, "column": 29 }, "end": { "line": 125, "column": 30 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2971, "end": 2973, "loc": { "start": { "line": 125, "column": 30 }, "end": { "line": 125, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2973, "end": 2974, "loc": { "start": { "line": 125, "column": 32 }, "end": { "line": 125, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2975, "end": 2976, "loc": { "start": { "line": 125, "column": 34 }, "end": { "line": 125, "column": 35 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2983, "end": 2987, "loc": { "start": { "line": 126, "column": 6 }, "end": { "line": 126, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2987, "end": 2988, "loc": { "start": { "line": 126, "column": 10 }, "end": { "line": 126, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 2988, "end": 2992, "loc": { "start": { "line": 126, "column": 11 }, "end": { "line": 126, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2992, "end": 2993, "loc": { "start": { "line": 126, "column": 15 }, "end": { "line": 126, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 2993, "end": 2997, "loc": { "start": { "line": 126, "column": 16 }, "end": { "line": 126, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2997, "end": 2998, "loc": { "start": { "line": 126, "column": 20 }, "end": { "line": 126, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bytes", "start": 2998, "end": 3003, "loc": { "start": { "line": 126, "column": 21 }, "end": { "line": 126, "column": 26 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3003, "end": 3004, "loc": { "start": { "line": 126, "column": 26 }, "end": { "line": 126, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 3004, "end": 3005, "loc": { "start": { "line": 126, "column": 27 }, "end": { "line": 126, "column": 28 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3005, "end": 3006, "loc": { "start": { "line": 126, "column": 28 }, "end": { "line": 126, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3006, "end": 3007, "loc": { "start": { "line": 126, "column": 29 }, "end": { "line": 126, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3012, "end": 3013, "loc": { "start": { "line": 127, "column": 4 }, "end": { "line": 127, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3016, "end": 3017, "loc": { "start": { "line": 128, "column": 2 }, "end": { "line": 128, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Write an ID at the current position.\n *\n * @param {ID} id The ID that is to be written.\n ", "start": 3021, "end": 3127, "loc": { "start": { "line": 130, "column": 2 }, "end": { "line": 134, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeID", "start": 3130, "end": 3137, "loc": { "start": { "line": 135, "column": 2 }, "end": { "line": 135, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3138, "end": 3139, "loc": { "start": { "line": 135, "column": 10 }, "end": { "line": 135, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 3139, "end": 3141, "loc": { "start": { "line": 135, "column": 11 }, "end": { "line": 135, "column": 13 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3141, "end": 3142, "loc": { "start": { "line": 135, "column": 13 }, "end": { "line": 135, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3143, "end": 3144, "loc": { "start": { "line": 135, "column": 15 }, "end": { "line": 135, "column": 16 } } }, { "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": 3149, "end": 3154, "loc": { "start": { "line": 136, "column": 4 }, "end": { "line": 136, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "user", "start": 3155, "end": 3159, "loc": { "start": { "line": 136, "column": 10 }, "end": { "line": 136, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3160, "end": 3161, "loc": { "start": { "line": 136, "column": 15 }, "end": { "line": 136, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 3162, "end": 3164, "loc": { "start": { "line": 136, "column": 17 }, "end": { "line": 136, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3164, "end": 3165, "loc": { "start": { "line": 136, "column": 19 }, "end": { "line": 136, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "user", "start": 3165, "end": 3169, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 136, "column": 24 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3174, "end": 3178, "loc": { "start": { "line": 137, "column": 4 }, "end": { "line": 137, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3178, "end": 3179, "loc": { "start": { "line": 137, "column": 8 }, "end": { "line": 137, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarUint", "start": 3179, "end": 3191, "loc": { "start": { "line": 137, "column": 9 }, "end": { "line": 137, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3191, "end": 3192, "loc": { "start": { "line": 137, "column": 21 }, "end": { "line": 137, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "user", "start": 3192, "end": 3196, "loc": { "start": { "line": 137, "column": 22 }, "end": { "line": 137, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3196, "end": 3197, "loc": { "start": { "line": 137, "column": 26 }, "end": { "line": 137, "column": 27 } } }, { "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": 3202, "end": 3204, "loc": { "start": { "line": 138, "column": 4 }, "end": { "line": 138, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3205, "end": 3206, "loc": { "start": { "line": 138, "column": 7 }, "end": { "line": 138, "column": 8 } } }, { "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": 138, "column": 8 }, "end": { "line": 138, "column": 12 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 3211, "end": 3214, "loc": { "start": { "line": 138, "column": 13 }, "end": { "line": 138, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "RootFakeUserID", "start": 3215, "end": 3229, "loc": { "start": { "line": 138, "column": 17 }, "end": { "line": 138, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3229, "end": 3230, "loc": { "start": { "line": 138, "column": 31 }, "end": { "line": 138, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3231, "end": 3232, "loc": { "start": { "line": 138, "column": 33 }, "end": { "line": 138, "column": 34 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3239, "end": 3243, "loc": { "start": { "line": 139, "column": 6 }, "end": { "line": 139, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3243, "end": 3244, "loc": { "start": { "line": 139, "column": 10 }, "end": { "line": 139, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarUint", "start": 3244, "end": 3256, "loc": { "start": { "line": 139, "column": 11 }, "end": { "line": 139, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3256, "end": 3257, "loc": { "start": { "line": 139, "column": 23 }, "end": { "line": 139, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 3257, "end": 3259, "loc": { "start": { "line": 139, "column": 24 }, "end": { "line": 139, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3259, "end": 3260, "loc": { "start": { "line": 139, "column": 26 }, "end": { "line": 139, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clock", "start": 3260, "end": 3265, "loc": { "start": { "line": 139, "column": 27 }, "end": { "line": 139, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3265, "end": 3266, "loc": { "start": { "line": 139, "column": 32 }, "end": { "line": 139, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3271, "end": 3272, "loc": { "start": { "line": 140, "column": 4 }, "end": { "line": 140, "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": 3273, "end": 3277, "loc": { "start": { "line": 140, "column": 6 }, "end": { "line": 140, "column": 10 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3278, "end": 3279, "loc": { "start": { "line": 140, "column": 11 }, "end": { "line": 140, "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": 3286, "end": 3290, "loc": { "start": { "line": 141, "column": 6 }, "end": { "line": 141, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3290, "end": 3291, "loc": { "start": { "line": 141, "column": 10 }, "end": { "line": 141, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarString", "start": 3291, "end": 3305, "loc": { "start": { "line": 141, "column": 11 }, "end": { "line": 141, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3305, "end": 3306, "loc": { "start": { "line": 141, "column": 25 }, "end": { "line": 141, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 3306, "end": 3308, "loc": { "start": { "line": 141, "column": 26 }, "end": { "line": 141, "column": 28 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3308, "end": 3309, "loc": { "start": { "line": 141, "column": 28 }, "end": { "line": 141, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 3309, "end": 3313, "loc": { "start": { "line": 141, "column": 29 }, "end": { "line": 141, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3313, "end": 3314, "loc": { "start": { "line": 141, "column": 33 }, "end": { "line": 141, "column": 34 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 3321, "end": 3325, "loc": { "start": { "line": 142, "column": 6 }, "end": { "line": 142, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3325, "end": 3326, "loc": { "start": { "line": 142, "column": 10 }, "end": { "line": 142, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeVarUint", "start": 3326, "end": 3338, "loc": { "start": { "line": 142, "column": 11 }, "end": { "line": 142, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3338, "end": 3339, "loc": { "start": { "line": 142, "column": 23 }, "end": { "line": 142, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 3339, "end": 3341, "loc": { "start": { "line": 142, "column": 24 }, "end": { "line": 142, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3341, "end": 3342, "loc": { "start": { "line": 142, "column": 26 }, "end": { "line": 142, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "type", "start": 3342, "end": 3346, "loc": { "start": { "line": 142, "column": 27 }, "end": { "line": 142, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3346, "end": 3347, "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": 3352, "end": 3353, "loc": { "start": { "line": 143, "column": 4 }, "end": { "line": 143, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3356, "end": 3357, "loc": { "start": { "line": 144, "column": 2 }, "end": { "line": 144, "column": 3 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3358, "end": 3359, "loc": { "start": { "line": 145, "column": 0 }, "end": { "line": 145, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3360, "end": 3360, "loc": { "start": { "line": 146, "column": 0 }, "end": { "line": 146, "column": 0 } } } ] }