UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,493 lines (1,492 loc) 86.4 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Subscriber", "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } }, "imported": { "type": "Identifier", "name": "Subscriber", "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": "../Subscriber", "raw": "'../Subscriber'", "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 } }, "trailingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that skips `n` items emitted by an Observable.\n *\n * <img src=\"./img/skip.png\" width=\"100%\">\n *\n * @param {Number} the `n` of times, items emitted by source Observable should be skipped.\n * @return {Observable} an Observable that skips values emitted by the source Observable.\n *\n * @method skip\n * @owner Observable\n ", "range": [ 44, 393 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 12, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "skip", "range": [ 410, 414 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 20 } } }, "params": [ { "type": "Identifier", "name": "total", "range": [ 415, 420 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 26 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 435, 439 ], "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 15 } } }, "property": { "type": "Identifier", "name": "lift", "range": [ 440, 444 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 20 } } }, "range": [ 435, 444 ], "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 20 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "SkipOperator", "range": [ 449, 461 ], "loc": { "start": { "line": 14, "column": 25 }, "end": { "line": 14, "column": 37 } } }, "arguments": [ { "type": "Identifier", "name": "total", "range": [ 462, 467 ], "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 43 } } } ], "range": [ 445, 468 ], "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 44 } } } ], "range": [ 435, 469 ], "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 45 } } }, "range": [ 428, 470 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 46 } } } ], "range": [ 422, 472 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 15, "column": 1 } } }, "generator": false, "expression": false, "range": [ 401, 472 ], "loc": { "start": { "line": 13, "column": 7 }, "end": { "line": 15, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that skips `n` items emitted by an Observable.\n *\n * <img src=\"./img/skip.png\" width=\"100%\">\n *\n * @param {Number} the `n` of times, items emitted by source Observable should be skipped.\n * @return {Observable} an Observable that skips values emitted by the source Observable.\n *\n * @method skip\n * @owner Observable\n ", "range": [ 44, 393 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 12, "column": 3 } } } ], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 394, 472 ], "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 15, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that skips `n` items emitted by an Observable.\n *\n * <img src=\"./img/skip.png\" width=\"100%\">\n *\n * @param {Number} the `n` of times, items emitted by source Observable should be skipped.\n * @return {Observable} an Observable that skips values emitted by the source Observable.\n *\n * @method skip\n * @owner Observable\n ", "range": [ 44, 393 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 12, "column": 3 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SkipOperator", "range": [ 477, 489 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 16 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "SkipOperator", "range": [ 520, 532 ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 25 } } }, "params": [ { "type": "Identifier", "name": "total", "range": [ 533, 538 ], "loc": { "start": { "line": 17, "column": 26 }, "end": { "line": 17, "column": 31 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 550, 554 ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "name": "total", "range": [ 555, 560 ], "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 18 } } }, "range": [ 550, 560 ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 18 } } }, "right": { "type": "Identifier", "name": "total", "range": [ 563, 568 ], "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 26 } } }, "range": [ 550, 568 ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 26 } } }, "range": [ 550, 569 ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 27 } } } ], "range": [ 540, 575 ], "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 19, "column": 5 } } }, "generator": false, "expression": false, "range": [ 511, 575 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 19, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "SkipOperator", "range": [ 580, 592 ], "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 16 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 593, 602 ], "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 26 } } }, "range": [ 580, 602 ], "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 26 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 603, 607 ], "loc": { "start": { "line": 20, "column": 27 }, "end": { "line": 20, "column": 31 } } }, "range": [ 580, 607 ], "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 31 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "subscriber", "range": [ 620, 630 ], "loc": { "start": { "line": 20, "column": 44 }, "end": { "line": 20, "column": 54 } } }, { "type": "Identifier", "name": "source", "range": [ 632, 638 ], "loc": { "start": { "line": 20, "column": 56 }, "end": { "line": 20, "column": 62 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 657, 663 ], "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 21 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 664, 674 ], "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 32 } } }, "range": [ 657, 674 ], "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 32 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "SkipSubscriber", "range": [ 679, 693 ], "loc": { "start": { "line": 21, "column": 37 }, "end": { "line": 21, "column": 51 } } }, "arguments": [ { "type": "Identifier", "name": "subscriber", "range": [ 694, 704 ], "loc": { "start": { "line": 21, "column": 52 }, "end": { "line": 21, "column": 62 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 706, 710 ], "loc": { "start": { "line": 21, "column": 64 }, "end": { "line": 21, "column": 68 } } }, "property": { "type": "Identifier", "name": "total", "range": [ 711, 716 ], "loc": { "start": { "line": 21, "column": 69 }, "end": { "line": 21, "column": 74 } } }, "range": [ 706, 716 ], "loc": { "start": { "line": 21, "column": 64 }, "end": { "line": 21, "column": 74 } } } ], "range": [ 675, 717 ], "loc": { "start": { "line": 21, "column": 33 }, "end": { "line": 21, "column": 75 } } } ], "range": [ 657, 718 ], "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 76 } } }, "range": [ 650, 719 ], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 77 } } } ], "range": [ 640, 725 ], "loc": { "start": { "line": 20, "column": 64 }, "end": { "line": 22, "column": 5 } } }, "generator": false, "expression": false, "range": [ 610, 725 ], "loc": { "start": { "line": 20, "column": 34 }, "end": { "line": 22, "column": 5 } } }, "range": [ 580, 725 ], "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 22, "column": 5 } } }, "range": [ 580, 726 ], "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 22, "column": 6 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "SkipOperator", "range": [ 738, 750 ], "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 23 } } }, "range": [ 731, 751 ], "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 24 } } } ], "range": [ 505, 753 ], "loc": { "start": { "line": 16, "column": 32 }, "end": { "line": 24, "column": 1 } } }, "generator": false, "expression": false, "range": [ 493, 753 ], "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 24, "column": 1 } } }, "arguments": [], "range": [ 493, 755 ], "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 24, "column": 3 } } }, "range": [ 477, 756 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 24, "column": 4 } } } ], "kind": "var", "range": [ 473, 757 ], "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 24, "column": 5 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ", "range": [ 758, 849 ], "loc": { "start": { "line": 25, "column": 0 }, "end": { "line": 29, "column": 3 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SkipSubscriber", "range": [ 854, 868 ], "loc": { "start": { "line": 30, "column": 4 }, "end": { "line": 30, "column": 18 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 882, 888 ], "loc": { "start": { "line": 30, "column": 32 }, "end": { "line": 30, "column": 38 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 896, 905 ], "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "SkipSubscriber", "range": [ 906, 920 ], "loc": { "start": { "line": 31, "column": 14 }, "end": { "line": 31, "column": 28 } } }, { "type": "Identifier", "name": "_super", "range": [ 922, 928 ], "loc": { "start": { "line": 31, "column": 30 }, "end": { "line": 31, "column": 36 } } } ], "range": [ 896, 929 ], "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 37 } } }, "range": [ 896, 930 ], "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 38 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "SkipSubscriber", "range": [ 944, 958 ], "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 27 } } }, "params": [ { "type": "Identifier", "name": "destination", "range": [ 959, 970 ], "loc": { "start": { "line": 32, "column": 28 }, "end": { "line": 32, "column": 39 } } }, { "type": "Identifier", "name": "total", "range": [ 972, 977 ], "loc": { "start": { "line": 32, "column": 41 }, "end": { "line": 32, "column": 46 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 989, 995 ], "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 996, 1000 ], "loc": { "start": { "line": 33, "column": 15 }, "end": { "line": 33, "column": 19 } } }, "range": [ 989, 1000 ], "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 1001, 1005 ], "loc": { "start": { "line": 33, "column": 20 }, "end": { "line": 33, "column": 24 } } }, { "type": "Identifier", "name": "destination", "range": [ 1007, 1018 ], "loc": { "start": { "line": 33, "column": 26 }, "end": { "line": 33, "column": 37 } } } ], "range": [ 989, 1019 ], "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 38 } } }, "range": [ 989, 1020 ], "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 39 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 1029, 1033 ], "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 34,