@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,228 lines (1,227 loc) • 173 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "AsyncAction",
"range": [
9,
20
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 20
}
}
},
"imported": {
"type": "Identifier",
"name": "AsyncAction",
"range": [
9,
20
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 20
}
}
},
"range": [
9,
20
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 20
}
}
}
],
"source": {
"type": "Literal",
"value": "./AsyncAction",
"raw": "'./AsyncAction'",
"range": [
28,
43
],
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 43
}
}
},
"range": [
0,
44
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
45,
136
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "QueueAction",
"range": [
148,
159
],
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 22
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
173,
179
],
"loc": {
"start": {
"line": 7,
"column": 36
},
"end": {
"line": 7,
"column": 42
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
187,
196
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "QueueAction",
"range": [
197,
208
],
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 25
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
210,
216
],
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 33
}
}
}
],
"range": [
187,
217
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 34
}
}
},
"range": [
187,
218
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 35
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "QueueAction",
"range": [
232,
243
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 24
}
}
},
"params": [
{
"type": "Identifier",
"name": "scheduler",
"range": [
244,
253
],
"loc": {
"start": {
"line": 9,
"column": 25
},
"end": {
"line": 9,
"column": 34
}
}
},
{
"type": "Identifier",
"name": "work",
"range": [
255,
259
],
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 40
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
271,
277
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
278,
282
],
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 19
}
}
},
"range": [
271,
282
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
283,
287
],
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 24
}
}
},
{
"type": "Identifier",
"name": "scheduler",
"range": [
289,
298
],
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 35
}
}
},
{
"type": "Identifier",
"name": "work",
"range": [
300,
304
],
"loc": {
"start": {
"line": 10,
"column": 37
},
"end": {
"line": 10,
"column": 41
}
}
}
],
"range": [
271,
305
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 42
}
}
},
"range": [
271,
306
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 43
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
315,
319
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "scheduler",
"range": [
320,
329
],
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 22
}
}
},
"range": [
315,
329
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 22
}
}
},
"right": {
"type": "Identifier",
"name": "scheduler",
"range": [
332,
341
],
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 11,
"column": 34
}
}
},
"range": [
315,
341
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 34
}
}
},
"range": [
315,
342
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 35
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
351,
355
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "work",
"range": [
356,
360
],
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 17
}
}
},
"range": [
351,
360
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 17
}
}
},
"right": {
"type": "Identifier",
"name": "work",
"range": [
363,
367
],
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 24
}
}
},
"range": [
351,
367
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 24
}
}
},
"range": [
351,
368
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 25
}
}
}
],
"range": [
261,
374
],
"loc": {
"start": {
"line": 9,
"column": 42
},
"end": {
"line": 13,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
223,
374
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "QueueAction",
"range": [
379,
390
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
391,
400
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 25
}
}
},
"range": [
379,
400
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "schedule",
"range": [
401,
409
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 34
}
}
},
"range": [
379,
409
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 34
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "state",
"range": [
422,
427
],
"loc": {
"start": {
"line": 14,
"column": 47
},
"end": {
"line": 14,
"column": 52
}
}
},
{
"type": "Identifier",
"name": "delay",
"range": [
429,
434
],
"loc": {
"start": {
"line": 14,
"column": 54
},
"end": {
"line": 14,
"column": 59
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
450,
455
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 17
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "void",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
465,
466
],
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 28
}
}
},
"prefix": true,
"range": [
460,
466
],
"loc": {
"start": {
"line": 15,
"column": 22
},
"end": {
"line": 15,
"column": 28
}
}
},
"range": [
450,
466
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 28
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
470,
475
],
"loc": {
"start": {
"line": 15,
"column": 32
},
"end": {
"line": 15,
"column": 37
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
478,
479
],
"loc": {
"start": {
"line": 15,
"column": 40
},
"end": {
"line": 15,
"column": 41
}
}
},
"range": [
470,
479
],
"loc": {
"start": {
"line": 15,
"column": 32
},
"end": {
"line": 15,
"column": 41
}
}
},
"range": [
470,
480
],
"loc": {
"start": {
"line": 15,
"column": 32
},
"end": {
"line": 15,
"column": 42
}
}
}
],
"range": [
468,
482
],
"loc": {
"start": {
"line": 15,
"column": 30
},
"end": {
"line": 15,
"column": 44
}
}
},
"alternate": null,
"range": [
446,
482
],
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 44
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": ">",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
495,
500
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 17
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
503,
504
],
"loc": {
"start": {
"line": 16,
"column": 20
},
"end": {
"line": 16,
"column": 21
}
}
},
"range": [
495,
504
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 21
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
527,
533
],
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
534,
543
],
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 35
}
}
},
"range": [
527,
543
],
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "schedule",
"range": [
544,
552
],
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 44
}
}
},
"range": [
527,
552
],
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
553,
557
],
"loc": {
"start": {
"line": 17,
"column": 45
},
"end": {
"line": 17,
"column": 49
}
}
},
"range": [
527,
557
],
"loc": {
"start": {
"line": 17,
"column": 19
},
"end": {
"line": 17,
"column": 49
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
558,
562
],
"loc": {
"start": {