@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,734 lines (1,733 loc) • 178 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": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "dispatch",
"range": [
53,
61
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 17
}
}
},
"params": [
{
"type": "Identifier",
"name": "state",
"range": [
62,
67
],
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 23
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "obj",
"range": [
79,
82
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 11
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "state",
"range": [
85,
90
],
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "obj",
"range": [
91,
94
],
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 23
}
}
},
"range": [
85,
94
],
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 23
}
}
},
"range": [
79,
94
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 23
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "keys",
"range": [
96,
100
],
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 29
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "state",
"range": [
103,
108
],
"loc": {
"start": {
"line": 3,
"column": 32
},
"end": {
"line": 3,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"name": "keys",
"range": [
109,
113
],
"loc": {
"start": {
"line": 3,
"column": 38
},
"end": {
"line": 3,
"column": 42
}
}
},
"range": [
103,
113
],
"loc": {
"start": {
"line": 3,
"column": 32
},
"end": {
"line": 3,
"column": 42
}
}
},
"range": [
96,
113
],
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 42
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "length",
"range": [
115,
121
],
"loc": {
"start": {
"line": 3,
"column": 44
},
"end": {
"line": 3,
"column": 50
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "state",
"range": [
124,
129
],
"loc": {
"start": {
"line": 3,
"column": 53
},
"end": {
"line": 3,
"column": 58
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
130,
136
],
"loc": {
"start": {
"line": 3,
"column": 59
},
"end": {
"line": 3,
"column": 65
}
}
},
"range": [
124,
136
],
"loc": {
"start": {
"line": 3,
"column": 53
},
"end": {
"line": 3,
"column": 65
}
}
},
"range": [
115,
136
],
"loc": {
"start": {
"line": 3,
"column": 44
},
"end": {
"line": 3,
"column": 65
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "index",
"range": [
138,
143
],
"loc": {
"start": {
"line": 3,
"column": 67
},
"end": {
"line": 3,
"column": 72
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "state",
"range": [
146,
151
],
"loc": {
"start": {
"line": 3,
"column": 75
},
"end": {
"line": 3,
"column": 80
}
}
},
"property": {
"type": "Identifier",
"name": "index",
"range": [
152,
157
],
"loc": {
"start": {
"line": 3,
"column": 81
},
"end": {
"line": 3,
"column": 86
}
}
},
"range": [
146,
157
],
"loc": {
"start": {
"line": 3,
"column": 75
},
"end": {
"line": 3,
"column": 86
}
}
},
"range": [
138,
157
],
"loc": {
"start": {
"line": 3,
"column": 67
},
"end": {
"line": 3,
"column": 86
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "subscriber",
"range": [
159,
169
],
"loc": {
"start": {
"line": 3,
"column": 88
},
"end": {
"line": 3,
"column": 98
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "state",
"range": [
172,
177
],
"loc": {
"start": {
"line": 3,
"column": 101
},
"end": {
"line": 3,
"column": 106
}
}
},
"property": {
"type": "Identifier",
"name": "subscriber",
"range": [
178,
188
],
"loc": {
"start": {
"line": 3,
"column": 107
},
"end": {
"line": 3,
"column": 117
}
}
},
"range": [
172,
188
],
"loc": {
"start": {
"line": 3,
"column": 101
},
"end": {
"line": 3,
"column": 117
}
}
},
"range": [
159,
188
],
"loc": {
"start": {
"line": 3,
"column": 88
},
"end": {
"line": 3,
"column": 117
}
}
}
],
"kind": "var",
"range": [
75,
189
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 118
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "index",
"range": [
198,
203
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 13
}
}
},
"right": {
"type": "Identifier",
"name": "length",
"range": [
208,
214
],
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 24
}
}
},
"range": [
198,
214
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "subscriber",
"range": [
226,
236
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "complete",
"range": [
237,
245
],
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 27
}
}
},
"range": [
226,
245
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 27
}
}
},
"arguments": [],
"range": [
226,
247
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 29
}
}
},
"range": [
226,
248
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 30
}
}
},
{
"type": "ReturnStatement",
"argument": null,
"range": [
257,
264
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 15
}
}
}
],
"range": [
216,
270
],
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 7,
"column": 5
}
}
},
"alternate": null,
"range": [
194,
270
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 7,
"column": 5
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "key",
"range": [
279,
282
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 11
}
}
},
"init": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "keys",
"range": [
285,
289
],
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "index",
"range": [
290,
295
],
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 24
}
}
},
"range": [
285,
296
],
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 25
}
}
},
"range": [
279,
296
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 25
}
}
}
],
"kind": "var",
"range": [
275,
297
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "subscriber",
"range": [
302,
312
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "next",
"range": [
313,
317
],
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 19
}
}
},
"range": [
302,
317
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 19
}
}
},
"arguments": [
{
"type": "ArrayExpression",
"elements": [
{
"type": "Identifier",
"name": "key",
"range": [
319,
322
],
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 24
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "obj",
"range": [
324,
327
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"name": "key",
"range": [
328,
331
],
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 33
}
}
},
"range": [
324,
332
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 34
}
}
}
],
"range": [
318,
333
],
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 35
}
}
}
],
"range": [
302,
334
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 36
}
}
},
"range": [
302,
335
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 37
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "state",
"range": [
340,
345
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 9
}
}
},
"property": {
"type": "Identifier",
"name": "index",
"range": [
346,
351
],
"loc": {
"start": {
"line": 10,
"column": 10
},
"end": {
"line": 10,
"column": 15
}
}
},
"range": [
340,
351
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 15
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Identifier",
"name": "index",
"range": [
354,
359
],
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 23
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
362,
363
],
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 27
}
}
},
"range": [
354,
363
],
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 27
}
}
},
"range": [
340,
363
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 27
}
}
},
"range": [
340,
364
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 28
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
369,
373
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"name": "schedule",
"range": [
374,
382
],
"loc": {
"start": {
"line": 11,
"column": 9
},
"end": {
"line": 11,
"column": 17
}
}
},
"range": [
369,
382
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 17
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "state",
"range": [
383,
388
],
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 23
}
}
}
],
"range": [
369,
389
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 24
}
}
},
"range": [
369,
390
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 25
}
}
}
],
"range": [
69,
392
],
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 12,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
44,
392
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 12,
"column": 1
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ",
"range": [
393,
487
],
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "PairsObservable",
"range": [
499,
514
],
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 18,
"column": 26
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
528,
534
],
"loc": {
"start": {
"line": 18,
"column": 40
},
"end": {
"line": 18,
"column": 46
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
542,
551
],
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "PairsObservable",
"range": [
552,
567
],
"loc": {
"start": {
"line": 19,
"column": 14
},
"end": {
"line": 19,
"column": 29
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
569,
575
],
"loc": {
"start": {
"line": 19,
"column": 31
},
"end": {
"line": 19,
"column": 37
}
}
}
],
"range": [
542,
576
],
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 38
}
}
},
"range": [
542,
577
],
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 39
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "PairsObservable",
"range": [
591,
606
],
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 28
}
}
},
"params": [
{
"type": "Identifier",
"name": "obj",
"range": [
607,
610
],
"loc": {
"start": {
"line": 20,
"column": 29
},
"end": {
"line": 20,
"column": 32
}
}
},
{
"type": "Identifier",
"name": "scheduler",
"range": [
612,
621
],
"loc": {
"start": {
"line": 20,
"column": 34
},
"end": {
"line": 20,
"column": 43
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
633,
639
],
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
640,
644
],
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 19
}
}
},
"range": [
633,
644
],
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
645,
649
],
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 24
}
}
}
],
"range": [
633,
650
],
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 25
}
}
},
"range": [
633,
651
],
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
660,
664
],
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "obj",