{ "type": "File", "start": 0, "end": 1700, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 70, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1700, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 70, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportDefaultDeclaration", "start": 50, "end": 1699, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 69, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 65, "end": 1699, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 69, "column": 1 } }, "id": { "type": "Identifier", "start": 71, "end": 83, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 33 }, "identifierName": "EventHandler" }, "name": "EventHandler", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 84, "end": 1699, "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 69, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 88, "end": 137, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 8, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 88, "end": 99, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 13 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 103, "end": 137, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 8, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 109, "end": 133, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 109, "end": 133, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 109, "end": 128, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 23 } }, "object": { "type": "ThisExpression", "start": 109, "end": 113, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 8 } } }, "property": { "type": "Identifier", "start": 114, "end": 128, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 23 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 131, "end": 133, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 28 } }, "elements": [] } } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * To prevent memory leaks, call this method when the eventListeners won't be\n * used anymore.\n ", "start": 141, "end": 249, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 13, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 252, "end": 299, "loc": { "start": { "line": 14, "column": 2 }, "end": { "line": 16, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 252, "end": 259, "loc": { "start": { "line": 14, "column": 2 }, "end": { "line": 14, "column": 9 }, "identifierName": "destroy" }, "name": "destroy", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 263, "end": 299, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 16, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 269, "end": 295, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 269, "end": 295, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 269, "end": 288, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 23 } }, "object": { "type": "ThisExpression", "start": 269, "end": 273, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 8 } } }, "property": { "type": "Identifier", "start": 274, "end": 288, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 23 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "right": { "type": "NullLiteral", "start": 291, "end": 295, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 30 } } } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * To prevent memory leaks, call this method when the eventListeners won't be\n * used anymore.\n ", "start": 141, "end": 249, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 13, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Adds an event listener that is called when\n * {@link EventHandler#callEventListeners} is called.\n *\n * @param {Function} f The event handler.\n ", "start": 303, "end": 465, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 23, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 468, "end": 526, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 26, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 468, "end": 484, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 24, "column": 18 }, "identifierName": "addEventListener" }, "name": "addEventListener", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 486, "end": 487, "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 21 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "BlockStatement", "start": 489, "end": 526, "loc": { "start": { "line": 24, "column": 23 }, "end": { "line": 26, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 495, "end": 522, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 31 } }, "expression": { "type": "CallExpression", "start": 495, "end": 522, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 495, "end": 519, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 28 } }, "object": { "type": "MemberExpression", "start": 495, "end": 514, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 23 } }, "object": { "type": "ThisExpression", "start": 495, "end": 499, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 8 } } }, "property": { "type": "Identifier", "start": 500, "end": 514, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 23 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "property": { "type": "Identifier", "start": 515, "end": 519, "loc": { "start": { "line": 25, "column": 24 }, "end": { "line": 25, "column": 28 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 520, "end": 521, "loc": { "start": { "line": 25, "column": 29 }, "end": { "line": 25, "column": 30 }, "identifierName": "f" }, "name": "f" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Adds an event listener that is called when\n * {@link EventHandler#callEventListeners} is called.\n *\n * @param {Function} f The event handler.\n ", "start": 303, "end": 465, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 23, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Removes an event listener.\n *\n * @param {Function} f The event handler that was added with\n * {@link EventHandler#addEventListener}\n ", "start": 530, "end": 702, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 33, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 705, "end": 830, "loc": { "start": { "line": 34, "column": 2 }, "end": { "line": 38, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 705, "end": 724, "loc": { "start": { "line": 34, "column": 2 }, "end": { "line": 34, "column": 21 }, "identifierName": "removeEventListener" }, "name": "removeEventListener", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 726, "end": 727, "loc": { "start": { "line": 34, "column": 23 }, "end": { "line": 34, "column": 24 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "BlockStatement", "start": 729, "end": 830, "loc": { "start": { "line": 34, "column": 26 }, "end": { "line": 38, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 735, "end": 826, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 37, "column": 6 } }, "expression": { "type": "AssignmentExpression", "start": 735, "end": 826, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 37, "column": 6 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 735, "end": 754, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 23 } }, "object": { "type": "ThisExpression", "start": 735, "end": 739, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 8 } } }, "property": { "type": "Identifier", "start": 740, "end": 754, "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 23 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "right": { "type": "CallExpression", "start": 757, "end": 826, "loc": { "start": { "line": 35, "column": 26 }, "end": { "line": 37, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 757, "end": 783, "loc": { "start": { "line": 35, "column": 26 }, "end": { "line": 35, "column": 52 } }, "object": { "type": "MemberExpression", "start": 757, "end": 776, "loc": { "start": { "line": 35, "column": 26 }, "end": { "line": 35, "column": 45 } }, "object": { "type": "ThisExpression", "start": 757, "end": 761, "loc": { "start": { "line": 35, "column": 26 }, "end": { "line": 35, "column": 30 } } }, "property": { "type": "Identifier", "start": 762, "end": 776, "loc": { "start": { "line": 35, "column": 31 }, "end": { "line": 35, "column": 45 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "property": { "type": "Identifier", "start": 777, "end": 783, "loc": { "start": { "line": 35, "column": 46 }, "end": { "line": 35, "column": 52 }, "identifierName": "filter" }, "name": "filter" }, "computed": false }, "arguments": [ { "type": "FunctionExpression", "start": 784, "end": 825, "loc": { "start": { "line": 35, "column": 53 }, "end": { "line": 37, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 794, "end": 795, "loc": { "start": { "line": 35, "column": 63 }, "end": { "line": 35, "column": 64 }, "identifierName": "g" }, "name": "g" } ], "body": { "type": "BlockStatement", "start": 797, "end": 825, "loc": { "start": { "line": 35, "column": 66 }, "end": { "line": 37, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 805, "end": 819, "loc": { "start": { "line": 36, "column": 6 }, "end": { "line": 36, "column": 20 } }, "argument": { "type": "BinaryExpression", "start": 812, "end": 819, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 20 } }, "left": { "type": "Identifier", "start": 812, "end": 813, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 14 }, "identifierName": "f" }, "name": "f" }, "operator": "!==", "right": { "type": "Identifier", "start": 818, "end": 819, "loc": { "start": { "line": 36, "column": 19 }, "end": { "line": 36, "column": 20 }, "identifierName": "g" }, "name": "g" } } } ], "directives": [] } } ] } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Removes an event listener.\n *\n * @param {Function} f The event handler that was added with\n * {@link EventHandler#addEventListener}\n ", "start": 530, "end": 702, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 33, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Removes all event listeners.\n ", "start": 834, "end": 877, "loc": { "start": { "line": 40, "column": 2 }, "end": { "line": 42, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 880, "end": 941, "loc": { "start": { "line": 43, "column": 2 }, "end": { "line": 45, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 880, "end": 903, "loc": { "start": { "line": 43, "column": 2 }, "end": { "line": 43, "column": 25 }, "identifierName": "removeAllEventListeners" }, "name": "removeAllEventListeners", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 907, "end": 941, "loc": { "start": { "line": 43, "column": 29 }, "end": { "line": 45, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 913, "end": 937, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 913, "end": 937, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 913, "end": 932, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 23 } }, "object": { "type": "ThisExpression", "start": 913, "end": 917, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 8 } } }, "property": { "type": "Identifier", "start": 918, "end": 932, "loc": { "start": { "line": 44, "column": 9 }, "end": { "line": 44, "column": 23 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 935, "end": 937, "loc": { "start": { "line": 44, "column": 26 }, "end": { "line": 44, "column": 28 } }, "elements": [] } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Removes all event listeners.\n ", "start": 834, "end": 877, "loc": { "start": { "line": 40, "column": 2 }, "end": { "line": 42, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Call all event listeners that were added via\n * {@link EventHandler#addEventListener}.\n *\n * @param {Transaction} transaction The transaction object // TODO: do we need this?\n * @param {YEvent} event An event object that describes the change on a type.\n ", "start": 945, "end": 1220, "loc": { "start": { "line": 47, "column": 2 }, "end": { "line": 53, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1223, "end": 1697, "loc": { "start": { "line": 54, "column": 2 }, "end": { "line": 68, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1223, "end": 1241, "loc": { "start": { "line": 54, "column": 2 }, "end": { "line": 54, "column": 20 }, "identifierName": "callEventListeners" }, "name": "callEventListeners", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1243, "end": 1254, "loc": { "start": { "line": 54, "column": 22 }, "end": { "line": 54, "column": 33 }, "identifierName": "transaction" }, "name": "transaction" }, { "type": "Identifier", "start": 1256, "end": 1261, "loc": { "start": { "line": 54, "column": 35 }, "end": { "line": 54, "column": 40 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 1263, "end": 1697, "loc": { "start": { "line": 54, "column": 42 }, "end": { "line": 68, "column": 3 } }, "body": [ { "type": "ForStatement", "start": 1269, "end": 1693, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 67, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 1274, "end": 1283, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1278, "end": 1283, "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 18 } }, "id": { "type": "Identifier", "start": 1278, "end": 1279, "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 14 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 1282, "end": 1283, "loc": { "start": { "line": 55, "column": 17 }, "end": { "line": 55, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "var" }, "test": { "type": "BinaryExpression", "start": 1285, "end": 1315, "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 50 } }, "left": { "type": "Identifier", "start": 1285, "end": 1286, "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 21 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 1289, "end": 1315, "loc": { "start": { "line": 55, "column": 24 }, "end": { "line": 55, "column": 50 } }, "object": { "type": "MemberExpression", "start": 1289, "end": 1308, "loc": { "start": { "line": 55, "column": 24 }, "end": { "line": 55, "column": 43 } }, "object": { "type": "ThisExpression", "start": 1289, "end": 1293, "loc": { "start": { "line": 55, "column": 24 }, "end": { "line": 55, "column": 28 } } }, "property": { "type": "Identifier", "start": 1294, "end": 1308, "loc": { "start": { "line": 55, "column": 29 }, "end": { "line": 55, "column": 43 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "property": { "type": "Identifier", "start": 1309, "end": 1315, "loc": { "start": { "line": 55, "column": 44 }, "end": { "line": 55, "column": 50 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 1317, "end": 1320, "loc": { "start": { "line": 55, "column": 52 }, "end": { "line": 55, "column": 55 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 1317, "end": 1318, "loc": { "start": { "line": 55, "column": 52 }, "end": { "line": 55, "column": 53 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 1322, "end": 1693, "loc": { "start": { "line": 55, "column": 57 }, "end": { "line": 67, "column": 5 } }, "body": [ { "type": "TryStatement", "start": 1330, "end": 1687, "loc": { "start": { "line": 56, "column": 6 }, "end": { "line": 66, "column": 7 } }, "block": { "type": "BlockStatement", "start": 1334, "end": 1401, "loc": { "start": { "line": 56, "column": 10 }, "end": { "line": 59, "column": 7 } }, "body": [ { "type": "VariableDeclaration", "start": 1344, "end": 1376, "loc": { "start": { "line": 57, "column": 8 }, "end": { "line": 57, "column": 40 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1350, "end": 1376, "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 40 } }, "id": { "type": "Identifier", "start": 1350, "end": 1351, "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 15 }, "identifierName": "f" }, "name": "f" }, "init": { "type": "MemberExpression", "start": 1354, "end": 1376, "loc": { "start": { "line": 57, "column": 18 }, "end": { "line": 57, "column": 40 } }, "object": { "type": "MemberExpression", "start": 1354, "end": 1373, "loc": { "start": { "line": 57, "column": 18 }, "end": { "line": 57, "column": 37 } }, "object": { "type": "ThisExpression", "start": 1354, "end": 1358, "loc": { "start": { "line": 57, "column": 18 }, "end": { "line": 57, "column": 22 } } }, "property": { "type": "Identifier", "start": 1359, "end": 1373, "loc": { "start": { "line": 57, "column": 23 }, "end": { "line": 57, "column": 37 }, "identifierName": "eventListeners" }, "name": "eventListeners" }, "computed": false }, "property": { "type": "Identifier", "start": 1374, "end": 1375, "loc": { "start": { "line": 57, "column": 38 }, "end": { "line": 57, "column": 39 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 1385, "end": 1393, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 16 } }, "expression": { "type": "CallExpression", "start": 1385, "end": 1393, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 16 } }, "callee": { "type": "Identifier", "start": 1385, "end": 1386, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 9 }, "identifierName": "f" }, "name": "f" }, "arguments": [ { "type": "Identifier", "start": 1387, "end": 1392, "loc": { "start": { "line": 58, "column": 10 }, "end": { "line": 58, "column": 15 }, "identifierName": "event" }, "name": "event" } ] } } ], "directives": [] }, "handler": { "type": "CatchClause", "start": 1402, "end": 1687, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 66, "column": 7 } }, "param": { "type": "Identifier", "start": 1409, "end": 1410, "loc": { "start": { "line": 59, "column": 15 }, "end": { "line": 59, "column": 16 }, "identifierName": "e" }, "name": "e" }, "body": { "type": "BlockStatement", "start": 1412, "end": 1687, "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 66, "column": 7 } }, "body": [ { "type": "ExpressionStatement", "start": 1663, "end": 1679, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 24 } }, "expression": { "type": "CallExpression", "start": 1663, "end": 1679, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 24 } }, "callee": { "type": "MemberExpression", "start": 1663, "end": 1676, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 21 } }, "object": { "type": "Identifier", "start": 1663, "end": 1670, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 15 }, "identifierName": "console" }, "name": "console", "leadingComments": null }, "property": { "type": "Identifier", "start": 1671, "end": 1676, "loc": { "start": { "line": 65, "column": 16 }, "end": { "line": 65, "column": 21 }, "identifierName": "error" }, "name": "error" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "Identifier", "start": 1677, "end": 1678, "loc": { "start": { "line": 65, "column": 22 }, "end": { "line": 65, "column": 23 }, "identifierName": "e" }, "name": "e" } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "\n Your observer threw an error. This error was caught so that Yjs\n can ensure data consistency! In order to debug this error you\n have to check \"Pause On Caught Exceptions\" in developer tools.\n ", "start": 1422, "end": 1654, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 64, "column": 10 } } } ] } ], "directives": [] } }, "guardedHandlers": [], "finalizer": null } ], "directives": [] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Call all event listeners that were added via\n * {@link EventHandler#addEventListener}.\n *\n * @param {Transaction} transaction The transaction object // TODO: do we need this?\n * @param {YEvent} event An event object that describes the change on a type.\n ", "start": 945, "end": 1220, "loc": { "start": { "line": 47, "column": 2 }, "end": { "line": 53, "column": 5 } } } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * General event handler implementation.\n ", "start": 1, "end": 49, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * General event handler implementation.\n ", "start": 1, "end": 49, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\n * General event handler implementation.\n ", "start": 1, "end": 49, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * To prevent memory leaks, call this method when the eventListeners won't be\n * used anymore.\n ", "start": 141, "end": 249, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 13, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Adds an event listener that is called when\n * {@link EventHandler#callEventListeners} is called.\n *\n * @param {Function} f The event handler.\n ", "start": 303, "end": 465, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 23, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Removes an event listener.\n *\n * @param {Function} f The event handler that was added with\n * {@link EventHandler#addEventListener}\n ", "start": 530, "end": 702, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 33, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Removes all event listeners.\n ", "start": 834, "end": 877, "loc": { "start": { "line": 40, "column": 2 }, "end": { "line": 42, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Call all event listeners that were added via\n * {@link EventHandler#addEventListener}.\n *\n * @param {Transaction} transaction The transaction object // TODO: do we need this?\n * @param {YEvent} event An event object that describes the change on a type.\n ", "start": 945, "end": 1220, "loc": { "start": { "line": 47, "column": 2 }, "end": { "line": 53, "column": 5 } } }, { "type": "CommentBlock", "value": "\n Your observer threw an error. This error was caught so that Yjs\n can ensure data consistency! In order to debug this error you\n have to check \"Pause On Caught Exceptions\" in developer tools.\n ", "start": 1422, "end": 1654, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 64, "column": 10 } } } ], "tokens": [ { "type": "CommentBlock", "value": "*\n * General event handler implementation.\n ", "start": 1, "end": 49, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "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": 50, "end": 56, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "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": 57, "end": 64, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "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": 65, "end": 70, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "EventHandler", "start": 71, "end": 83, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 84, "end": 85, "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 5, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 88, "end": 99, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 100, "end": 101, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 101, "end": 102, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 103, "end": 104, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 18 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 109, "end": 113, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 113, "end": 114, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 114, "end": 128, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 129, "end": 130, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 25 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 131, "end": 132, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 27 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 132, "end": 133, "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 7, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 136, "end": 137, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * To prevent memory leaks, call this method when the eventListeners won't be\n * used anymore.\n ", "start": 141, "end": 249, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 13, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destroy", "start": 252, "end": 259, "loc": { "start": { "line": 14, "column": 2 }, "end": { "line": 14, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 260, "end": 261, "loc": { "start": { "line": 14, "column": 10 }, "end": { "line": 14, "column": 11 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 261, "end": 262, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 12 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 263, "end": 264, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 14 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 269, "end": 273, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 273, "end": 274, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 274, "end": 288, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 289, "end": 290, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 25 } } }, { "type": { "label": "null", "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "null", "start": 291, "end": 295, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 298, "end": 299, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Adds an event listener that is called when\n * {@link EventHandler#callEventListeners} is called.\n *\n * @param {Function} f The event handler.\n ", "start": 303, "end": 465, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 23, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "addEventListener", "start": 468, "end": 484, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 24, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 485, "end": 486, "loc": { "start": { "line": 24, "column": 19 }, "end": { "line": 24, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 486, "end": 487, "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 487, "end": 488, "loc": { "start": { "line": 24, "column": 21 }, "end": { "line": 24, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 489, "end": 490, "loc": { "start": { "line": 24, "column": 23 }, "end": { "line": 24, "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": 495, "end": 499, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 499, "end": 500, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 500, "end": 514, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 514, "end": 515, "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 25, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 515, "end": 519, "loc": { "start": { "line": 25, "column": 24 }, "end": { "line": 25, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 519, "end": 520, "loc": { "start": { "line": 25, "column": 28 }, "end": { "line": 25, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 520, "end": 521, "loc": { "start": { "line": 25, "column": 29 }, "end": { "line": 25, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 521, "end": 522, "loc": { "start": { "line": 25, "column": 30 }, "end": { "line": 25, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 525, "end": 526, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 26, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Removes an event listener.\n *\n * @param {Function} f The event handler that was added with\n * {@link EventHandler#addEventListener}\n ", "start": 530, "end": 702, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 33, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "removeEventListener", "start": 705, "end": 724, "loc": { "start": { "line": 34, "column": 2 }, "end": { "line": 34, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 725, "end": 726, "loc": { "start": { "line": 34, "column": 22 }, "end": { "line": 34, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 726, "end": 727, "loc": { "start": { "line": 34, "column": 23 }, "end": { "line": 34, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 727, "end": 728, "loc": { "start": { "line": 34, "column": 24 }, "end": { "line": 34, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 729, "end": 730, "loc": { "start": { "line": 34, "column": 26 }, "end": { "line": 34, "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": 735, "end": 739, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 739, "end": 740, "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 740, "end": 754, "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 755, "end": 756, "loc": { "start": { "line": 35, "column": 24 }, "end": { "line": 35, "column": 25 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 757, "end": 761, "loc": { "start": { "line": 35, "column": 26 }, "end": { "line": 35, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 761, "end": 762, "loc": { "start": { "line": 35, "column": 30 }, "end": { "line": 35, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 762, "end": 776, "loc": { "start": { "line": 35, "column": 31 }, "end": { "line": 35, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 776, "end": 777, "loc": { "start": { "line": 35, "column": 45 }, "end": { "line": 35, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "filter", "start": 777, "end": 783, "loc": { "start": { "line": 35, "column": 46 }, "end": { "line": 35, "column": 52 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 783, "end": 784, "loc": { "start": { "line": 35, "column": 52 }, "end": { "line": 35, "column": 53 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 784, "end": 792, "loc": { "start": { "line": 35, "column": 53 }, "end": { "line": 35, "column": 61 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 793, "end": 794, "loc": { "start": { "line": 35, "column": 62 }, "end": { "line": 35, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "g", "start": 794, "end": 795, "loc": { "start": { "line": 35, "column": 63 }, "end": { "line": 35, "column": 64 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 795, "end": 796, "loc": { "start": { "line": 35, "column": 64 }, "end": { "line": 35, "column": 65 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 797, "end": 798, "loc": { "start": { "line": 35, "column": 66 }, "end": { "line": 35, "column": 67 } } }, { "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": 805, "end": 811, "loc": { "start": { "line": 36, "column": 6 }, "end": { "line": 36, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 812, "end": 813, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 14 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 814, "end": 817, "loc": { "start": { "line": 36, "column": 15 }, "end": { "line": 36, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "g", "start": 818, "end": 819, "loc": { "start": { "line": 36, "column": 19 }, "end": { "line": 36, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 824, "end": 825, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 5 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 825, "end": 826, "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 6 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 829, "end": 830, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 38, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Removes all event listeners.\n ", "start": 834, "end": 877, "loc": { "start": { "line": 40, "column": 2 }, "end": { "line": 42, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "removeAllEventListeners", "start": 880, "end": 903, "loc": { "start": { "line": 43, "column": 2 }, "end": { "line": 43, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 904, "end": 905, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 905, "end": 906, "loc": { "start": { "line": 43, "column": 27 }, "end": { "line": 43, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 907, "end": 908, "loc": { "start": { "line": 43, "column": 29 }, "end": { "line": 43, "column": 30 } } }, { "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": 913, "end": 917, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 917, "end": 918, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 918, "end": 932, "loc": { "start": { "line": 44, "column": 9 }, "end": { "line": 44, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 933, "end": 934, "loc": { "start": { "line": 44, "column": 24 }, "end": { "line": 44, "column": 25 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 935, "end": 936, "loc": { "start": { "line": 44, "column": 26 }, "end": { "line": 44, "column": 27 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 936, "end": 937, "loc": { "start": { "line": 44, "column": 27 }, "end": { "line": 44, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 940, "end": 941, "loc": { "start": { "line": 45, "column": 2 }, "end": { "line": 45, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Call all event listeners that were added via\n * {@link EventHandler#addEventListener}.\n *\n * @param {Transaction} transaction The transaction object // TODO: do we need this?\n * @param {YEvent} event An event object that describes the change on a type.\n ", "start": 945, "end": 1220, "loc": { "start": { "line": 47, "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": "callEventListeners", "start": 1223, "end": 1241, "loc": { "start": { "line": 54, "column": 2 }, "end": { "line": 54, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1242, "end": 1243, "loc": { "start": { "line": 54, "column": 21 }, "end": { "line": 54, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transaction", "start": 1243, "end": 1254, "loc": { "start": { "line": 54, "column": 22 }, "end": { "line": 54, "column": 33 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1254, "end": 1255, "loc": { "start": { "line": 54, "column": 33 }, "end": { "line": 54, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 1256, "end": 1261, "loc": { "start": { "line": 54, "column": 35 }, "end": { "line": 54, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1261, "end": 1262, "loc": { "start": { "line": 54, "column": 40 }, "end": { "line": 54, "column": 41 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1263, "end": 1264, "loc": { "start": { "line": 54, "column": 42 }, "end": { "line": 54, "column": 43 } } }, { "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": 1269, "end": 1272, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 7 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1273, "end": 1274, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 9 } } }, { "type": { "label": "var", "keyword": "var", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "var", "start": 1274, "end": 1277, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1278, "end": 1279, "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1280, "end": 1281, "loc": { "start": { "line": 55, "column": 15 }, "end": { "line": 55, "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": 1282, "end": 1283, "loc": { "start": { "line": 55, "column": 17 }, "end": { "line": 55, "column": 18 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1283, "end": 1284, "loc": { "start": { "line": 55, "column": 18 }, "end": { "line": 55, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1285, "end": 1286, "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 21 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 1287, "end": 1288, "loc": { "start": { "line": 55, "column": 22 }, "end": { "line": 55, "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": 1289, "end": 1293, "loc": { "start": { "line": 55, "column": 24 }, "end": { "line": 55, "column": 28 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1293, "end": 1294, "loc": { "start": { "line": 55, "column": 28 }, "end": { "line": 55, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 1294, "end": 1308, "loc": { "start": { "line": 55, "column": 29 }, "end": { "line": 55, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1308, "end": 1309, "loc": { "start": { "line": 55, "column": 43 }, "end": { "line": 55, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 1309, "end": 1315, "loc": { "start": { "line": 55, "column": 44 }, "end": { "line": 55, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1315, "end": 1316, "loc": { "start": { "line": 55, "column": 50 }, "end": { "line": 55, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1317, "end": 1318, "loc": { "start": { "line": 55, "column": 52 }, "end": { "line": 55, "column": 53 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 1318, "end": 1320, "loc": { "start": { "line": 55, "column": 53 }, "end": { "line": 55, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1320, "end": 1321, "loc": { "start": { "line": 55, "column": 55 }, "end": { "line": 55, "column": 56 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1322, "end": 1323, "loc": { "start": { "line": 55, "column": 57 }, "end": { "line": 55, "column": 58 } } }, { "type": { "label": "try", "keyword": "try", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "try", "start": 1330, "end": 1333, "loc": { "start": { "line": 56, "column": 6 }, "end": { "line": 56, "column": 9 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1334, "end": 1335, "loc": { "start": { "line": 56, "column": 10 }, "end": { "line": 56, "column": 11 } } }, { "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": 1344, "end": 1349, "loc": { "start": { "line": 57, "column": 8 }, "end": { "line": 57, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 1350, "end": 1351, "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 15 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1352, "end": 1353, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 17 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1354, "end": 1358, "loc": { "start": { "line": 57, "column": 18 }, "end": { "line": 57, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1358, "end": 1359, "loc": { "start": { "line": 57, "column": 22 }, "end": { "line": 57, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "eventListeners", "start": 1359, "end": 1373, "loc": { "start": { "line": 57, "column": 23 }, "end": { "line": 57, "column": 37 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1373, "end": 1374, "loc": { "start": { "line": 57, "column": 37 }, "end": { "line": 57, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1374, "end": 1375, "loc": { "start": { "line": 57, "column": 38 }, "end": { "line": 57, "column": 39 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1375, "end": 1376, "loc": { "start": { "line": 57, "column": 39 }, "end": { "line": 57, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 1385, "end": 1386, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1386, "end": 1387, "loc": { "start": { "line": 58, "column": 9 }, "end": { "line": 58, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 1387, "end": 1392, "loc": { "start": { "line": 58, "column": 10 }, "end": { "line": 58, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1392, "end": 1393, "loc": { "start": { "line": 58, "column": 15 }, "end": { "line": 58, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1400, "end": 1401, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 7 } } }, { "type": { "label": "catch", "keyword": "catch", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "catch", "start": 1402, "end": 1407, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 59, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1408, "end": 1409, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "e", "start": 1409, "end": 1410, "loc": { "start": { "line": 59, "column": 15 }, "end": { "line": 59, "column": 16 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1410, "end": 1411, "loc": { "start": { "line": 59, "column": 16 }, "end": { "line": 59, "column": 17 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1412, "end": 1413, "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 59, "column": 19 } } }, { "type": "CommentBlock", "value": "\n Your observer threw an error. This error was caught so that Yjs\n can ensure data consistency! In order to debug this error you\n have to check \"Pause On Caught Exceptions\" in developer tools.\n ", "start": 1422, "end": 1654, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 64, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "console", "start": 1663, "end": 1670, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1670, "end": 1671, "loc": { "start": { "line": 65, "column": 15 }, "end": { "line": 65, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "error", "start": 1671, "end": 1676, "loc": { "start": { "line": 65, "column": 16 }, "end": { "line": 65, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1676, "end": 1677, "loc": { "start": { "line": 65, "column": 21 }, "end": { "line": 65, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "e", "start": 1677, "end": 1678, "loc": { "start": { "line": 65, "column": 22 }, "end": { "line": 65, "column": 23 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1678, "end": 1679, "loc": { "start": { "line": 65, "column": 23 }, "end": { "line": 65, "column": 24 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1686, "end": 1687, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 7 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1692, "end": 1693, "loc": { "start": { "line": 67, "column": 4 }, "end": { "line": 67, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1696, "end": 1697, "loc": { "start": { "line": 68, "column": 2 }, "end": { "line": 68, "column": 3 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1698, "end": 1699, "loc": { "start": { "line": 69, "column": 0 }, "end": { "line": 69, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1700, "end": 1700, "loc": { "start": { "line": 70, "column": 0 }, "end": { "line": 70, "column": 0 } } } ] }