@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,558 lines (1,557 loc) • 56.9 kB
JSON
{
"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
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "noop",
"range": [
53,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 13
}
}
},
"imported": {
"type": "Identifier",
"name": "noop",
"range": [
53,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 13
}
}
},
"range": [
53,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/noop",
"raw": "'../util/noop'",
"range": [
65,
79
],
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"column": 35
}
}
},
"range": [
44,
80
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * <img src=\"./img/ignoreElements.png\" width=\"100%\">\n *\n * @return {Observable} an empty Observable that only calls `complete`\n * or `error`, based on which one is called by the source Observable.\n * @method ignoreElements\n * @owner Observable\n ",
"range": [
81,
437
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 12,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "ignoreElements",
"range": [
454,
468
],
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 30
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
484,
488
],
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
489,
493
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
}
}
},
"range": [
484,
493
],
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "IgnoreElementsOperator",
"range": [
498,
520
],
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 47
}
}
},
"arguments": [],
"range": [
494,
522
],
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 49
}
}
}
],
"range": [
484,
523
],
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 50
}
}
},
"range": [
477,
524
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 51
}
}
}
],
"range": [
471,
526
],
"loc": {
"start": {
"line": 13,
"column": 33
},
"end": {
"line": 15,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
445,
526
],
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 15,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * <img src=\"./img/ignoreElements.png\" width=\"100%\">\n *\n * @return {Observable} an empty Observable that only calls `complete`\n * or `error`, based on which one is called by the source Observable.\n * @method ignoreElements\n * @owner Observable\n ",
"range": [
81,
437
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 12,
"column": 3
}
}
}
],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
438,
526
],
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 15,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * <img src=\"./img/ignoreElements.png\" width=\"100%\">\n *\n * @return {Observable} an empty Observable that only calls `complete`\n * or `error`, based on which one is called by the source Observable.\n * @method ignoreElements\n * @owner Observable\n ",
"range": [
81,
437
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 12,
"column": 3
}
}
}
]
},
{
"type": "EmptyStatement",
"range": [
527,
528
],
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 1
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "IgnoreElementsOperator",
"range": [
533,
555
],
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 26
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "IgnoreElementsOperator",
"range": [
586,
608
],
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 35
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [],
"range": [
611,
618
],
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 19,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
577,
618
],
"loc": {
"start": {
"line": 18,
"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": "IgnoreElementsOperator",
"range": [
623,
645
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
646,
655
],
"loc": {
"start": {
"line": 20,
"column": 27
},
"end": {
"line": 20,
"column": 36
}
}
},
"range": [
623,
655
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
656,
660
],
"loc": {
"start": {
"line": 20,
"column": 37
},
"end": {
"line": 20,
"column": 41
}
}
},
"range": [
623,
660
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 41
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
673,
683
],
"loc": {
"start": {
"line": 20,
"column": 54
},
"end": {
"line": 20,
"column": 64
}
}
},
{
"type": "Identifier",
"name": "source",
"range": [
685,
691
],
"loc": {
"start": {
"line": 20,
"column": 66
},
"end": {
"line": 20,
"column": 72
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "source",
"range": [
710,
716
],
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "_subscribe",
"range": [
717,
727
],
"loc": {
"start": {
"line": 21,
"column": 22
},
"end": {
"line": 21,
"column": 32
}
}
},
"range": [
710,
727
],
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 32
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "IgnoreElementsSubscriber",
"range": [
732,
756
],
"loc": {
"start": {
"line": 21,
"column": 37
},
"end": {
"line": 21,
"column": 61
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
757,
767
],
"loc": {
"start": {
"line": 21,
"column": 62
},
"end": {
"line": 21,
"column": 72
}
}
}
],
"range": [
728,
768
],
"loc": {
"start": {
"line": 21,
"column": 33
},
"end": {
"line": 21,
"column": 73
}
}
}
],
"range": [
710,
769
],
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 74
}
}
},
"range": [
703,
770
],
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 75
}
}
}
],
"range": [
693,
776
],
"loc": {
"start": {
"line": 20,
"column": 74
},
"end": {
"line": 22,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
663,
776
],
"loc": {
"start": {
"line": 20,
"column": 44
},
"end": {
"line": 22,
"column": 5
}
}
},
"range": [
623,
776
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 5
}
}
},
"range": [
623,
777
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 6
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "IgnoreElementsOperator",
"range": [
789,
811
],
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"column": 33
}
}
},
"range": [
782,
812
],
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 34
}
}
}
],
"range": [
571,
814
],
"loc": {
"start": {
"line": 17,
"column": 42
},
"end": {
"line": 24,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
559,
814
],
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 24,
"column": 1
}
}
},
"arguments": [],
"range": [
559,
816
],
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 24,
"column": 3
}
}
},
"range": [
533,
817
],
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 24,
"column": 4
}
}
}
],
"kind": "var",
"range": [
529,
818
],
"loc": {
"start": {
"line": 17,
"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": [
819,
910
],
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 29,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "IgnoreElementsSubscriber",
"range": [
915,
939
],
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 28
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
953,
959
],
"loc": {
"start": {
"line": 30,
"column": 42
},
"end": {
"line": 30,
"column": 48
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
967,
976
],
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "IgnoreElementsSubscriber",
"range": [
977,
1001
],
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 38
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
1003,
1009
],
"loc": {
"start": {
"line": 31,
"column": 40
},
"end": {
"line": 31,
"column": 46
}
}
}
],
"range": [
967,
1010
],
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 47
}
}
},
"range": [
967,
1011
],
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 48
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "IgnoreElementsSubscriber",
"range": [
1025,
1049
],
"loc": {
"start": {
"line": 32,
"column": 13
},
"end": {
"line": 32,
"column": 37
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
1062,
1068
],
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "apply",
"range": [
1069,
1074
],
"loc": {
"start": {
"line": 33,
"column": 15
},
"end": {
"line": 33,
"column": 20
}
}
},
"range": [
1062,
1074
],
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 20
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
1075,
1079
],
"loc": {
"start": {
"line": 33,
"column": 21
},
"end": {
"line": 33,
"column": 25
}
}
},
{
"type": "Identifier",
"name": "arguments",
"range": [
1081,
1090
],
"loc": {
"start": {
"line": 33,
"column": 27
},
"end": {
"line": 33,
"column": 36
}
}
}
],
"range": [
1062,
1091
],
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 37
}
}
},
"range": [
1062,
1092
],
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 38
}
}
}
],
"range": [
1052,
1098
],
"loc": {
"start": {
"line": 32,
"column": 40
},
"end": {
"line": 34,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
1016,
1098
],
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "IgnoreElementsSubscriber",
"range": [
1103,
1127
],
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
1128,
1137
],
"loc": {
"start": {
"line": 35,
"column": 29
},
"end": {
"line": 35,
"column": 38
}
}
},
"range": [
1103,
1137
],
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"name": "_next",
"range": [
1138,
1143
],
"loc": {
"start": {
"line": 35,
"column": 39
},
"end": {
"line": 35,
"column": 44
}
}
},
"range": [
1103,
1143
],
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 44
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "unused",
"range": [
1156,
1162
],
"loc": {
"start": {
"line": 35,
"column": 57
},
"end": {
"line": 35,
"column": 63
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "noop",
"range": [
1174,
1178
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 12
}
}
},
"arguments": [],
"range": [
1174,
1180
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 14
}
}
},
"range": [
1174,
1181
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 15
}
}
}
],
"range": [
1164,
1187
],
"loc": {
"start": {
"line": 35,
"column": 65
},
"end": {
"line": 37,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
1146,
1187
],
"loc": {
"start": {
"line": 35,