UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,520 lines (1,519 loc) 157 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "OuterSubscriber", "range": [ 9, 24 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 24 } } }, "imported": { "type": "Identifier", "name": "OuterSubscriber", "range": [ 9, 24 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 24 } } }, "range": [ 9, 24 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 24 } } } ], "source": { "type": "Literal", "value": "../OuterSubscriber", "raw": "'../OuterSubscriber'", "range": [ 32, 52 ], "loc": { "start": { "line": 1, "column": 32 }, "end": { "line": 1, "column": 52 } } }, "range": [ 0, 53 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 53 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "subscribeToResult", "range": [ 63, 80 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } } }, "imported": { "type": "Identifier", "name": "subscribeToResult", "range": [ 63, 80 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } } }, "range": [ 63, 80 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } } } ], "source": { "type": "Literal", "value": "../util/subscribeToResult", "raw": "'../util/subscribeToResult'", "range": [ 88, 115 ], "loc": { "start": { "line": 2, "column": 34 }, "end": { "line": 2, "column": 61 } } }, "range": [ 54, 116 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 62 } }, "trailingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * <img src=\"./img/skipUntil.png\" width=\"100%\">\n *\n * @param {Observable} the second Observable that has to emit an item before the source Observable's elements begin to\n * be mirrored by the resulting Observable.\n * @return {Observable<T>} an Observable that skips items from the source Observable until the second Observable emits\n * an item, then emits the remaining items.\n * @method skipUntil\n * @owner Observable\n ", "range": [ 117, 662 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 14, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "skipUntil", "range": [ 679, 688 ], "loc": { "start": { "line": 15, "column": 16 }, "end": { "line": 15, "column": 25 } } }, "params": [ { "type": "Identifier", "name": "notifier", "range": [ 689, 697 ], "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 34 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 712, 716 ], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 15 } } }, "property": { "type": "Identifier", "name": "lift", "range": [ 717, 721 ], "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 20 } } }, "range": [ 712, 721 ], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 20 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "SkipUntilOperator", "range": [ 726, 743 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 42 } } }, "arguments": [ { "type": "Identifier", "name": "notifier", "range": [ 744, 752 ], "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 51 } } } ], "range": [ 722, 753 ], "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 52 } } } ], "range": [ 712, 754 ], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 53 } } }, "range": [ 705, 755 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 54 } } } ], "range": [ 699, 757 ], "loc": { "start": { "line": 15, "column": 36 }, "end": { "line": 17, "column": 1 } } }, "generator": false, "expression": false, "range": [ 670, 757 ], "loc": { "start": { "line": 15, "column": 7 }, "end": { "line": 17, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * <img src=\"./img/skipUntil.png\" width=\"100%\">\n *\n * @param {Observable} the second Observable that has to emit an item before the source Observable's elements begin to\n * be mirrored by the resulting Observable.\n * @return {Observable<T>} an Observable that skips items from the source Observable until the second Observable emits\n * an item, then emits the remaining items.\n * @method skipUntil\n * @owner Observable\n ", "range": [ 117, 662 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 14, "column": 3 } } } ], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 663, 757 ], "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 17, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * <img src=\"./img/skipUntil.png\" width=\"100%\">\n *\n * @param {Observable} the second Observable that has to emit an item before the source Observable's elements begin to\n * be mirrored by the resulting Observable.\n * @return {Observable<T>} an Observable that skips items from the source Observable until the second Observable emits\n * an item, then emits the remaining items.\n * @method skipUntil\n * @owner Observable\n ", "range": [ 117, 662 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 14, "column": 3 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SkipUntilOperator", "range": [ 762, 779 ], "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 21 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "SkipUntilOperator", "range": [ 810, 827 ], "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 30 } } }, "params": [ { "type": "Identifier", "name": "notifier", "range": [ 828, 836 ], "loc": { "start": { "line": 19, "column": 31 }, "end": { "line": 19, "column": 39 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 848, 852 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 12 } } }, "property": { "type": "Identifier", "name": "notifier", "range": [ 853, 861 ], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 21 } } }, "range": [ 848, 861 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 21 } } }, "right": { "type": "Identifier", "name": "notifier", "range": [ 864, 872 ], "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 32 } } }, "range": [ 848, 872 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 32 } } }, "range": [ 848, 873 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 33 } } } ], "range": [ 838, 879 ], "loc": { "start": { "line": 19, "column": 41 }, "end": { "line": 21, "column": 5 } } }, "generator": false, "expression": false, "range": [ 801, 879 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 21, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "SkipUntilOperator", "range": [ 884, 901 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 21 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 902, 911 ], "loc": { "start": { "line": 22, "column": 22 }, "end": { "line": 22, "column": 31 } } }, "range": [ 884, 911 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 31 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 912, 916 ], "loc": { "start": { "line": 22, "column": 32 }, "end": { "line": 22, "column": 36 } } }, "range": [ 884, 916 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 36 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "subscriber", "range": [ 929, 939 ], "loc": { "start": { "line": 22, "column": 49 }, "end": { "line": 22, "column": 59 } } }, { "type": "Identifier", "name": "source", "range": [ 941, 947 ], "loc": { "start": { "line": 22, "column": 61 }, "end": { "line": 22, "column": 67 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 966, 972 ], "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 21 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 973, 983 ], "loc": { "start": { "line": 23, "column": 22 }, "end": { "line": 23, "column": 32 } } }, "range": [ 966, 983 ], "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 32 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "SkipUntilSubscriber", "range": [ 988, 1007 ], "loc": { "start": { "line": 23, "column": 37 }, "end": { "line": 23, "column": 56 } } }, "arguments": [ { "type": "Identifier", "name": "subscriber", "range": [ 1008, 1018 ], "loc": { "start": { "line": 23, "column": 57 }, "end": { "line": 23, "column": 67 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 1020, 1024 ], "loc": { "start": { "line": 23, "column": 69 }, "end": { "line": 23, "column": 73 } } }, "property": { "type": "Identifier", "name": "notifier", "range": [ 1025, 1033 ], "loc": { "start": { "line": 23, "column": 74 }, "end": { "line": 23, "column": 82 } } }, "range": [ 1020, 1033 ], "loc": { "start": { "line": 23, "column": 69 }, "end": { "line": 23, "column": 82 } } } ], "range": [ 984, 1034 ], "loc": { "start": { "line": 23, "column": 33 }, "end": { "line": 23, "column": 83 } } } ], "range": [ 966, 1035 ], "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 84 } } }, "range": [ 959, 1036 ], "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 85 } } } ], "range": [ 949, 1042 ], "loc": { "start": { "line": 22, "column": 69 }, "end": { "line": 24, "column": 5 } } }, "generator": false, "expression": false, "range": [ 919, 1042 ], "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 24, "column": 5 } } }, "range": [ 884, 1042 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 24, "column": 5 } } }, "range": [ 884, 1043 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 24, "column": 6 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "SkipUntilOperator", "range": [ 1055, 1072 ], "loc": { "start": { "line": 25, "column": 11 }, "end": { "line": 25, "column": 28 } } }, "range": [ 1048, 1073 ], "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 29 } } } ], "range": [ 795, 1075 ], "loc": { "start": { "line": 18, "column": 37 }, "end": { "line": 26, "column": 1 } } }, "generator": false, "expression": false, "range": [ 783, 1075 ], "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 26, "column": 1 } } }, "arguments": [], "range": [ 783, 1077 ], "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 26, "column": 3 } } }, "range": [ 762, 1078 ], "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 26, "column": 4 } } } ], "kind": "var", "range": [ 758, 1079 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 26, "column": 5 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ", "range": [ 1080, 1171 ], "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 31, "column": 3 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SkipUntilSubscriber", "range": [ 1176, 1195 ], "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 32, "column": 23 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 1209, 1215 ], "loc": { "start": { "line": 32, "column": 37 }, "end": { "line": 32, "column": 43 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 1223, 1232 ], "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "SkipUntilSubscriber", "range": [ 1233, 1252 ], "loc": { "start": { "line": 33, "column": 14 }, "end": { "line": 33, "column": 33 } } }, { "type": "Identifier", "name": "_super", "range": [ 1254, 1260 ], "loc": { "start": { "line": 33, "column": 35 }, "end": { "line": 33, "column": 41 } } } ], "range": [ 1223, 1261 ], "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 42 } } }, "range": [ 1223, 1262 ], "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 43 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "SkipUntilSubscriber", "range": [ 1276, 1295 ], "loc": { "start": { "line": 34, "column": 13 }, "end": { "line": 34, "column": 32 } } }, "params": [ { "type": "Identifier", "name": "destination", "range": [ 1296, 1307 ], "loc": { "start": { "line": 34, "column": 33 }, "end": { "line": 34, "column": 44 } } }, { "type": "Identifier", "name": "notifier", "range": [ 1309, 1317 ], "loc": { "start": { "line": 34, "column": 46 }, "end": { "line": 34, "column": 54 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 1329, 1335 ], "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 1336, 1340 ], "loc": { "start": { "line": 35, "column": 15 }, "end": { "line": 35, "column": 19 } } }, "range": [ 1329, 1340 ], "loc": { "start": { "line": 35, "column": 8 }, "end": { "line": 35, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 1341, 1345 ], "loc": { "start": { "line": 35, "column": 20 }, "end": { "line": 35, "column": 24 } } }, { "type": "Identifier", "name": "destination", "range": [ 1347, 1358