UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,303 lines (1,302 loc) 1.85 MB
{ "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": "Observable", "range": [ 87, 97 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 100, 102 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 19 } } }, "property": { "type": "Identifier", "name": "Observable", "range": [ 103, 113 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 30 } } }, "range": [ 100, 113 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 30 } } }, "range": [ 87, 113 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 30 } } } ], "kind": "var", "range": [ 83, 114 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 31 } }, "trailingComments": [ { "type": "Block", "value": "* @test {concatAll} ", "range": [ 115, 139 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 24 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 140, 148 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.prototype.concatAll", "raw": "'Observable.prototype.concatAll'", "range": [ 149, 181 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 41 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "asDiagram", "range": [ 201, 210 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 13 } } }, "arguments": [ { "type": "Literal", "value": "concatAll", "raw": "'concatAll'", "range": [ 211, 222 ], "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 25 } } } ], "range": [ 201, 223 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 26 } } }, "arguments": [ { "type": "Literal", "value": "should concat an observable of observables", "raw": "'should concat an observable of observables'", "range": [ 224, 268 ], "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 7, "column": 71 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "range": [ 296, 297 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 300, 304 ], "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "----a------b------| ", "raw": "'----a------b------| '", "range": [ 305, 343 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 59 } } } ], "range": [ 300, 344 ], "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 60 } } }, "range": [ 296, 344 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 60 } } } ], "kind": "var", "range": [ 292, 345 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 61 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "y", "range": [ 358, 359 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 362, 366 ], "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "---c-d---| ", "raw": "'---c-d---| '", "range": [ 367, 387 ], "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 41 } } } ], "range": [ 362, 388 ], "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 42 } } }, "range": [ 358, 388 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 42 } } } ], "kind": "var", "range": [ 354, 389 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 43 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "z", "range": [ 402, 403 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 406, 410 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "---e--f-|", "raw": "'---e--f-|'", "range": [ 411, 422 ], "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 32 } } } ], "range": [ 406, 423 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 33 } } }, "range": [ 402, 423 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 33 } } } ], "kind": "var", "range": [ 398, 424 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "outer", "range": [ 437, 442 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 445, 448 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 23 } } }, "arguments": [ { "type": "Literal", "value": "-x---y----z------| ", "raw": "'-x---y----z------| '", "range": [ 449, 483 ], "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 58 } } }, { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "x", "range": [ 487, 488 ], "loc": { "start": { "line": 11, "column": 62 }, "end": { "line": 11, "column": 63 } } }, "value": { "type": "Identifier", "name": "x", "range": [ 490, 491 ], "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 66 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 487, 491 ], "loc": { "start": { "line": 11, "column": 62 }, "end": { "line": 11, "column": 66 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "y", "range": [ 493, 494 ], "loc": { "start": { "line": 11, "column": 68 }, "end": { "line": 11, "column": 69 } } }, "value": { "type": "Identifier", "name": "y", "range": [ 496, 497 ], "loc": { "start": { "line": 11, "column": 71 }, "end": { "line": 11, "column": 72 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 493, 497 ], "loc": { "start": { "line": 11, "column": 68 }, "end": { "line": 11, "column": 72 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "z", "range": [ 499, 500 ], "loc": { "start": { "line": 11, "column": 74 }, "end": { "line": 11, "column": 75 } } }, "value": { "type": "Identifier", "name": "z", "range": [ 502, 503 ], "loc": { "start": { "line": 11, "column": 77 }, "end": { "line": 11, "column": 78 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 499, 503 ], "loc": { "start": { "line": 11, "column": 74 }, "end": { "line": 11, "column": 78 } } } ], "range": [ 485, 505 ], "loc": { "start": { "line": 11, "column": 60 }, "end": { "line": 11, "column": 80 } } } ], "range": [ 445, 506 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 81 } } }, "range": [ 437, 506 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 81 } } } ], "kind": "var", "range": [ 433, 507 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 82 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 520, 528 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 20 } } }, "init": { "type": "Literal", "value": "-----a------b---------c-d------e--f-|", "raw": "'-----a------b---------c-d------e--f-|'", "range": [ 531, 570 ], "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 62 } } }, "range": [ 520, 570 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 62 } } } ], "kind": "var", "range": [ 516, 571 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 63 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "result", "range": [ 584, 590 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 18 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "outer", "range": [ 593, 598 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 26 } } }, "property": { "type": "Identifier", "name": "concatAll", "range": [ 599, 608 ], "loc": { "start": { "line": 13, "column": 27 }, "end": { "line": 13, "column": 36 } } }, "range": [ 593, 608 ],