@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,758 lines • 205 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "root",
"range": [
9,
13
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 13
}
}
},
"imported": {
"type": "Identifier",
"name": "root",
"range": [
9,
13
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 13
}
}
},
"range": [
9,
13
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "./root",
"raw": "'./root'",
"range": [
21,
29
],
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 29
}
}
},
"range": [
0,
30
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "isArray",
"range": [
40,
47
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"imported": {
"type": "Identifier",
"name": "isArray",
"range": [
40,
47
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"range": [
40,
47
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
}
],
"source": {
"type": "Literal",
"value": "./isArray",
"raw": "'./isArray'",
"range": [
55,
66
],
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 35
}
}
},
"range": [
31,
67
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "isPromise",
"range": [
77,
86
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
}
}
},
"imported": {
"type": "Identifier",
"name": "isPromise",
"range": [
77,
86
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
}
}
},
"range": [
77,
86
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 18
}
}
}
],
"source": {
"type": "Literal",
"value": "./isPromise",
"raw": "'./isPromise'",
"range": [
94,
107
],
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 39
}
}
},
"range": [
68,
108
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 40
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Observable",
"range": [
118,
128
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 19
}
}
},
"imported": {
"type": "Identifier",
"name": "Observable",
"range": [
118,
128
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 19
}
}
},
"range": [
118,
128
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 19
}
}
}
],
"source": {
"type": "Literal",
"value": "../Observable",
"raw": "'../Observable'",
"range": [
136,
151
],
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 42
}
}
},
"range": [
109,
152
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 43
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "$$iterator",
"range": [
162,
172
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 19
}
}
},
"imported": {
"type": "Identifier",
"name": "$$iterator",
"range": [
162,
172
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 19
}
}
},
"range": [
162,
172
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 19
}
}
}
],
"source": {
"type": "Literal",
"value": "../symbol/iterator",
"raw": "'../symbol/iterator'",
"range": [
180,
200
],
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 47
}
}
},
"range": [
153,
201
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 48
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "InnerSubscriber",
"range": [
211,
226
],
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "InnerSubscriber",
"range": [
211,
226
],
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 24
}
}
},
"range": [
211,
226
],
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "../InnerSubscriber",
"raw": "'../InnerSubscriber'",
"range": [
234,
254
],
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 6,
"column": 52
}
}
},
"range": [
202,
255
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 53
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "$$observable",
"range": [
265,
277
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
}
}
},
"imported": {
"type": "Identifier",
"name": "$$observable",
"range": [
265,
277
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
}
}
},
"range": [
265,
277
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
}
}
}
],
"source": {
"type": "Literal",
"value": "../symbol/observable",
"raw": "'../symbol/observable'",
"range": [
285,
307
],
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 51
}
}
},
"range": [
256,
308
],
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 52
}
}
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
325,
342
],
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 33
}
}
},
"params": [
{
"type": "Identifier",
"name": "outerSubscriber",
"range": [
343,
358
],
"loc": {
"start": {
"line": 8,
"column": 34
},
"end": {
"line": 8,
"column": 49
}
}
},
{
"type": "Identifier",
"name": "result",
"range": [
360,
366
],
"loc": {
"start": {
"line": 8,
"column": 51
},
"end": {
"line": 8,
"column": 57
}
}
},
{
"type": "Identifier",
"name": "outerValue",
"range": [
368,
378
],
"loc": {
"start": {
"line": 8,
"column": 59
},
"end": {
"line": 8,
"column": 69
}
}
},
{
"type": "Identifier",
"name": "outerIndex",
"range": [
380,
390
],
"loc": {
"start": {
"line": 8,
"column": 71
},
"end": {
"line": 8,
"column": 81
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "destination",
"range": [
402,
413
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 19
}
}
},
"init": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "InnerSubscriber",
"range": [
420,
435
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 41
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "outerSubscriber",
"range": [
436,
451
],
"loc": {
"start": {
"line": 9,
"column": 42
},
"end": {
"line": 9,
"column": 57
}
}
},
{
"type": "Identifier",
"name": "outerValue",
"range": [
453,
463
],
"loc": {
"start": {
"line": 9,
"column": 59
},
"end": {
"line": 9,
"column": 69
}
}
},
{
"type": "Identifier",
"name": "outerIndex",
"range": [
465,
475
],
"loc": {
"start": {
"line": 9,
"column": 71
},
"end": {
"line": 9,
"column": 81
}
}
}
],
"range": [
416,
476
],
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 9,
"column": 82
}
}
},
"range": [
402,
476
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 82
}
}
}
],
"kind": "var",
"range": [
398,
477
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 83
}
}
},
{
"type": "IfStatement",
"test": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "destination",
"range": [
486,
497
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "closed",
"range": [
498,
504
],
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 26
}
}
},
"range": [
486,
504
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 26
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "Literal",
"value": null,
"raw": "null",
"range": [
523,
527
],
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 11,
"column": 19
}
}
},
"range": [
516,
528
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 20
}
}
}
],
"range": [
506,
534
],
"loc": {
"start": {
"line": 10,
"column": 28
},
"end": {
"line": 12,
"column": 5
}
}
},
"alternate": null,
"range": [
482,
534
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 12,
"column": 5
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "instanceof",
"left": {
"type": "Identifier",
"name": "result",
"range": [
543,
549
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 14
}
}
},
"right": {
"type": "Identifier",
"name": "Observable",
"range": [
561,
571
],
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 36
}
}
},
"range": [
543,
571
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 36
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "result",
"range": [
587,
593
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "_isScalar",
"range": [
594,
603
],
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 28
}
}
},
"range": [
587,
603
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 28
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "destination",
"range": [
619,
630
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "next",
"range": [
631,
635
],
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 28
}
}
},
"range": [
619,
635
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 28
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "result",
"range": [
636,
642
],
"loc": {
"start": {
"line": 15,
"column": 29
},
"end": {
"line": 15,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "value",
"range": [
643,
648
],
"loc": {
"start": {
"line": 15,
"column": 36
},
"end": {
"line": 15,
"column": 41
}
}
},
"range": [
636,
648
],
"loc": {
"start": {
"line": 15,
"column": 29
},
"end": {
"line": 15,
"column": 41
}
}
}
],
"range": [
619,
649
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 42
}
}
},
"range": [
619,
650
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 43
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "destination",
"range": [
663,
674
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "complete",
"range": [
675,
683
],
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 32
}
}
},
"range": [
663,
683
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 32
}
}
},
"arguments": [],
"range": [
663,
685
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 34
}
}
},
"range": [
663,
686
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 35
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Literal",
"value": null,
"raw": "null",
"range": [
706,
710
],
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 23
}
}
},
"range": [
699,
711
],
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 24
}
}
}
],
"range": [
605,
721
],
"loc": {
"start": {
"line": 14,
"column": 30
},
"end": {
"line": 18,
"column": 9
}
}
},
"alternate": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "result",
"range": [
756,
762
],
"loc": {
"start": {
"line": 20,
"column": 19
},
"end": {
"line": 20,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "subscribe",
"range": [
763,
772
],
"loc": {
"start": {
"line": 20,
"column": 26
},
"end": {
"line": 20,
"column": 35
}
}
},
"range": [
756,
772
],
"loc": {
"start": {
"line": 20,
"column": 19
},
"end": {
"line": 20,
"column": 35
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "destination",
"range": [
773,
784
],
"loc": {
"start": {
"line": 20,
"column": 36
},
"end": {
"line": 20,
"column": 47
}
}
}
],
"range": [
756,
785
],
"loc": {
"start": {
"line": 20,
"column": 19
},
"end": {
"line": 20,
"column": 48
}
}
},
"range": [
749,
786
],
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 49
}
}
}
],
"range": [
735,
796
],
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 21,
"column": 9
}
}
},
"range": [
583,
796
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 21,
"column": 9
}
}
}
],
"range": [
573,
802
],
"loc": {
"start": {
"line": 13,
"column": 38
},
"end": {
"line": 22,
"column": 5
}
}
},
"alternate": null,
"range": [
539,
802
],
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 22,
"column": 5
}
}
},
{
"type": "IfStatement",
"test": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "isArray",
"range": [
811,
818
],
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 15
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "result",
"range": [
819,
825
],
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 23,
"column": 22
}
}
}
],
"range": [
811,
826
],
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 23
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ForStatement",
"init": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "i",
"range": [
847,
848
],
"loc": {
"start": {
"line": 24,
"column": 17
},
"end": {
"line": 24,
"column": 18
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
851,
852
],
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 22
}
}
},
"range": [
847,
852
],
"loc": {
"start": {
"line": 24,
"column": 17
},
"end": {
"line": 24,
"column": 22
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "len",
"range": [
854,
857
],
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 27
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "result",
"range": [
860,
866
],
"loc": {
"start": {
"line": 24,
"column": 30
},
"end": {
"line": 24,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
867,
873
],
"loc": {
"start