@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,570 lines (1,569 loc) • 397 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
9,
26
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 26
}
}
},
"imported": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
9,
26
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 26
}
}
},
"range": [
9,
26
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 26
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/subscribeToResult",
"raw": "'../util/subscribeToResult'",
"range": [
34,
61
],
"loc": {
"start": {
"line": 1,
"column": 34
},
"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": "OuterSubscriber",
"range": [
72,
87
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
72,
87
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 24
}
}
},
"range": [
72,
87
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "../OuterSubscriber",
"raw": "'../OuterSubscriber'",
"range": [
95,
115
],
"loc": {
"start": {
"line": 2,
"column": 32
},
"end": {
"line": 2,
"column": 52
}
}
},
"range": [
63,
116
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 53
}
},
"trailingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
117,
153
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "mergeMap",
"range": [
170,
178
],
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 24
}
}
},
"params": [
{
"type": "Identifier",
"name": "project",
"range": [
179,
186
],
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 32
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
188,
202
],
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 48
}
}
},
{
"type": "Identifier",
"name": "concurrent",
"range": [
204,
214
],
"loc": {
"start": {
"line": 4,
"column": 50
},
"end": {
"line": 4,
"column": 60
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "concurrent",
"range": [
226,
236
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 18
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "void",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
246,
247
],
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 29
}
}
},
"prefix": true,
"range": [
241,
247
],
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 5,
"column": 29
}
}
},
"range": [
226,
247
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 29
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "concurrent",
"range": [
251,
261
],
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 5,
"column": 43
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Number",
"range": [
264,
270
],
"loc": {
"start": {
"line": 5,
"column": 46
},
"end": {
"line": 5,
"column": 52
}
}
},
"property": {
"type": "Identifier",
"name": "POSITIVE_INFINITY",
"range": [
271,
288
],
"loc": {
"start": {
"line": 5,
"column": 53
},
"end": {
"line": 5,
"column": 70
}
}
},
"range": [
264,
288
],
"loc": {
"start": {
"line": 5,
"column": 46
},
"end": {
"line": 5,
"column": 70
}
}
},
"range": [
251,
288
],
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 5,
"column": 70
}
}
},
"range": [
251,
289
],
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 5,
"column": 71
}
}
}
],
"range": [
249,
291
],
"loc": {
"start": {
"line": 5,
"column": 31
},
"end": {
"line": 5,
"column": 73
}
}
},
"alternate": null,
"range": [
222,
291
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 73
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "UnaryExpression",
"operator": "typeof",
"argument": {
"type": "Identifier",
"name": "resultSelector",
"range": [
307,
321
],
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 29
}
}
},
"prefix": true,
"range": [
300,
321
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 29
}
}
},
"right": {
"type": "Literal",
"value": "number",
"raw": "'number'",
"range": [
326,
334
],
"loc": {
"start": {
"line": 6,
"column": 34
},
"end": {
"line": 6,
"column": 42
}
}
},
"range": [
300,
334
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 42
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "concurrent",
"range": [
346,
356
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 18
}
}
},
"right": {
"type": "Identifier",
"name": "resultSelector",
"range": [
359,
373
],
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 35
}
}
},
"range": [
346,
373
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 35
}
}
},
"range": [
346,
374
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 36
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "resultSelector",
"range": [
383,
397
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
}
},
"right": {
"type": "Literal",
"value": null,
"raw": "null",
"range": [
400,
404
],
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 8,
"column": 29
}
}
},
"range": [
383,
404
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 29
}
}
},
"range": [
383,
405
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 30
}
}
}
],
"range": [
336,
411
],
"loc": {
"start": {
"line": 6,
"column": 44
},
"end": {
"line": 9,
"column": 5
}
}
},
"alternate": null,
"range": [
296,
411
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
423,
427
],
"loc": {
"start": {
"line": 10,
"column": 11
},
"end": {
"line": 10,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
428,
432
],
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 20
}
}
},
"range": [
423,
432
],
"loc": {
"start": {
"line": 10,
"column": 11
},
"end": {
"line": 10,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "MergeMapOperator",
"range": [
437,
453
],
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 41
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "project",
"range": [
454,
461
],
"loc": {
"start": {
"line": 10,
"column": 42
},
"end": {
"line": 10,
"column": 49
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
463,
477
],
"loc": {
"start": {
"line": 10,
"column": 51
},
"end": {
"line": 10,
"column": 65
}
}
},
{
"type": "Identifier",
"name": "concurrent",
"range": [
479,
489
],
"loc": {
"start": {
"line": 10,
"column": 67
},
"end": {
"line": 10,
"column": 77
}
}
}
],
"range": [
433,
490
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 78
}
}
}
],
"range": [
423,
491
],
"loc": {
"start": {
"line": 10,
"column": 11
},
"end": {
"line": 10,
"column": 79
}
}
},
"range": [
416,
492
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 80
}
}
}
],
"range": [
216,
494
],
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 11,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
161,
494
],
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 11,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
117,
153
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
}
}
],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
154,
494
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 11,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
117,
153
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "MergeMapOperator",
"range": [
506,
522
],
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 27
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "MergeMapOperator",
"range": [
553,
569
],
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 29
}
}
},
"params": [
{
"type": "Identifier",
"name": "project",
"range": [
570,
577
],
"loc": {
"start": {
"line": 13,
"column": 30
},
"end": {
"line": 13,
"column": 37
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
579,
593
],
"loc": {
"start": {
"line": 13,
"column": 39
},
"end": {
"line": 13,
"column": 53
}
}
},
{
"type": "Identifier",
"name": "concurrent",
"range": [
595,
605
],
"loc": {
"start": {
"line": 13,
"column": 55
},
"end": {
"line": 13,
"column": 65
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "concurrent",
"range": [
621,
631
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 22
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "void",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
641,
642
],
"loc": {
"start": {
"line": 14,
"column": 32
},
"end": {
"line": 14,
"column": 33
}
}
},
"prefix": true,
"range": [
636,
642
],
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 33
}
}
},
"range": [
621,
642
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 33
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "concurrent",
"range": [
646,
656
],
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 14,
"column": 47
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Number",
"range": [
659,
665
],
"loc": {
"start": {
"line": 14,
"column": 50
},
"end": {
"line": 14,
"column": 56
}
}
},
"property": {
"type": "Identifier",
"name": "POSITIVE_INFINITY",
"range": [
666,
683
],
"loc": {
"start": {
"line": 14,
"column": 57
},
"end": {
"line": 14,
"column": 74
}
}
},
"range": [
659,
683
],
"loc": {
"start": {
"line": 14,
"column": 50
},
"end": {
"line": 14,
"column": 74
}
}
},
"range": [
646,
683
],
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 14,
"column": 74
}
}
},
"range": [
646,
684
],
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 14,
"column": 75
}
}
}
],
"range": [
644,
686
],
"loc": {
"start": {
"line": 14,
"column": 35
},
"end": {
"line": 14,
"column": 77
}
}
},
"alternate": null,
"range": [
617,
686
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 77
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
695,
699
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "project",
"range": [
700,
707
],
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 20
}
}
},
"range": [
695,
707
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 20
}
}
},
"right": {
"type": "Identifier",
"name": "project",
"range": [
710,
717
],
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 30
}
}
},
"range": [
695,
717
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 30
}
}
},
"range": [
695,
718
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 31
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
727,
731
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "resultSelector",
"range": [
732,
746
],
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 27
}
}
},
"range": [
727,
746
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 27
}
}
},
"right": {
"type": "Identifier",
"name": "resultSelector",
"range": [
749,
763
],
"loc": {
"start": {
"line": 16,
"column": 30
},
"end": {
"line": 16,
"column": 44
}
}
},
"range": [
727,
763
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 44
}
}
},
"range": [
727,
764
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 45