UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,590 lines (1,589 loc) 1.05 MB
{ "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": "Notification", "range": [ 53, 65 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } }, "imported": { "type": "Identifier", "name": "Notification", "range": [ 53, 65 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } }, "range": [ 53, 65 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } } ], "source": { "type": "Literal", "value": "../Notification", "raw": "'../Notification'", "range": [ 73, 90 ], "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 46 } } }, "range": [ 44, 91 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 47 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "ColdObservable", "range": [ 101, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 23 } } }, "imported": { "type": "Identifier", "name": "ColdObservable", "range": [ 101, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 23 } } }, "range": [ 101, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 23 } } } ], "source": { "type": "Literal", "value": "./ColdObservable", "raw": "'./ColdObservable'", "range": [ 123, 141 ], "loc": { "start": { "line": 3, "column": 31 }, "end": { "line": 3, "column": 49 } } }, "range": [ 92, 142 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 50 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "HotObservable", "range": [ 152, 165 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 22 } } }, "imported": { "type": "Identifier", "name": "HotObservable", "range": [ 152, 165 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 22 } } }, "range": [ 152, 165 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 22 } } } ], "source": { "type": "Literal", "value": "./HotObservable", "raw": "'./HotObservable'", "range": [ 173, 190 ], "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 4, "column": 47 } } }, "range": [ 143, 191 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 48 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "SubscriptionLog", "range": [ 201, 216 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 24 } } }, "imported": { "type": "Identifier", "name": "SubscriptionLog", "range": [ 201, 216 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 24 } } }, "range": [ 201, 216 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 24 } } } ], "source": { "type": "Literal", "value": "./SubscriptionLog", "raw": "'./SubscriptionLog'", "range": [ 224, 243 ], "loc": { "start": { "line": 5, "column": 32 }, "end": { "line": 5, "column": 51 } } }, "range": [ 192, 244 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 52 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 254, 274 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 29 } } }, "imported": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 254, 274 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 29 } } }, "range": [ 254, 274 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 29 } } }, { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "VirtualAction", "range": [ 276, 289 ], "loc": { "start": { "line": 6, "column": 31 }, "end": { "line": 6, "column": 44 } } }, "imported": { "type": "Identifier", "name": "VirtualAction", "range": [ 276, 289 ], "loc": { "start": { "line": 6, "column": 31 }, "end": { "line": 6, "column": 44 } } }, "range": [ 276, 289 ], "loc": { "start": { "line": 6, "column": 31 }, "end": { "line": 6, "column": 44 } } } ], "source": { "type": "Literal", "value": "../scheduler/VirtualTimeScheduler", "raw": "'../scheduler/VirtualTimeScheduler'", "range": [ 297, 332 ], "loc": { "start": { "line": 6, "column": 52 }, "end": { "line": 6, "column": 87 } } }, "range": [ 245, 333 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 88 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "defaultMaxFrame", "range": [ 338, 353 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 19 } } }, "init": { "type": "Literal", "value": 750, "raw": "750", "range": [ 356, 359 ], "loc": { "start": { "line": 7, "column": 22 }, "end": { "line": 7, "column": 25 } } }, "range": [ 338, 359 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 25 } } } ], "kind": "var", "range": [ 334, 360 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 26 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "TestScheduler", "range": [ 372, 385 ], "loc": { "start": { "line": 8, "column": 11 }, "end": { "line": 8, "column": 24 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 399, 405 ], "loc": { "start": { "line": 8, "column": 38 }, "end": { "line": 8, "column": 44 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 413, 422 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "TestScheduler", "range": [ 423, 436 ], "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 27 } } }, { "type": "Identifier", "name": "_super", "range": [ 438, 444 ], "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 35 } } } ], "range": [ 413, 445 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 36 } } }, "range": [ 413, 446 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 37 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "TestScheduler", "range": [ 460, 473 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 26 } } }, "params": [ { "type": "Identifier", "name": "assertDeepEqual", "range": [ 474, 489 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 42 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 501, 507 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 508, 512 ], "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 19 } } }, "range": [ 501, 512 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 513, 517 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 24 } } }, { "type": "Identifier", "name": "VirtualAction", "range": [ 519, 532 ], "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 39 } } }, { "type": "Identifier", "name": "defaultMaxFrame", "range": [ 534, 549 ], "loc": { "start": { "line": 11, "column": 41 }, "end": { "line": 11, "column": 56 } } } ], "range": [ 501, 550 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 57 } } }, "range": [ 501, 551 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 58 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 560, 564 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "name": "assertDeepEqual", "range": [ 565, 580 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 28 } } }, "range": [ 560, 580 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 28 } } }, "right": { "type": "Identifier", "name": "assertDeepEqual", "range": [ 583, 598 ], "loc": { "start": { "line": 12, "column": 31 }, "end": { "line": 12, "column": 46 } } }, "range": [ 560, 598 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 46 } } }, "range": [ 560, 599 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 47 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 608, 612 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "name": "hotObservables", "range": [ 613, 627 ], "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 27 } } }, "range": [ 608, 627 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 27 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 630, 632 ], "loc": { "start": { "line": 13, "column": 30 }, "end": { "line": 13, "column": 32 } } }, "range": [ 608, 632 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 32 } } }, "range": [ 608, 633 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 33 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 642, 646 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "coldObservables", "range": [ 647, 662 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 28 } } }, "range": [ 642, 662 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 28 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 665, 667 ], "loc": { "start": { "line": 14, "column": 31 }, "end": { "line": 14, "column": 33 } } }, "range": [ 642, 667 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 33 } } }, "range": [ 642, 668 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 34 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 677, 681 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "flushTests", "range": [ 682, 692 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 23 } } }, "range": [ 677, 692 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 23 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 695, 697 ], "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 28 } } }, "range": [ 677, 697 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 28 } } }, "range": [ 677, 698 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } } } ], "range": [ 491, 704 ], "loc": { "start": { "line": 10, "column": 44 }, "end": { "line": 16, "column": 5 } } }, "generator": false, "expression": false, "range": [ 451, 704 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 16, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "TestScheduler", "range": [ 709, 722 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 17 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 723, 732 ], "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 27 } } }, "range": [ 709, 732 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 27 } } }, "property": { "type": "Identifier", "name": "createTime", "range": [ 733, 743 ], "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 38 } } }, "range": [ 709, 743 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 38 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "marbles", "range": [ 756, 763 ], "loc": { "start": { "line": 17, "column": 51 }, "end": { "line": 17, "column": 58 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": {