UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,341 lines (1,340 loc) 2.04 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 {windowToggle} ", "range": [ 115, 142 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 27 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 143, 151 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.prototype.windowToggle", "raw": "'Observable.prototype.windowToggle'", "range": [ 152, 187 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 44 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "asDiagram", "range": [ 207, 216 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 13 } } }, "arguments": [ { "type": "Literal", "value": "windowToggle", "raw": "'windowToggle'", "range": [ 217, 231 ], "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 28 } } } ], "range": [ 207, 232 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 29 } } }, "arguments": [ { "type": "Literal", "value": "should emit windows governed by openings and closings", "raw": "'should emit windows governed by openings and closings'", "range": [ 233, 288 ], "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 85 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "source", "range": [ 316, 322 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 18 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 325, 328 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 24 } } }, "arguments": [ { "type": "Literal", "value": "--1--2--^-a--b--c--d--e--f--g--h-|", "raw": "'--1--2--^-a--b--c--d--e--f--g--h-|'", "range": [ 329, 365 ], "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 61 } } } ], "range": [ 325, 366 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 62 } } }, "range": [ 316, 366 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 62 } } } ], "kind": "var", "range": [ 312, 367 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 63 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "subs", "range": [ 380, 384 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 16 } } }, "init": { "type": "Literal", "value": "^ !", "raw": "'^ !'", "range": [ 387, 415 ], "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 47 } } }, "range": [ 380, 415 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 47 } } } ], "kind": "var", "range": [ 376, 416 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 48 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e2", "range": [ 429, 431 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 434, 438 ], "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 21 } } }, "arguments": [ { "type": "Literal", "value": "----w--------w--------w--|", "raw": "'----w--------w--------w--|'", "range": [ 439, 467 ], "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 50 } } } ], "range": [ 434, 468 ], "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 51 } } }, "range": [ 429, 468 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 51 } } } ], "kind": "var", "range": [ 425, 469 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 52 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e2subs", "range": [ 482, 488 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 18 } } }, "init": { "type": "Literal", "value": "^ !", "raw": "'^ !'", "range": [ 491, 519 ], "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 49 } } }, "range": [ 482, 519 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 49 } } } ], "kind": "var", "range": [ 478, 520 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 50 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e3", "range": [ 533, 535 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 538, 542 ], "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 21 } } }, "arguments": [ { "type": "Literal", "value": "-----| ", "raw": "'-----| '", "range": [ 543, 567 ], "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 46 } } } ], "range": [ 538, 568 ], "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 47 } } }, "range": [ 533, 568 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 47 } } } ], "kind": "var", "range": [ 529, 569 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 48 } }, "trailingComments": [ { "type": "Line", "value": " -----(c|)", "range": [ 578, 626 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 56 } } }, { "type": "Line", "value": " -----(c|)", "range": [ 635, 692 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 65 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e3subs", "range": [ 705, 711 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 18 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": " ^ ! ", "raw": "' ^ ! '", "range": [ 715, 743 ], "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 50 } } }, { "type": "Literal", "value": " ^ ! ", "raw": "' ^ ! '", "range": [ 757, 785 ], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 40 } } }, { "type": "Literal", "value": " ^ !", "raw": "' ^ !'", "range": [ 799, 827 ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 40 } } } ], "range": [ 714, 828 ], "loc": { "start": { "line": 15, "column": 21 }, "end": { "line": 17, "column": 41 } } }, "range": [ 705, 828 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 17, "column": 41 } } } ], "kind": "var", "range": [ 701, 829 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 17, "column": 42 } }, "leadingComments": [ { "type": "Line", "value": " -----(c|)", "range": [ 578, 626 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 56 } } }, { "type": "Line", "value": " -----(c|)", "range": [ 635, 692 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 65 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 842, 850 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 20 } } }, "init": { "type": "Literal", "value": "----x--------y--------z--|", "raw": "'----x--------y--------z--|'", "range": [ 853, 881 ], "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 51 } } }, "range": [ 842, 881 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 51 } } } ], "kind": "var", "range": [ 838, 882 ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 52 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "range": [ 895, 896 ], "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 899, 903 ], "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "-b--c| ", "raw": "'-b--c| '", "range": [ 904, 928 ],