UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,370 lines (1,369 loc) 177 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 emits whether or not every item of the source satisfies the condition specified.\n * @param {function} predicate a function for determining if an item meets a specified condition.\n * @param {any} [thisArg] optional object to use for `this` in the callback\n * @return {Observable} an Observable of booleans that determines if all items of the source Observable meet the condition specified.\n * @method every\n * @owner Observable\n ", "range": [ 44, 508 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 9, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "every", "range": [ 525, 530 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 21 } } }, "params": [ { "type": "Identifier", "name": "predicate", "range": [ 531, 540 ], "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 31 } } }, { "type": "Identifier", "name": "thisArg", "range": [ 542, 549 ], "loc": { "start": { "line": 10, "column": 33 }, "end": { "line": 10, "column": 40 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 564, 568 ], "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 15 } } }, "property": { "type": "Identifier", "name": "lift", "range": [ 569, 573 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 20 } } }, "range": [ 564, 573 ], "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 20 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "EveryOperator", "range": [ 578, 591 ], "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 38 } } }, "arguments": [ { "type": "Identifier", "name": "predicate", "range": [ 592, 601 ], "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 11, "column": 48 } } }, { "type": "Identifier", "name": "thisArg", "range": [ 603, 610 ], "loc": { "start": { "line": 11, "column": 50 }, "end": { "line": 11, "column": 57 } } }, { "type": "ThisExpression", "range": [ 612, 616 ], "loc": { "start": { "line": 11, "column": 59 }, "end": { "line": 11, "column": 63 } } } ], "range": [ 574, 617 ], "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 64 } } } ], "range": [ 564, 618 ], "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 65 } } }, "range": [ 557, 619 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 66 } } } ], "range": [ 551, 621 ], "loc": { "start": { "line": 10, "column": 42 }, "end": { "line": 12, "column": 1 } } }, "generator": false, "expression": false, "range": [ 516, 621 ], "loc": { "start": { "line": 10, "column": 7 }, "end": { "line": 12, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.\n * @param {function} predicate a function for determining if an item meets a specified condition.\n * @param {any} [thisArg] optional object to use for `this` in the callback\n * @return {Observable} an Observable of booleans that determines if all items of the source Observable meet the condition specified.\n * @method every\n * @owner Observable\n ", "range": [ 44, 508 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 9, "column": 3 } } } ], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 509, 621 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 12, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.\n * @param {function} predicate a function for determining if an item meets a specified condition.\n * @param {any} [thisArg] optional object to use for `this` in the callback\n * @return {Observable} an Observable of booleans that determines if all items of the source Observable meet the condition specified.\n * @method every\n * @owner Observable\n ", "range": [ 44, 508 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 9, "column": 3 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "EveryOperator", "range": [ 626, 639 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "EveryOperator", "range": [ 670, 683 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 26 } } }, "params": [ { "type": "Identifier", "name": "predicate", "range": [ 684, 693 ], "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 36 } } }, { "type": "Identifier", "name": "thisArg", "range": [ 695, 702 ], "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 45 } } }, { "type": "Identifier", "name": "source", "range": [ 704, 710 ], "loc": { "start": { "line": 14, "column": 47 }, "end": { "line": 14, "column": 53 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 722, 726 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "predicate", "range": [ 727, 736 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 22 } } }, "range": [ 722, 736 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 22 } } }, "right": { "type": "Identifier", "name": "predicate", "range": [ 739, 748 ], "loc": { "start": { "line": 15, "column": 25 }, "end": { "line": 15, "column": 34 } } }, "range": [ 722, 748 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 34 } } }, "range": [ 722, 749 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 758, 762 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "name": "thisArg", "range": [ 763, 770 ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 20 } } }, "range": [ 758, 770 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 20 } } }, "right": { "type": "Identifier", "name": "thisArg", "range": [ 773, 780 ], "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 16, "column": 30 } } }, "range": [ 758, 780 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 30 } } }, "range": [ 758, 781 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 790, 794 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "name": "source", "range": [ 795, 801 ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 19 } } }, "range": [ 790, 801 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 19 } } }, "right": { "type": "Identifier", "name": "source", "range": [ 804, 810 ], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 28 } } }, "range": [ 790, 810 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 28 } } }, "range": [ 790, 811 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 29 } } } ], "range": [ 712, 817 ], "loc": { "start": { "line": 14, "column": 55 }, "end": { "line": 18, "column": 5 } } }, "generator": false, "expression": false, "range": [ 661, 817 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 18, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "EveryOperator", "range": [ 822, 835 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 17 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 836, 845 ], "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 27 } } }, "range": [ 822, 845 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 27 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 846, 850 ], "loc": { "start": { "line": 19, "column": 28 }, "end": { "line": 19, "column": 32 } } }, "range": [ 822, 850 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 32 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "observer", "range": [ 863, 871 ], "loc": { "start": { "line": 19, "column": 45 }, "end": { "line": 19, "column": 53 } } }, { "type": "Identifier", "name": "source", "range": [ 873, 879 ], "loc": { "start": { "line": 19, "column": 55 }, "end": { "line": 19, "column": 61 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 898, 904 ], "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 21 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 905, 915 ], "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 32 } } }, "range": [ 898, 915 ], "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 32 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "EverySubscriber", "range": [ 920, 935 ], "loc": { "start": { "line": 20, "column": 37 }, "end": { "line": 20, "column": 52 } } }, "arguments": [ { "type": "Identifier", "name": "observer", "range": [ 936, 944 ], "loc": { "start": { "line": 20, "column": 53 }, "end": { "line": 20, "column": 61 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 946, 950 ], "loc": { "start": { "line": 20, "column": 63 }, "end": { "line": 20, "column": 67 } } }, "property": { "type": "Identifier", "name": "predicate", "range": [ 951, 960 ], "loc": { "start": { "line": 20, "column": 68 }, "end": { "line": 20, "column": 77 } } }, "range": [ 946, 960 ], "loc": { "start": { "line": 20, "column": 63 }, "end": { "line": 20, "column": 77 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 962, 966 ], "loc": { "start": { "line": 20, "column": 79 }, "end": { "line": 20, "column": 83 } } }, "property": { "type": "Identifier", "name": "thisArg", "range": [ 967, 974 ], "loc": { "start": { "line": 20, "column": 84 }, "end": { "line": 20, "column": 91 } } }, "range": [ 962, 974 ], "loc": { "start": { "line": 20, "column": 79 }, "end": { "line": 20, "column": 91 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 976, 980 ], "loc": { "start": { "line": 20, "column": 93 }, "end": { "line": 20, "column": 97 } } }, "property": { "type": "Identifier", "name": "source", "range": [ 981, 987 ], "loc": { "start": { "line": 20, "column": 98 }, "end": { "line": 20, "column": 104 } } }, "range": [ 976, 987 ], "loc": { "start": { "line": 20, "column": 93 }, "end": { "line": 20, "column": 104 } } } ], "range": [ 916, 988 ], "loc": { "start": { "line": 20, "column": 33 }, "end": { "line": 20, "column": 105 } } } ], "range": [ 898, 989 ], "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 106 } } }, "range": [ 891, 990 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 107 } } } ], "range": [ 881, 996 ], "loc": { "start": { "line": 19, "column": 63 }, "end": { "line": 21, "column": 5 } } }, "generator": false,