@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,303 lines • 191 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Immediate",
"range": [
9,
18
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
},
"imported": {
"type": "Identifier",
"name": "Immediate",
"range": [
9,
18
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
},
"range": [
9,
18
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/Immediate",
"raw": "'../util/Immediate'",
"range": [
26,
45
],
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 45
}
}
},
"range": [
0,
46
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "AsyncAction",
"range": [
56,
67
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
}
},
"imported": {
"type": "Identifier",
"name": "AsyncAction",
"range": [
56,
67
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
}
},
"range": [
56,
67
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
}
}
],
"source": {
"type": "Literal",
"value": "./AsyncAction",
"raw": "'./AsyncAction'",
"range": [
75,
90
],
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 43
}
}
},
"range": [
47,
91
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 44
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
92,
183
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "AsapAction",
"range": [
195,
205
],
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
219,
225
],
"loc": {
"start": {
"line": 8,
"column": 35
},
"end": {
"line": 8,
"column": 41
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
233,
242
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "AsapAction",
"range": [
243,
253
],
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 24
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
255,
261
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 32
}
}
}
],
"range": [
233,
262
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 33
}
}
},
"range": [
233,
263
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 34
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "AsapAction",
"range": [
277,
287
],
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 23
}
}
},
"params": [
{
"type": "Identifier",
"name": "scheduler",
"range": [
288,
297
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 33
}
}
},
{
"type": "Identifier",
"name": "work",
"range": [
299,
303
],
"loc": {
"start": {
"line": 10,
"column": 35
},
"end": {
"line": 10,
"column": 39
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
315,
321
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
322,
326
],
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 11,
"column": 19
}
}
},
"range": [
315,
326
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
327,
331
],
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 24
}
}
},
{
"type": "Identifier",
"name": "scheduler",
"range": [
333,
342
],
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 11,
"column": 35
}
}
},
{
"type": "Identifier",
"name": "work",
"range": [
344,
348
],
"loc": {
"start": {
"line": 11,
"column": 37
},
"end": {
"line": 11,
"column": 41
}
}
}
],
"range": [
315,
349
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 42
}
}
},
"range": [
315,
350
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 43
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
359,
363
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "scheduler",
"range": [
364,
373
],
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 22
}
}
},
"range": [
359,
373
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 22
}
}
},
"right": {
"type": "Identifier",
"name": "scheduler",
"range": [
376,
385
],
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 34
}
}
},
"range": [
359,
385
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 34
}
}
},
"range": [
359,
386
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 35
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
395,
399
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "work",
"range": [
400,
404
],
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 17
}
}
},
"range": [
395,
404
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 17
}
}
},
"right": {
"type": "Identifier",
"name": "work",
"range": [
407,
411
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 24
}
}
},
"range": [
395,
411
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 24
}
}
},
"range": [
395,
412
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 25
}
}
}
],
"range": [
305,
418
],
"loc": {
"start": {
"line": 10,
"column": 41
},
"end": {
"line": 14,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
268,
418
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "AsapAction",
"range": [
423,
433
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
434,
443
],
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 24
}
}
},
"range": [
423,
443
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "requestAsyncId",
"range": [
444,
458
],
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 39
}
}
},
"range": [
423,
458
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 39
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "scheduler",
"range": [
471,
480
],
"loc": {
"start": {
"line": 15,
"column": 52
},
"end": {
"line": 15,
"column": 61
}
}
},
{
"type": "Identifier",
"name": "id",
"range": [
482,
484
],
"loc": {
"start": {
"line": 15,
"column": 63
},
"end": {
"line": 15,
"column": 65
}
}
},
{
"type": "Identifier",
"name": "delay",
"range": [
486,
491
],
"loc": {
"start": {
"line": 15,
"column": 67
},
"end": {
"line": 15,
"column": 72
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
507,
512
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 17
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "void",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
522,
523
],
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 16,
"column": 28
}
}
},
"prefix": true,
"range": [
517,
523
],
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 28
}
}
},
"range": [
507,
523
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 28
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
527,
532
],
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 37
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
535,
536
],
"loc": {
"start": {
"line": 16,
"column": 40
},
"end": {
"line": 16,
"column": 41
}
}
},
"range": [
527,
536
],
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 41
}
}
},
"range": [
527,
537
],
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 42
}
}
}
],
"range": [
525,
539
],
"loc": {
"start": {
"line": 16,
"column": 30
},
"end": {
"line": 16,
"column": 44
}
}
},
"alternate": null,
"range": [
503,
539
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 44
}
},
"trailingComments": [
{
"type": "Line",
"value": " If delay is greater than 0, request as an async action.",
"range": [
548,
606
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 66
}
}
}
]
},
{
"type": "IfStatement",
"test": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "BinaryExpression",
"operator": "!==",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
619,
624
],
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 17
}
}
},
"right": {
"type": "Literal",
"value": null,
"raw": "null",
"range": [
629,
633
],
"loc": {
"start": {
"line": 18,
"column": 22
},
"end": {
"line": 18,
"column": 26
}
}
},
"range": [
619,
633
],
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 26
}
}
},
"right": {
"type": "BinaryExpression",
"operator": ">",
"left": {
"type": "Identifier",
"name": "delay",
"range": [
637,
642
],
"loc": {
"start": {
"line": 18,
"column": 30
},
"end": {
"line": 18,
"column": 35
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
645,
646
],
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 39
}
}
},
"range": [
637,
646
],
"loc": {
"start": {
"line": 18,
"column": 30
},
"end": {
"line": 18,
"column": 39
}
}
},
"range": [
619,
646
],
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 39
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": f