@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,207 lines (1,206 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": "AnimationFrameScheduler",
"range": [
62,
85
],
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 34
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
99,
105
],
"loc": {
"start": {
"line": 2,
"column": 48
},
"end": {
"line": 2,
"column": 54
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
113,
122
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "AnimationFrameScheduler",
"range": [
123,
146
],
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 37
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
148,
154
],
"loc": {
"start": {
"line": 3,
"column": 39
},
"end": {
"line": 3,
"column": 45
}
}
}
],
"range": [
113,
155
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 46
}
}
},
"range": [
113,
156
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 47
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "AnimationFrameScheduler",
"range": [
170,
193
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 36
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
206,
212
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "apply",
"range": [
213,
218
],
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 20
}
}
},
"range": [
206,
218
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 20
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
219,
223
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
}
}
},
{
"type": "Identifier",
"name": "arguments",
"range": [
225,
234
],
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 36
}
}
}
],
"range": [
206,
235
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 37
}
}
},
"range": [
206,
236
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 38
}
}
}
],
"range": [
196,
242
],
"loc": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 6,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
161,
242
],
"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": "AnimationFrameScheduler",
"range": [
247,
270
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
271,
280
],
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 37
}
}
},
"range": [
247,
280
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"name": "flush",
"range": [
281,
286
],
"loc": {
"start": {
"line": 7,
"column": 38
},
"end": {
"line": 7,
"column": 43
}
}
},
"range": [
247,
286
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 43
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "action",
"range": [
299,
305
],
"loc": {
"start": {
"line": 7,
"column": 56
},
"end": {
"line": 7,
"column": 62
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
317,
321
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "active",
"range": [
322,
328
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 19
}
}
},
"range": [
317,
328
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 19
}
}
},
"right": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
331,
335
],
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
317,
335
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
317,
336
],
"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": [
345,
349
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "scheduled",
"range": [
350,
359
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 22
}
}
},
"range": [
345,
359
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 22
}
}
},
"right": {
"type": "Identifier",
"name": "undefined",
"range": [
362,
371
],
"loc": {
"start": {
"line": 9,
"column": 25
},
"end": {
"line": 9,
"column": 34
}
}
},
"range": [
345,
371
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 34
}
}
},
"range": [
345,
372
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "actions",
"range": [
385,
392
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 19
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
395,
399
],
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "actions",
"range": [
400,
407
],
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 34
}
}
},
"range": [
395,
407
],
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 34
}
}
},
"range": [
385,
407
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 34
}
}
}
],
"kind": "var",
"range": [
381,
408
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "error",
"range": [
421,
426
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
}
},
"init": null,
"range": [
421,
426
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
}
}
],
"kind": "var",
"range": [
417,
427
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 18
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "index",
"range": [
440,
445
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 17
}
}
},
"init": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
449,
450
],
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 22
}
}
},
"prefix": true,
"range": [
448,
450
],
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 22
}
}
},
"range": [
440,
450
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 22
}
}
}
],
"kind": "var",
"range": [
436,
451
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 23
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "count",
"range": [
464,
469
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 17
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "actions",
"range": [
472,
479
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
480,
486
],
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 34
}
}
},
"range": [
472,
486
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 34
}
}
},
"range": [
464,
486
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 34
}
}
}
],
"kind": "var",
"range": [
460,
487
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 35
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "action",
"range": [
496,
502
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 14
}
}
},
"right": {
"type": "LogicalExpression",
"operator": "||",
"left": {
"type": "Identifier",
"name": "action",
"range": [
505,
511
],
"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": [
515,
522
],
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "shift",
"range": [
523,
528
],
"loc": {
"start": {
"line": 14,
"column": 35
},
"end": {
"line": 14,
"column": 40
}
}
},
"range": [
515,