UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,372 lines (1,371 loc) 757 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 18, 24 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 27, 34 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 35, 41 ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 27 } } } ], "range": [ 27, 42 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 28 } } }, "range": [ 18, 42 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 28 } } } ], "kind": "var", "range": [ 14, 43 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 48, 50 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 53, 60 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 61, 80 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 36 } } } ], "range": [ 53, 81 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 37 } } }, "range": [ 48, 81 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 37 } } } ], "kind": "var", "range": [ 44, 82 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "queue_1", "range": [ 87, 94 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 11 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 97, 104 ], "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 21 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/scheduler/queue", "raw": "'../../dist/cjs/scheduler/queue'", "range": [ 105, 137 ], "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 54 } } } ], "range": [ 97, 138 ], "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 55 } } }, "range": [ 87, 138 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 55 } } } ], "kind": "var", "range": [ 83, 139 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 56 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "IteratorObservable_1", "range": [ 144, 164 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 24 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 167, 174 ], "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 34 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/observable/IteratorObservable", "raw": "'../../dist/cjs/observable/IteratorObservable'", "range": [ 175, 221 ], "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 5, "column": 81 } } } ], "range": [ 167, 222 ], "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 82 } } }, "range": [ 144, 222 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 82 } } } ], "kind": "var", "range": [ 140, 223 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 83 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 224, 232 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "IteratorObservable", "raw": "'IteratorObservable'", "range": [ 233, 253 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 29 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 273, 275 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should create an Observable via constructor", "raw": "'should create an Observable via constructor'", "range": [ 276, 321 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 52 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "source", "range": [ 349, 355 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 18 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "IteratorObservable_1", "range": [ 362, 382 ], "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 45 } } }, "property": { "type": "Identifier", "name": "IteratorObservable", "range": [ 383, 401 ], "loc": { "start": { "line": 8, "column": 46 }, "end": { "line": 8, "column": 64 } } }, "range": [ 362, 401 ], "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 64 } } }, "arguments": [ { "type": "ArrayExpression", "elements": [], "range": [ 402, 404 ], "loc": { "start": { "line": 8, "column": 65 }, "end": { "line": 8, "column": 67 } } } ], "range": [ 358, 405 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 68 } } }, "range": [ 349, 405 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 68 } } } ], "kind": "var", "range": [ 345, 406 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 69 } } }, { "type": "ExpressionStatement", "expression": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 415, 421 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 422, 428 ], "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 21 } } }, "range": [ 415, 428 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 21 } } }, "arguments": [ { "type": "BinaryExpression", "operator": "instanceof", "left": { "type": "Identifier", "name": "source", "range": [ 429, 435 ], "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 28 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "IteratorObservable_1", "range": [ 447, 467 ], "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 60 } } }, "property": { "type": "Identifier", "name": "IteratorObservable", "range": [ 468, 486 ], "loc": { "start": { "line": 9, "column": 61 }, "end": { "line": 9, "column": 79 } } }, "range": [ 447, 486 ], "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 79 } } }, "range": [ 429, 486 ], "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 79 } } } ], "range": [ 415, 487 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 80 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 488, 490 ], "loc": { "start": { "line": 9, "column": 81 }, "end": { "line": 9, "column": 83 } } }, "range": [ 415, 490 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 83 } } }, "property": { "type": "Identifier", "name": "be", "range": [ 491, 493 ], "loc": { "start": { "line": 9, "column": 84 }, "end": { "line": 9, "column": 86 } } }, "range": [ 415, 493 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 86 } } }, "property": { "type": "Identifier", "name": "true", "range": [ 494, 498 ], "loc": { "start": { "line": 9, "column": 87 }, "end": { "line": 9, "column": 91 } } }, "range": [ 415, 498 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 91 } } }, "range": [ 415, 499 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 92 } } } ], "range": [ 335, 505 ], "loc": { "start": { "line": 7, "column": 66 }, "end": { "line": 10, "column": 5 } } }, "generator": false, "expression": false, "range": [ 323, 505 ], "loc": { "start": { "line": 7, "column": 54 }, "end": { "line": 10, "column": 5 } } } ], "range": [ 273, 506 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 10, "column": 6 } }, "_esdocTestId": 126, "_esdocTestName": "it126" }, "range": [ 273, 507 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 10, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 512, 514 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should create IteratorObservable via static create function", "raw": "'should create IteratorObservable via static create function'", "range": [ 515, 576 ], "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 11, "column": 68 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "s", "range": [ 604, 605 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 13 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "IteratorObservable_1", "range": [ 612, 632 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 40 } } }, "property": { "type": "Identifier", "name": "IteratorObservable", "range": [ 633, 651 ], "loc": { "start": { "line": 12, "column": 41 }, "end": { "line": 12, "column": 59 } } }, "range": [ 612, 651 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 59 } } }, "arguments": [ { "type": "ArrayExpression", "elements": [], "range": [ 652, 654 ], "loc": { "start": { "line": 12, "column": 60 }, "end": { "line": 12, "column": 62 } } } ], "range": [ 608, 655 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 63 } } }, "range": [ 604, 655 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 63 } } } ], "kind": "var", "range": [ 600, 656 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 64 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "r", "range": [ 669, 670 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "IteratorObservable_1", "range": [ 673, 693 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 36 } } }, "property": { "type": "Identifier", "name": "IteratorObservable", "range": [ 694, 712 ], "loc": { "start": { "line": 13, "column": 37 }, "end": { "line": 13, "column": 55 } } }, "range": [ 673, 712 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 55 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 713, 719 ], "loc": { "start": { "line": 13, "column": 56 }, "end": {