@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,450 lines (1,449 loc) • 346 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Observable",
"range": [
9,
19
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
}
},
"imported": {
"type": "Identifier",
"name": "Observable",
"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": "../Observable",
"raw": "'../Observable'",
"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": "EmptyObservable",
"range": [
53,
68
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "EmptyObservable",
"range": [
53,
68
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 24
}
}
},
"range": [
53,
68
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "./EmptyObservable",
"raw": "'./EmptyObservable'",
"range": [
76,
95
],
"loc": {
"start": {
"line": 2,
"column": 32
},
"end": {
"line": 2,
"column": 51
}
}
},
"range": [
44,
96
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 52
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "isArray",
"range": [
106,
113
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 16
}
}
},
"imported": {
"type": "Identifier",
"name": "isArray",
"range": [
106,
113
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 16
}
}
},
"range": [
106,
113
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 16
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/isArray",
"raw": "'../util/isArray'",
"range": [
121,
138
],
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 3,
"column": 41
}
}
},
"range": [
97,
139
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 42
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
149,
166
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 26
}
}
},
"imported": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
149,
166
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 26
}
}
},
"range": [
149,
166
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 26
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/subscribeToResult",
"raw": "'../util/subscribeToResult'",
"range": [
174,
201
],
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 61
}
}
},
"range": [
140,
202
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 62
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
212,
227
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
212,
227
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 24
}
}
},
"range": [
212,
227
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "../OuterSubscriber",
"raw": "'../OuterSubscriber'",
"range": [
235,
255
],
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 52
}
}
},
"range": [
203,
256
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 53
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ",
"range": [
257,
351
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "ForkJoinObservable",
"range": [
363,
381
],
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 29
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
395,
401
],
"loc": {
"start": {
"line": 11,
"column": 43
},
"end": {
"line": 11,
"column": 49
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
409,
418
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "ForkJoinObservable",
"range": [
419,
437
],
"loc": {
"start": {
"line": 12,
"column": 14
},
"end": {
"line": 12,
"column": 32
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
439,
445
],
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 40
}
}
}
],
"range": [
409,
446
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 41
}
}
},
"range": [
409,
447
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 42
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "ForkJoinObservable",
"range": [
461,
479
],
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 31
}
}
},
"params": [
{
"type": "Identifier",
"name": "sources",
"range": [
480,
487
],
"loc": {
"start": {
"line": 13,
"column": 32
},
"end": {
"line": 13,
"column": 39
}
}
},
{
"type": "Identifier",
"name": "resultSelector",
"range": [
489,
503
],
"loc": {
"start": {
"line": 13,
"column": 41
},
"end": {
"line": 13,
"column": 55
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
515,
521
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
522,
526
],
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 19
}
}
},
"range": [
515,
526
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
527,
531
],
"loc": {
"start": {
"line": 14,
"column": 20
},
"end": {
"line": 14,
"column": 24
}
}
}
],
"range": [
515,
532
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 25
}
}
},
"range": [
515,
533
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
542,
546
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "sources",
"range": [
547,
554
],
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 20
}
}
},
"range": [
542,
554
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 20
}
}
},
"right": {
"type": "Identifier",
"name": "sources",
"range": [
557,
564
],
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 30
}
}
},
"range": [
542,
564
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 30
}
}
},
"range": [
542,
565
],
"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": [
574,
578
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "resultSelector",
"range": [
579,
593
],
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 27
}
}
},
"range": [
574,
593
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 27
}
}
},
"right": {
"type": "Identifier",
"name": "resultSelector",
"range": [
596,
610
],
"loc": {
"start": {
"line": 16,
"column": 30
},
"end": {
"line": 16,
"column": 44
}
}
},
"range": [
574,
610
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 44
}
}
},
"range": [
574,
611
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 45
}
}
}
],
"range": [
505,
617
],
"loc": {
"start": {
"line": 13,
"column": 57
},
"end": {
"line": 17,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
452,
617
],
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"trailingComments": [
{
"type": "Block",
"value": " tslint:enable:max-line-length ",
"range": [
622,
657
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 39
}
}
},
{
"type": "Block",
"value": "*\n * @param sources\n * @return {any}\n * @static true\n * @name forkJoin\n * @owner Observable\n ",
"range": [
662,
783
],
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 25,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "ForkJoinObservable",
"range": [
788,
806
],
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "create",
"range": [
807,
813
],
"loc": {
"start": {
"line": 26,
"column": 23
},
"end": {
"line": 26,
"column": 29
}
}
},
"range": [
788,
813
],
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 29
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "sources",
"range": [
842,
849
],
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 19
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [],
"range": [
852,
854
],
"loc": {
"start": {
"line": 27,
"column": 22
},
"end": {
"line": 27,
"column": 24
}
}
},
"range": [
842,
854
],
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 24
}
}
}
],
"kind": "var",
"range": [
838,
855
],
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": "ForStatement",
"init": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_i",
"range": [
873,
875
],
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 19
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
878,
879
],
"loc": {
"start": {
"line": 28,
"column": 22
},
"end": {
"line": 28,
"column": 23
}
}
},
"range": [
873,
879
],
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 23
}
}
}
],
"kind": "var",
"range": [
869,
879
],
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 23
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "_i",
"range": [
881,
883
],
"loc": {
"start": {
"line": 28,
"column": 25
},
"end": {
"line": 28,
"column": 27
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "arguments",
"range": [
886,
895
],
"loc": {
"start": {
"line": 28,
"column": 30
},
"end": {
"line": 28,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
896,
902
],
"loc": {
"start": {
"line": 28,
"column": 40
},
"end": {
"line": 28,
"column": 46
}
}
},
"range": [
886,
902
],
"loc": {
"start": {
"line": 28,
"column": 30
},
"end": {
"line": 28,
"column": 46
}
}
},
"range": [
881,
902
],
"loc": {
"start": {
"line": 28,
"column": 25
},
"end": {
"line": 28,
"column": 46
}
}
},
"update": {
"type": "UpdateExpression",
"operator": "++",
"argument": {
"type": "Identifier",
"name": "_i",
"range": [
904,
906
],
"loc": {
"start": {
"line": 28,
"column": 48
},
"end": {
"line": 28,
"column": 50
}
}
},
"prefix": false,
"range": [
904,
908
],
"loc": {
"start": {
"line": 28,
"column": 48
},
"end": {
"line": 28,
"column": 52
}
}
},
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "sources",
"range": [
924,
931
],
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 19
}
}
},
"property": {
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "Identifier",
"name": "_i",