@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,140 lines (1,139 loc) • 957 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "root",
"range": [
90,
94
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 13
}
}
},
"imported": {
"type": "Identifier",
"name": "root",
"range": [
90,
94
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 13
}
}
},
"range": [
90,
94
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "./root",
"raw": "'./root'",
"range": [
102,
110
],
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 29
}
}
},
"range": [
81,
111
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 30
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\nSome credit for this helper goes to http://github.com/YuzuJS/setImmediate\n",
"range": [
0,
80
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 2
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "ImmediateDefinition",
"range": [
123,
142
],
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 30
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "ImmediateDefinition",
"range": [
173,
192
],
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 32
}
}
},
"params": [
{
"type": "Identifier",
"name": "root",
"range": [
193,
197
],
"loc": {
"start": {
"line": 6,
"column": 33
},
"end": {
"line": 6,
"column": 37
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
209,
213
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
214,
218
],
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 17
}
}
},
"range": [
209,
218
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 17
}
}
},
"right": {
"type": "Identifier",
"name": "root",
"range": [
221,
225
],
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 24
}
}
},
"range": [
209,
225
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
}
},
"range": [
209,
226
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 25
}
}
},
{
"type": "IfStatement",
"test": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
239,
243
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "setImmediate",
"range": [
244,
256
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 29
}
}
},
"range": [
239,
256
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 29
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "UnaryExpression",
"operator": "typeof",
"argument": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
267,
271
],
"loc": {
"start": {
"line": 8,
"column": 40
},
"end": {
"line": 8,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"name": "setImmediate",
"range": [
272,
284
],
"loc": {
"start": {
"line": 8,
"column": 45
},
"end": {
"line": 8,
"column": 57
}
}
},
"range": [
267,
284
],
"loc": {
"start": {
"line": 8,
"column": 40
},
"end": {
"line": 8,
"column": 57
}
}
},
"prefix": true,
"range": [
260,
284
],
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 57
}
}
},
"right": {
"type": "Literal",
"value": "function",
"raw": "'function'",
"range": [
289,
299
],
"loc": {
"start": {
"line": 8,
"column": 62
},
"end": {
"line": 8,
"column": 72
}
}
},
"range": [
260,
299
],
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 72
}
}
},
"range": [
239,
299
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 72
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
315,
319
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "setImmediate",
"range": [
320,
332
],
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 29
}
}
},
"range": [
315,
332
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 29
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
335,
339
],
"loc": {
"start": {
"line": 9,
"column": 32
},
"end": {
"line": 9,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "setImmediate",
"range": [
340,
352
],
"loc": {
"start": {
"line": 9,
"column": 37
},
"end": {
"line": 9,
"column": 49
}
}
},
"range": [
335,
352
],
"loc": {
"start": {
"line": 9,
"column": 32
},
"end": {
"line": 9,
"column": 49
}
}
},
"property": {
"type": "Identifier",
"name": "bind",
"range": [
353,
357
],
"loc": {
"start": {
"line": 9,
"column": 50
},
"end": {
"line": 9,
"column": 54
}
}
},
"range": [
335,
357
],
"loc": {
"start": {
"line": 9,
"column": 32
},
"end": {
"line": 9,
"column": 54
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "root",
"range": [
358,
362
],
"loc": {
"start": {
"line": 9,
"column": 55
},
"end": {
"line": 9,
"column": 59
}
}
}
],
"range": [
335,
363
],
"loc": {
"start": {
"line": 9,
"column": 32
},
"end": {
"line": 9,
"column": 60
}
}
},
"range": [
315,
363
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 60
}
}
},
"range": [
315,
364
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 61
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
377,
381
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "clearImmediate",
"range": [
382,
396
],
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 31
}
}
},
"range": [
377,
396
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 31
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
399,
403
],
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"name": "clearImmediate",
"range": [
404,
418
],
"loc": {
"start": {
"line": 10,
"column": 39
},
"end": {
"line": 10,
"column": 53
}
}
},
"range": [
399,
418
],
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 53
}
}
},
"property": {
"type": "Identifier",
"name": "bind",
"range": [
419,
423
],
"loc": {
"start": {
"line": 10,
"column": 54
},
"end": {
"line": 10,
"column": 58
}
}
},
"range": [
399,
423
],
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 58
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "root",
"range": [
424,
428
],
"loc": {
"start": {
"line": 10,
"column": 59
},
"end": {
"line": 10,
"column": 63
}
}
}
],
"range": [
399,
429
],
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 64
}
}
},
"range": [
377,
429
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 64
}
}
},
"range": [
377,
430
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 65
}
}
}
],
"range": [
301,
440
],
"loc": {
"start": {
"line": 8,
"column": 74
},
"end": {
"line": 11,
"column": 9
}
}
},
"alternate": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
468,
472
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "nextHandle",
"range": [
473,
483
],
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 27
}
}
},
"range": [
468,
483
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 27
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
486,
487
],
"loc": {
"start": {
"line": 13,
"column": 30
},
"end": {
"line": 13,
"column": 31
}
}
},
"range": [
468,
487
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 31
}
}
},
"range": [
468,
488
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 32
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
501,
505
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "tasksByHandle",
"range": [
506,
519
],
"loc": {
"start": {
"line": 14,
"column": 17
},
"end": {
"line": 14,
"column": 30
}
}
},
"range": [
501,
519
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 30
}
}
},
"right": {
"type": "ObjectExpression",
"properties": [],
"range": [
522,
524
],
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 35
}
}
},
"range": [
501,
524
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 35
}
}
},
"range": [
501,
525
],
"loc": {
"start": {
"line": 14,
"column": 12