@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,833 lines • 208 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "FromObservable",
"range": [
9,
23
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 23
}
}
},
"imported": {
"type": "Identifier",
"name": "FromObservable",
"range": [
9,
23
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 23
}
}
},
"range": [
9,
23
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 23
}
}
}
],
"source": {
"type": "Literal",
"value": "../observable/FromObservable",
"raw": "'../observable/FromObservable'",
"range": [
31,
61
],
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 61
}
}
},
"range": [
0,
62
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 62
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "isArray",
"range": [
72,
79
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"imported": {
"type": "Identifier",
"name": "isArray",
"range": [
72,
79
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"range": [
72,
79
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/isArray",
"raw": "'../util/isArray'",
"range": [
87,
104
],
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 41
}
}
},
"range": [
63,
105
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 42
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
115,
130
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
115,
130
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 24
}
}
},
"range": [
115,
130
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "../OuterSubscriber",
"raw": "'../OuterSubscriber'",
"range": [
138,
158
],
"loc": {
"start": {
"line": 3,
"column": 32
},
"end": {
"line": 3,
"column": 52
}
}
},
"range": [
106,
159
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 53
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
169,
186
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 26
}
}
},
"imported": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
169,
186
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 26
}
}
},
"range": [
169,
186
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 26
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/subscribeToResult",
"raw": "'../util/subscribeToResult'",
"range": [
194,
221
],
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 61
}
}
},
"range": [
160,
222
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 62
}
},
"trailingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
223,
259
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 36
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "onErrorResumeNext",
"range": [
276,
293
],
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 33
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "nextSources",
"range": [
306,
317
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 19
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [],
"range": [
320,
322
],
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 24
}
}
},
"range": [
306,
322
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
}
}
],
"kind": "var",
"range": [
302,
323
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 25
}
}
},
{
"type": "ForStatement",
"init": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_i",
"range": [
337,
339
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 15
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
342,
343
],
"loc": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 8,
"column": 19
}
}
},
"range": [
337,
343
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 19
}
}
}
],
"kind": "var",
"range": [
333,
343
],
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 19
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "_i",
"range": [
345,
347
],
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 23
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "arguments",
"range": [
350,
359
],
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
360,
366
],
"loc": {
"start": {
"line": 8,
"column": 36
},
"end": {
"line": 8,
"column": 42
}
}
},
"range": [
350,
366
],
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 42
}
}
},
"range": [
345,
366
],
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 42
}
}
},
"update": {
"type": "UpdateExpression",
"operator": "++",
"argument": {
"type": "Identifier",
"name": "_i",
"range": [
368,
370
],
"loc": {
"start": {
"line": 8,
"column": 44
},
"end": {
"line": 8,
"column": 46
}
}
},
"prefix": false,
"range": [
368,
372
],
"loc": {
"start": {
"line": 8,
"column": 44
},
"end": {
"line": 8,
"column": 48
}
}
},
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "nextSources",
"range": [
384,
395
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 19
}
}
},
"property": {
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "Identifier",
"name": "_i",
"range": [
396,
398
],
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 22
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
401,
402
],
"loc": {
"start": {
"line": 9,
"column": 25
},
"end": {
"line": 9,
"column": 26
}
}
},
"range": [
396,
402
],
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 26
}
}
},
"range": [
384,
403
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 27
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "arguments",
"range": [
406,
415
],
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"name": "_i",
"range": [
416,
418
],
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 42
}
}
},
"range": [
406,
419
],
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 43
}
}
},
"range": [
384,
419
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 43
}
}
},
"range": [
384,
420
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 44
}
}
}
],
"range": [
374,
426
],
"loc": {
"start": {
"line": 8,
"column": 50
},
"end": {
"line": 10,
"column": 5
}
}
},
"range": [
328,
426
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 10,
"column": 5
}
}
},
{
"type": "IfStatement",
"test": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "nextSources",
"range": [
435,
446
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
447,
453
],
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 26
}
}
},
"range": [
435,
453
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 26
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
458,
459
],
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 32
}
}
},
"range": [
435,
459
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 32
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "isArray",
"range": [
463,
470
],
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 43
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "nextSources",
"range": [
471,
482
],
"loc": {
"start": {
"line": 11,
"column": 44
},
"end": {
"line": 11,
"column": 55
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
483,
484
],
"loc": {
"start": {
"line": 11,
"column": 56
},
"end": {
"line": 11,
"column": 57
}
}
},
"range": [
471,
485
],
"loc": {
"start": {
"line": 11,
"column": 44
},
"end": {
"line": 11,
"column": 58
}
}
}
],
"range": [
463,
486
],
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 59
}
}
},
"range": [
435,
486
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 59
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "nextSources",
"range": [
498,
509
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 19
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "nextSources",
"range": [
512,
523
],
"loc": {
"start": {
"line": 12,
"column": 22
},
"end": {
"line": 12,
"column": 33
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
524,
525
],
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 35
}
}
},
"range": [
512,
526
],
"loc": {
"start": {
"line": 12,
"column": 22
},
"end": {
"line": 12,
"column": 36
}
}
},
"range": [
498,
526
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 36
}
}
},
"range": [
498,
527
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 37
}
}
}
],
"range": [
488,
533
],
"loc": {
"start": {
"line": 11,
"column": 61
},
"end": {
"line": 13,
"column": 5
}
}
},
"alternate": null,
"range": [
431,
533
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
545,
549
],
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
550,
554
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
}
}
},
"range": [
545,
554
],
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "OnErrorResumeNextOperator",
"range": [
559,
584
],
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 50
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "nextSources",
"range": [
585,
596
],
"loc": {
"start": {
"line": 14,
"column": 51
},
"end": {
"line": 14,
"column": 62
}
}
}
],
"range": [
555,
597
],
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 63
}
}
}
],
"range": [
545,
598
],
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 64
}
}
},
"range": [
538,
599
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 65
}
}
}
],
"range": [
296,
601
],
"loc": {
"start": {
"line": 6,
"column": 36
},
"end": {
"line": 15,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
267,
601
],
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 15,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
223,
259
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 36
}
}
}
],
"trailingComments": [
{
"type": "Block",
"value": " tslint:enable:max-line-length ",
"range": [
602,
637
],
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 35
}
}
}
]
},
"specifiers": [],
"source": null,
"range": [
260,
601
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 15,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
223,
259
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 36
}
}
}
],
"trailingComments": [
{
"type": "Block",
"value": " tslint:enable:max-line-length ",
"range": [
602,
637
],
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 35
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "onErrorResumeNextStatic",
"range": [
654,
677
],
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 39
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "nextSources",
"range": [
690,
701
],
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 19
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [],
"range": [
704,
706
],
"loc": {
"start": {
"line": 18,
"column": 22
},
"end": {
"line": 18,
"column": 24
}
}
},
"range": [
690,
706
],
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 24
}
}
}
],
"kind": "var",
"range": [
686,
707
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 25
}
}
},
{
"type": "ForStatement",
"init": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_i",
"range": [
721,
723
],
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 15
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
726,
727
],
"loc": {
"start": {
"line": 19,
"column": 18
},
"end": {
"line": 19,
"column": 19
}
}
},
"range": [
721,
727
],
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 19
}
}
}
],
"kind": "var",
"range": [
717,
727
],
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 19
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "_i",
"range": [
729,
731
],
"loc": {
"start": {
"line": 19,
"column": 21
},
"end": {
"line": 19,
"column": 23
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "arguments",
"range": [
734,
743
],
"loc": {
"start": {
"line": 19,
"column": 26
},
"end": {
"line": 19,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
744,
750
],
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,
"column": 42
}
}
},
"range": [
734,
750
],
"loc": {
"start": {
"line": 19,
"column": 26
},
"end": {
"line": 19,
"column": 42
}
}
},
"range": [
729,
750
],
"loc": {
"start": {
"line": 19,
"column": 21
},
"end": {
"line": 19,
"column": 42
}
}
},
"update": {
"type": "UpdateExpression",
"operator": "++",
"argument": {
"type": "Identifier",
"name": "_i",
"range": [
752,
754
],
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 46
}
}
},
"prefix": false,
"range": [
752,
756
],
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 48
}
}
},
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"o