UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,225 lines (1,224 loc) 113 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Scheduler", "range": [ 9, 18 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } }, "imported": { "type": "Identifier", "name": "Scheduler", "range": [ 9, 18 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } }, "range": [ 9, 18 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } } ], "source": { "type": "Literal", "value": "../Scheduler", "raw": "'../Scheduler'", "range": [ 26, 40 ], "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 40 } } }, "range": [ 0, 41 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 41 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "AsyncScheduler", "range": [ 53, 67 ], "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 25 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 81, 87 ], "loc": { "start": { "line": 2, "column": 39 }, "end": { "line": 2, "column": 45 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 95, 104 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "AsyncScheduler", "range": [ 105, 119 ], "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 28 } } }, { "type": "Identifier", "name": "_super", "range": [ 121, 127 ], "loc": { "start": { "line": 3, "column": 30 }, "end": { "line": 3, "column": 36 } } } ], "range": [ 95, 128 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 37 } } }, "range": [ 95, 129 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 38 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "AsyncScheduler", "range": [ 143, 157 ], "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 27 } } }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 170, 176 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 14 } } }, "property": { "type": "Identifier", "name": "apply", "range": [ 177, 182 ], "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 20 } } }, "range": [ 170, 182 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 20 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 183, 187 ], "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 25 } } }, { "type": "Identifier", "name": "arguments", "range": [ 189, 198 ], "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 36 } } } ], "range": [ 170, 199 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 37 } } }, "range": [ 170, 200 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 38 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 209, 213 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } } }, "property": { "type": "Identifier", "name": "actions", "range": [ 214, 221 ], "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 20 } } }, "range": [ 209, 221 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 20 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 224, 226 ], "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 25 } } }, "range": [ 209, 226 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 25 } } }, "range": [ 209, 227 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 26 } }, "trailingComments": [ { "type": "Block", "value": "*\n * A flag to indicate whether the Scheduler is currently executing a batch of\n * queued actions.\n * @type {boolean}\n ", "range": [ 236, 391 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 11, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 400, 404 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "name": "active", "range": [ 405, 411 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 19 } } }, "range": [ 400, 411 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } } }, "right": { "type": "Literal", "value": false, "raw": "false", "range": [ 414, 419 ], "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 27 } } }, "range": [ 400, 419 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 27 } } }, "range": [ 400, 420 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 28 } }, "leadingComments": [ { "type": "Block", "value": "*\n * A flag to indicate whether the Scheduler is currently executing a batch of\n * queued actions.\n * @type {boolean}\n ", "range": [ 236, 391 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 11, "column": 11 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n * An internal ID used to track the latest asynchronous task such as those\n * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n * others.\n * @type {any}\n ", "range": [ 429, 650 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 18, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 659, 663 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } } }, "property": { "type": "Identifier", "name": "scheduled", "range": [ 664, 673 ], "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 22 } } }, "range": [ 659, 673 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 22 } } }, "right": { "type": "Identifier", "name": "undefined", "range": [ 676, 685 ], "loc": { "start": { "line": 19, "column": 25 }, "end": { "line": 19, "column": 34 } } }, "range": [ 659, 685 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 34 } } }, "range": [ 659, 686 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 35 } }, "leadingComments": [ { "type": "Block", "value": "*\n * An internal ID used to track the latest asynchronous task such as those\n * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n * others.\n * @type {any}\n ", "range": [ 429, 650 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 18, "column": 11 } } } ] } ], "range": [ 160, 692 ], "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 20, "column": 5 } } }, "generator": false, "expression": false, "range": [ 134, 692 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 20, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "AsyncScheduler", "range": [ 697, 711 ], "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 18 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 712, 721 ], "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 28 } } }, "range": [ 697, 721 ], "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 28 } } }, "property": { "type": "Identifier", "name": "flush", "range": [ 722, 727 ], "loc": { "start": { "line": 21, "column": 29 }, "end": { "line": 21, "column": 34 } } }, "range": [ 697, 727 ], "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 34 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "action", "range": [ 740, 746 ], "loc": { "start": { "line": 21, "column": 47 }, "end": { "line": 21, "column": 53 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "actions", "range": [ 762, 769 ], "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 19 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 772, 776 ], "loc": { "start": { "line": 22, "column": 22 }, "end": { "line": 22, "column": 26 } } }, "property": { "type": "Identifier", "name": "actions", "range": [ 777, 784 ], "loc": { "start": { "line": 22, "column": 27 }, "end": { "line": 22, "column": 34 } } }, "range": [ 772, 784 ], "loc": { "start": { "line": 22, "column": 22 }, "end": { "line": 22, "column": 34 } } }, "range": [ 762, 784 ], "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 34 } } } ], "kind": "var", "range": [ 758, 785 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 35 } } }, { "type": "IfStatement", "test": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 798, 802 ], "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 16 } } }, "property": { "type": "Identifier", "name": "active", "range": [ 803, 809 ], "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 23 } } }, "range": [ 798, 809 ], "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 23 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "actions", "range": [ 825, 832 ], "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 19 } } }, "property": { "type": "Identifier", "name": "push", "range": [ 833, 837 ], "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 24 } } }, "range": [ 825, 837 ], "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 24 } } }, "arguments": [ { "type": "Identifier", "name": "action", "range": [ 838, 844 ], "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 31 } } } ], "range": [ 825, 845 ], "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 32 } } }, "range": [ 825, 846 ], "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 33 } } }, { "type": "ReturnStatement", "argument": null, "range": [ 859, 866 ], "loc": { "start": { "line": 25, "column": 12