@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,543 lines (1,542 loc) • 298 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
9,
24
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
9,
24
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 24
}
}
},
"range": [
9,
24
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "../OuterSubscriber",
"raw": "'../OuterSubscriber'",
"range": [
32,
52
],
"loc": {
"start": {
"line": 1,
"column": 32
},
"end": {
"line": 1,
"column": 52
}
}
},
"range": [
0,
53
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 53
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
63,
80
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 26
}
}
},
"imported": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
63,
80
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 26
}
}
},
"range": [
63,
80
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 26
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/subscribeToResult",
"raw": "'../util/subscribeToResult'",
"range": [
88,
115
],
"loc": {
"start": {
"line": 2,
"column": 34
},
"end": {
"line": 2,
"column": 61
}
}
},
"range": [
54,
116
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 62
}
},
"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": "exhaustMap",
"range": [
170,
180
],
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 26
}
}
},
"params": [
{
"type": "Identifier",
"name": "project",
"range": [
181,
188
],
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 34
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
190,
204
],
"loc": {
"start": {
"line": 4,
"column": 36
},
"end": {
"line": 4,
"column": 50
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
219,
223
],
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
224,
228
],
"loc": {
"start": {
"line": 5,
"column": 16
},
"end": {
"line": 5,
"column": 20
}
}
},
"range": [
219,
228
],
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "SwitchFirstMapOperator",
"range": [
233,
255
],
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 47
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "project",
"range": [
256,
263
],
"loc": {
"start": {
"line": 5,
"column": 48
},
"end": {
"line": 5,
"column": 55
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
265,
279
],
"loc": {
"start": {
"line": 5,
"column": 57
},
"end": {
"line": 5,
"column": 71
}
}
}
],
"range": [
229,
280
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 72
}
}
}
],
"range": [
219,
281
],
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 73
}
}
},
"range": [
212,
282
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 74
}
}
}
],
"range": [
206,
284
],
"loc": {
"start": {
"line": 4,
"column": 52
},
"end": {
"line": 6,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
161,
284
],
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 6,
"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,
284
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"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": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "SwitchFirstMapOperator",
"range": [
289,
311
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 26
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "SwitchFirstMapOperator",
"range": [
342,
364
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 35
}
}
},
"params": [
{
"type": "Identifier",
"name": "project",
"range": [
365,
372
],
"loc": {
"start": {
"line": 8,
"column": 36
},
"end": {
"line": 8,
"column": 43
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
374,
388
],
"loc": {
"start": {
"line": 8,
"column": 45
},
"end": {
"line": 8,
"column": 59
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
400,
404
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "project",
"range": [
405,
412
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 20
}
}
},
"range": [
400,
412
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 20
}
}
},
"right": {
"type": "Identifier",
"name": "project",
"range": [
415,
422
],
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 30
}
}
},
"range": [
400,
422
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 30
}
}
},
"range": [
400,
423
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 31
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
432,
436
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "resultSelector",
"range": [
437,
451
],
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 27
}
}
},
"range": [
432,
451
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 27
}
}
},
"right": {
"type": "Identifier",
"name": "resultSelector",
"range": [
454,
468
],
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 44
}
}
},
"range": [
432,
468
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 44
}
}
},
"range": [
432,
469
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 45
}
}
}
],
"range": [
390,
475
],
"loc": {
"start": {
"line": 8,
"column": 61
},
"end": {
"line": 11,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
333,
475
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "SwitchFirstMapOperator",
"range": [
480,
502
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
503,
512
],
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 36
}
}
},
"range": [
480,
512
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
513,
517
],
"loc": {
"start": {
"line": 12,
"column": 37
},
"end": {
"line": 12,
"column": 41
}
}
},
"range": [
480,
517
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 41
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
530,
540
],
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 12,
"column": 64
}
}
},
{
"type": "Identifier",
"name": "source",
"range": [
542,
548
],
"loc": {
"start": {
"line": 12,
"column": 66
},
"end": {
"line": 12,
"column": 72
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "source",
"range": [
567,
573
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "_subscribe",
"range": [
574,
584
],
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 32
}
}
},
"range": [
567,
584
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 32
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "SwitchFirstMapSubscriber",
"range": [
589,
613
],
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 13,
"column": 61
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
614,
624
],
"loc": {
"start": {
"line": 13,
"column": 62
},
"end": {
"line": 13,
"column": 72
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
626,
630
],
"loc": {
"start": {
"line": 13,
"column": 74
},
"end": {
"line": 13,
"column": 78
}
}
},
"property": {
"type": "Identifier",
"name": "project",
"range": [
631,
638
],
"loc": {
"start": {
"line": 13,
"column": 79
},
"end": {
"line": 13,
"column": 86
}
}
},
"range": [
626,
638
],
"loc": {
"start": {
"line": 13,
"column": 74
},
"end": {
"line": 13,
"column": 86
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
640,
644
],
"loc": {
"start": {
"line": 13,
"column": 88
},
"end": {
"line": 13,
"column": 92
}
}
},
"property": {
"type": "Identifier",
"name": "resultSelector",
"range": [
645,
659
],
"loc": {
"start": {
"line": 13,
"column": 93
},
"end": {
"line": 13,
"column": 107
}
}
},
"range": [
640,
659
],
"loc": {
"start": {
"line": 13,
"column": 88
},
"end": {
"line": 13,
"column": 107
}
}
}
],
"range": [
585,
660
],
"loc": {
"start": {
"line": 13,
"column": 33
},
"end": {
"line": 13,
"column": 108
}
}
}
],
"range": [
567,
661
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 109
}
}
},
"range": [
560,
662
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 110
}
}
}
],
"range": [
550,
668
],
"loc": {
"start": {
"line": 12,
"column": 74
},
"end": {
"line": 14,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
520,
668
],
"loc": {
"start": {
"line": 12,
"column": 44
},
"end": {
"line": 14,
"column": 5
}
}
},
"range": [
480,
668
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
}
},
"range": [
480,
669
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 14,
"column": 6
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "SwitchFirstMapOperator",
"range": [
681,
703
],
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 33
}
}
},
"range": [
674,
704
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 34
}
}
}
],
"range": [
327,
706
],
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 16,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
315,
706
],
"loc": {
"start": {
"line": 7,
"column": 30
},
"end": {
"line": 16,
"column": 1
}
}
},
"arguments": [],
"range": [
315,
708
],
"loc": {
"start": {
"line": 7,
"column": 30
},
"end": {
"line": 16,
"column": 3
}
}
},
"range": [
289,
709
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 16,
"column": 4
}
}
}
],
"kind": "var",
"range": [
285,
710
],
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 16,
"column": 5
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
711,
802
],
"loc": {
"start": {
"line": 17,
"column": 0
},
"end": {
"line": 21,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "SwitchFirstMapSubscriber",
"range": [
807,
831
],
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 28
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
845,
851
],
"loc": {
"start": {
"line": 22,
"column": 42
},
"end": {
"line": 22,
"column": 48
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
859,
868
],
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "SwitchFirstMapSubscriber",
"range": [
869,
893
],
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 38
}
}
},
{
"type": "Identifier",