@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,208 lines (1,207 loc) • 114 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "AsyncScheduler",
"range": [
9,
23
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 23
}
}
},
"imported": {
"type": "Identifier",
"name": "AsyncScheduler",
"range": [
9,
23
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 23
}
}
},
"range": [
9,
23
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 23
}
}
}
],
"source": {
"type": "Literal",
"value": "./AsyncScheduler",
"raw": "'./AsyncScheduler'",
"range": [
31,
49
],
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 49
}
}
},
"range": [
0,
50
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
}
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "AsapScheduler",
"range": [
62,
75
],
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 24
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
89,
95
],
"loc": {
"start": {
"line": 2,
"column": 38
},
"end": {
"line": 2,
"column": 44
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
103,
112
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "AsapScheduler",
"range": [
113,
126
],
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 27
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
128,
134
],
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 3,
"column": 35
}
}
}
],
"range": [
103,
135
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 36
}
}
},
"range": [
103,
136
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 37
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "AsapScheduler",
"range": [
150,
163
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 26
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
176,
182
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "apply",
"range": [
183,
188
],
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 20
}
}
},
"range": [
176,
188
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 20
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
189,
193
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
}
}
},
{
"type": "Identifier",
"name": "arguments",
"range": [
195,
204
],
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 36
}
}
}
],
"range": [
176,
205
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 37
}
}
},
"range": [
176,
206
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 38
}
}
}
],
"range": [
166,
212
],
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 6,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
141,
212
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 6,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "AsapScheduler",
"range": [
217,
230
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
231,
240
],
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 27
}
}
},
"range": [
217,
240
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "flush",
"range": [
241,
246
],
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 33
}
}
},
"range": [
217,
246
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 33
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "action",
"range": [
259,
265
],
"loc": {
"start": {
"line": 7,
"column": 46
},
"end": {
"line": 7,
"column": 52
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
277,
281
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "active",
"range": [
282,
288
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 19
}
}
},
"range": [
277,
288
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 19
}
}
},
"right": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
291,
295
],
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
277,
295
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
277,
296
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 27
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
305,
309
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "scheduled",
"range": [
310,
319
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 22
}
}
},
"range": [
305,
319
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 22
}
}
},
"right": {
"type": "Identifier",
"name": "undefined",
"range": [
322,
331
],
"loc": {
"start": {
"line": 9,
"column": 25
},
"end": {
"line": 9,
"column": 34
}
}
},
"range": [
305,
331
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 34
}
}
},
"range": [
305,
332
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "actions",
"range": [
345,
352
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 19
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
355,
359
],
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "actions",
"range": [
360,
367
],
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 34
}
}
},
"range": [
355,
367
],
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 34
}
}
},
"range": [
345,
367
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 34
}
}
}
],
"kind": "var",
"range": [
341,
368
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "error",
"range": [
381,
386
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
}
},
"init": null,
"range": [
381,
386
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
}
}
],
"kind": "var",
"range": [
377,
387
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 18
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "index",
"range": [
400,
405
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 17
}
}
},
"init": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
409,
410
],
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 22
}
}
},
"prefix": true,
"range": [
408,
410
],
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 22
}
}
},
"range": [
400,
410
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 22
}
}
}
],
"kind": "var",
"range": [
396,
411
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 23
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "count",
"range": [
424,
429
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 17
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "actions",
"range": [
432,
439
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
440,
446
],
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 34
}
}
},
"range": [
432,
446
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 34
}
}
},
"range": [
424,
446
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 34
}
}
}
],
"kind": "var",
"range": [
420,
447
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 35
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "action",
"range": [
456,
462
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 14
}
}
},
"right": {
"type": "LogicalExpression",
"operator": "||",
"left": {
"type": "Identifier",
"name": "action",
"range": [
465,
471
],
"loc": {
"start": {
"line": 14,
"column": 17
},
"end": {
"line": 14,
"column": 23
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "actions",
"range": [
475,
482
],
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "shift",
"range": [
483,
488
],
"loc": {
"start": {
"line": 14,
"column": 35
},
"end": {
"line": 14,
"column": 40
}
}
},
"range": [
475,
488