@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,477 lines (1,476 loc) • 138 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
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds\n * true, but emits all further source items as soon as the condition becomes false.\n *\n * <img src=\"./img/skipWhile.png\" width=\"100%\">\n *\n * @param {Function} predicate - a function to test each item emitted from the source Observable.\n * @return {Observable<T>} an Observable that begins emitting items emitted by the source Observable when the\n * specified predicate becomes false.\n * @method skipWhile\n * @owner Observable\n ",
"range": [
44,
595
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 13,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "skipWhile",
"range": [
612,
621
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 25
}
}
},
"params": [
{
"type": "Identifier",
"name": "predicate",
"range": [
622,
631
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 35
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
646,
650
],
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
651,
655
],
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 20
}
}
},
"range": [
646,
655
],
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "SkipWhileOperator",
"range": [
660,
677
],
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 42
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "predicate",
"range": [
678,
687
],
"loc": {
"start": {
"line": 15,
"column": 43
},
"end": {
"line": 15,
"column": 52
}
}
}
],
"range": [
656,
688
],
"loc": {
"start": {
"line": 15,
"column": 21
},
"end": {
"line": 15,
"column": 53
}
}
}
],
"range": [
646,
689
],
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 54
}
}
},
"range": [
639,
690
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 55
}
}
}
],
"range": [
633,
692
],
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 16,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
603,
692
],
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 16,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds\n * true, but emits all further source items as soon as the condition becomes false.\n *\n * <img src=\"./img/skipWhile.png\" width=\"100%\">\n *\n * @param {Function} predicate - a function to test each item emitted from the source Observable.\n * @return {Observable<T>} an Observable that begins emitting items emitted by the source Observable when the\n * specified predicate becomes false.\n * @method skipWhile\n * @owner Observable\n ",
"range": [
44,
595
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 13,
"column": 3
}
}
}
],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
596,
692
],
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 16,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds\n * true, but emits all further source items as soon as the condition becomes false.\n *\n * <img src=\"./img/skipWhile.png\" width=\"100%\">\n *\n * @param {Function} predicate - a function to test each item emitted from the source Observable.\n * @return {Observable<T>} an Observable that begins emitting items emitted by the source Observable when the\n * specified predicate becomes false.\n * @method skipWhile\n * @owner Observable\n ",
"range": [
44,
595
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 13,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "SkipWhileOperator",
"range": [
697,
714
],
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "SkipWhileOperator",
"range": [
745,
762
],
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 30
}
}
},
"params": [
{
"type": "Identifier",
"name": "predicate",
"range": [
763,
772
],
"loc": {
"start": {
"line": 18,
"column": 31
},
"end": {
"line": 18,
"column": 40
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
784,
788
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "predicate",
"range": [
789,
798
],
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 22
}
}
},
"range": [
784,
798
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 22
}
}
},
"right": {
"type": "Identifier",
"name": "predicate",
"range": [
801,
810
],
"loc": {
"start": {
"line": 19,
"column": 25
},
"end": {
"line": 19,
"column": 34
}
}
},
"range": [
784,
810
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 34
}
}
},
"range": [
784,
811
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 35
}
}
}
],
"range": [
774,
817
],
"loc": {
"start": {
"line": 18,
"column": 42
},
"end": {
"line": 20,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
736,
817
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 20,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "SkipWhileOperator",
"range": [
822,
839
],
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
840,
849
],
"loc": {
"start": {
"line": 21,
"column": 22
},
"end": {
"line": 21,
"column": 31
}
}
},
"range": [
822,
849
],
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
850,
854
],
"loc": {
"start": {
"line": 21,
"column": 32
},
"end": {
"line": 21,
"column": 36
}
}
},
"range": [
822,
854
],
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 36
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
867,
877
],
"loc": {
"start": {
"line": 21,
"column": 49
},
"end": {
"line": 21,
"column": 59
}
}
},
{
"type": "Identifier",
"name": "source",
"range": [
879,
885
],
"loc": {
"start": {
"line": 21,
"column": 61
},
"end": {
"line": 21,
"column": 67
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "source",
"range": [
904,
910
],
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "_subscribe",
"range": [
911,
921
],
"loc": {
"start": {
"line": 22,
"column": 22
},
"end": {
"line": 22,
"column": 32
}
}
},
"range": [
904,
921
],
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 32
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "SkipWhileSubscriber",
"range": [
926,
945
],
"loc": {
"start": {
"line": 22,
"column": 37
},
"end": {
"line": 22,
"column": 56
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
946,
956
],
"loc": {
"start": {
"line": 22,
"column": 57
},
"end": {
"line": 22,
"column": 67
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
958,
962
],
"loc": {
"start": {
"line": 22,
"column": 69
},
"end": {
"line": 22,
"column": 73
}
}
},
"property": {
"type": "Identifier",
"name": "predicate",
"range": [
963,
972
],
"loc": {
"start": {
"line": 22,
"column": 74
},
"end": {
"line": 22,
"column": 83
}
}
},
"range": [
958,
972
],
"loc": {
"start": {
"line": 22,
"column": 69
},
"end": {
"line": 22,
"column": 83
}
}
}
],
"range": [
922,
973
],
"loc": {
"start": {
"line": 22,
"column": 33
},
"end": {
"line": 22,
"column": 84
}
}
}
],
"range": [
904,
974
],
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 85
}
}
},
"range": [
897,
975
],
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 86
}
}
}
],
"range": [
887,
981
],
"loc": {
"start": {
"line": 21,
"column": 69
},
"end": {
"line": 23,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
857,
981
],
"loc": {
"start": {
"line": 21,
"column": 39
},
"end": {
"line": 23,
"column": 5
}
}
},
"range": [
822,
981
],
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 23,
"column": 5
}
}
},
"range": [
822,
982
],
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 23,
"column": 6
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "SkipWhileOperator",
"range": [
994,
1011
],
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"column": 28
}
}
},
"range": [
987,
1012
],
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 29
}
}
}
],
"range": [
730,
1014
],
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 25,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
718,
1014
],
"loc": {
"start": {
"line": 17,
"column": 25
},
"end": {
"line": 25,
"column": 1
}
}
},
"arguments": [],
"range": [
718,
1016
],
"loc": {
"start": {
"line": 17,
"column": 25
},
"end": {
"line": 25,
"column": 3
}
}
},
"range": [
697,
1017
],
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 25,
"column": 4
}
}
}
],
"kind": "var",
"range": [
693,
1018
],
"loc": {
"start": {
"line": 17,
"column": 0
},
"end": {
"line": 25,
"column": 5
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
1019,
1110
],
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "SkipWhileSubscriber",
"range": [
1115,
1134
],
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 23
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
1148,
1154
],
"loc": {
"start": {
"line": 31,
"column": 37
},
"end": {
"line": 31,
"column": 43
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
1162,
1171
],
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "SkipWhileSubscriber",
"range": [
1172,
1191
],
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 33
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
1193,
1199
],
"loc": {
"start": {
"line": 32,
"column": 35
},
"end": {
"line": 32,
"column": 41
}
}
}
],
"range": [
1162,
1200
],
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 42
}
}
},
"range": [
1162,
1201
],
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 43
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "SkipWhileSubscriber",
"range": [
1215,
1234
],
"loc": {
"start": {
"line": 33,
"column": 13
},
"end": {
"line": 33,
"column": 32
}
}
},
"params": [
{
"type": "Identifier",
"name": "destination",
"range": [
1235,
1246
],
"loc": {
"start": {
"line": 33,
"column": 33
},
"end": {
"line": 33,
"column": 44
}
}
},
{
"type": "Identifier",
"name": "predicate",
"range": [
1248,
1257
],
"loc": {
"start": {
"line": 33,
"column": 46
},
"end": {
"line": 33,
"column": 55
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
1269,
1275
],
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
1276,
1280
],
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 19
}
}
},
"range": [
1269,
1280
],
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
1281,
1285
],
"loc": {
"start": {
"line": 34,
"column": 20
},
"end": {
"line": 34,
"column": 24
}
}
},
{
"type": "Identifier",
"name": "destination",
"range": [
1287,
1298
],
"loc": {
"start": {
"line": 34,
"column": 26
},
"end": {
"line": 34,
"column": 37
}
}
}
],
"range": [
1269,
1299
],
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 38
}
}
},
"range": [
1269,
1300
],
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 39
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",