UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,430 lines (1,429 loc) 414 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Observable", "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } }, "imported": { "type": "Identifier", "name": "Observable", "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } }, "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } } ], "source": { "type": "Literal", "value": "../Observable", "raw": "'../Observable'", "range": [ 27, 42 ], "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 42 } } }, "range": [ 0, 43 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 43 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "isScheduler", "range": [ 53, 64 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } } }, "imported": { "type": "Identifier", "name": "isScheduler", "range": [ 53, 64 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } } }, "range": [ 53, 64 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } } } ], "source": { "type": "Literal", "value": "../util/isScheduler", "raw": "'../util/isScheduler'", "range": [ 72, 93 ], "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 49 } } }, "range": [ 44, 94 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 50 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "selfSelector", "range": [ 99, 111 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 16 } } }, "init": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "selfSelector", "range": [ 99, 111 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 16 } } }, "params": [ { "type": "Identifier", "name": "value", "range": [ 124, 129 ], "loc": { "start": { "line": 3, "column": 29 }, "end": { "line": 3, "column": 34 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "value", "range": [ 140, 145 ], "loc": { "start": { "line": 3, "column": 45 }, "end": { "line": 3, "column": 50 } } }, "range": [ 133, 146 ], "loc": { "start": { "line": 3, "column": 38 }, "end": { "line": 3, "column": 51 } } } ], "range": [ 131, 148 ], "loc": { "start": { "line": 3, "column": 36 }, "end": { "line": 3, "column": 53 } } }, "generator": false, "expression": false, "range": [ 114, 148 ], "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 53 } } }, "range": [ 99, 148 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 53 } } } ], "kind": "var", "range": [ 95, 149 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 54 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ", "range": [ 150, 244 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "GenerateObservable", "range": [ 256, 274 ], "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 29 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 288, 294 ], "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 49 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 302, 311 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "GenerateObservable", "range": [ 312, 330 ], "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 32 } } }, { "type": "Identifier", "name": "_super", "range": [ 332, 338 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 40 } } } ], "range": [ 302, 339 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 41 } } }, "range": [ 302, 340 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 42 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "GenerateObservable", "range": [ 354, 372 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 31 } } }, "params": [ { "type": "Identifier", "name": "initialState", "range": [ 373, 385 ], "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 44 } } }, { "type": "Identifier", "name": "condition", "range": [ 387, 396 ], "loc": { "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 55 } } }, { "type": "Identifier", "name": "iterate", "range": [ 398, 405 ], "loc": { "start": { "line": 11, "column": 57 }, "end": { "line": 11, "column": 64 } } }, { "type": "Identifier", "name": "resultSelector", "range": [ 407, 421 ], "loc": { "start": { "line": 11, "column": 66 }, "end": { "line": 11, "column": 80 } } }, { "type": "Identifier", "name": "scheduler", "range": [ 423, 432 ], "loc": { "start": { "line": 11, "column": 82 }, "end": { "line": 11, "column": 91 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 444, 450 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 451, 455 ], "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 19 } } }, "range": [ 444, 455 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 456, 460 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 24 } } } ], "range": [ 444, 461 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 25 } } }, "range": [ 444, 462 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 471, 475 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "name": "initialState", "range": [ 476, 488 ], "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 25 } } }, "range": [ 471, 488 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 25 } } }, "right": { "type": "Identifier", "name": "initialState", "range": [ 491, 503 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 13, "column": 40 } } }, "range": [ 471, 503 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 40 } } }, "range": [ 471, 504 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 513, 517 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "condition", "range": [ 518, 527 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 22 } } }, "range": [ 513, 527 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 22 } } }, "right": { "type": "Identifier", "name": "condition", "range": [ 530, 539 ], "loc": { "start": { "line": 14, "column": 25 }, "end": { "line": 14, "column": 34 } } }, "range": [ 513, 539 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 34 } } }, "range": [ 513, 540 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 549, 553 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "iterate", "range": [ 554, 561 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 20 } } }, "range": [ 549, 561 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 20 } } }, "right": { "type": "Identifier", "name": "iterate", "range": [ 564, 571 ], "loc": { "start": { "line": 15, "column": 23 }, "end": { "line": 15, "column": 30 } } }, "range": [ 549, 571 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 30 } } }, "range": [ 549, 572 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 581, 585 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "name": "resultSelector", "range": [ 586, 600 ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 27 } } }, "range": [ 581, 600 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 27 } } }, "right": { "type": "Identifier", "name": "resultSelector", "range": [ 603, 617 ], "loc": { "start": { "line": 16, "column": 30 }, "end": { "line": 16, "column": 44 } } }, "range": [ 581, 617 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 44 } } }, "range": [ 581, 618 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 45 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 627, 631 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "name": "scheduler", "range": [ 632, 641 ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 22 } } }, "range": [ 627, 641 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 22 } } }, "right": { "type": "Identifier", "name": "scheduler", "range": [ 644, 653 ], "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 34 } } }, "range": [ 627, 653 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 34 } } }, "range": [ 627, 654 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 35 } } } ], "range": [ 434, 660 ], "loc": { "start": { "line": 11, "column": 93 }, "end": { "line": 18, "column": 5 } } }, "generator": false, "expression": false, "range": [ 345, 660 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 18, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "GenerateObservable", "range": [ 665, 683 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 22 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 684, 690 ], "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 29 } } }, "range": [ 665, 690 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 29 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "initialStateOrOptions", "range": [ 703, 724 ], "loc": { "start": { "line": 19, "column": 42 }, "end": { "line": 19, "column": 63 } } }, { "type": "Identifier", "name": "condition", "range": [ 726, 735 ], "loc": { "start": { "line": 19, "column": 65 }, "end": { "line": 19, "column": 74 } } }, { "type": "Identifier", "name": "iterate", "range": [ 737, 744 ], "loc": { "start": { "line": 19, "column": 76 }, "end": { "line": 19, "column": 83 } } }, { "type": "Identifier", "name": "resultSelectorOrObservable", "range": [ 746, 772 ], "loc": { "start": { "line": 19, "column": 85 }, "end": {