@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,079 lines (1,078 loc) • 184 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "root",
"range": [
9,
13
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 13
}
}
},
"imported": {
"type": "Identifier",
"name": "root",
"range": [
9,
13
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 13
}
}
},
"range": [
9,
13
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "./root",
"raw": "'./root'",
"range": [
21,
29
],
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 29
}
}
},
"range": [
0,
30
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "RequestAnimationFrameDefinition",
"range": [
42,
73
],
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 42
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "RequestAnimationFrameDefinition",
"range": [
104,
135
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 44
}
}
},
"params": [
{
"type": "Identifier",
"name": "root",
"range": [
136,
140
],
"loc": {
"start": {
"line": 3,
"column": 45
},
"end": {
"line": 3,
"column": 49
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
156,
160
],
"loc": {
"start": {
"line": 4,
"column": 12
},
"end": {
"line": 4,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "requestAnimationFrame",
"range": [
161,
182
],
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 38
}
}
},
"range": [
156,
182
],
"loc": {
"start": {
"line": 4,
"column": 12
},
"end": {
"line": 4,
"column": 38
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
198,
202
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "cancelAnimationFrame",
"range": [
203,
223
],
"loc": {
"start": {
"line": 5,
"column": 17
},
"end": {
"line": 5,
"column": 37
}
}
},
"range": [
198,
223
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 37
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
226,
230
],
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"name": "cancelAnimationFrame",
"range": [
231,
251
],
"loc": {
"start": {
"line": 5,
"column": 45
},
"end": {
"line": 5,
"column": 65
}
}
},
"range": [
226,
251
],
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 65
}
}
},
"property": {
"type": "Identifier",
"name": "bind",
"range": [
252,
256
],
"loc": {
"start": {
"line": 5,
"column": 66
},
"end": {
"line": 5,
"column": 70
}
}
},
"range": [
226,
256
],
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 70
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "root",
"range": [
257,
261
],
"loc": {
"start": {
"line": 5,
"column": 71
},
"end": {
"line": 5,
"column": 75
}
}
}
],
"range": [
226,
262
],
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 76
}
}
},
"range": [
198,
262
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 76
}
}
},
"range": [
198,
263
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 77
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
276,
280
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "requestAnimationFrame",
"range": [
281,
302
],
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 38
}
}
},
"range": [
276,
302
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 38
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
305,
309
],
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "requestAnimationFrame",
"range": [
310,
331
],
"loc": {
"start": {
"line": 6,
"column": 46
},
"end": {
"line": 6,
"column": 67
}
}
},
"range": [
305,
331
],
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 67
}
}
},
"property": {
"type": "Identifier",
"name": "bind",
"range": [
332,
336
],
"loc": {
"start": {
"line": 6,
"column": 68
},
"end": {
"line": 6,
"column": 72
}
}
},
"range": [
305,
336
],
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 72
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "root",
"range": [
337,
341
],
"loc": {
"start": {
"line": 6,
"column": 73
},
"end": {
"line": 6,
"column": 77
}
}
}
],
"range": [
305,
342
],
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 78
}
}
},
"range": [
276,
342
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 78
}
}
},
"range": [
276,
343
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 79
}
}
}
],
"range": [
184,
353
],
"loc": {
"start": {
"line": 4,
"column": 40
},
"end": {
"line": 7,
"column": 9
}
}
},
"alternate": {
"type": "IfStatement",
"test": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
371,
375
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "mozRequestAnimationFrame",
"range": [
376,
400
],
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 46
}
}
},
"range": [
371,
400
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 46
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
416,
420
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "cancelAnimationFrame",
"range": [
421,
441
],
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 37
}
}
},
"range": [
416,
441
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 37
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
444,
448
],
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"name": "mozCancelAnimationFrame",
"range": [
449,
472
],
"loc": {
"start": {
"line": 9,
"column": 45
},
"end": {
"line": 9,
"column": 68
}
}
},
"range": [
444,
472
],
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 68
}
}
},
"property": {
"type": "Identifier",
"name": "bind",
"range": [
473,
477
],
"loc": {
"start": {
"line": 9,
"column": 69
},
"end": {
"line": 9,
"column": 73
}
}
},
"range": [
444,
477
],
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 73
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "root",
"range": [
478,
482
],
"loc": {
"start": {
"line": 9,
"column": 74
},
"end": {
"line": 9,
"column": 78
}
}
}
],
"range": [
444,
483
],
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 79
}
}
},
"range": [
416,
483
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 79
}
}
},
"range": [
416,
484
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 80
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
497,
501
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "requestAnimationFrame",
"range": [
502,
523
],
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 38
}
}
},
"range": [
497,
523
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 38
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root",
"range": [
526,
530
],
"loc": {
"start": {
"line": 10,
"column": 41
},
"end": {
"line": 10,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "mozRequestAnimationFrame",
"range": [
531,
555
],
"loc": {
"start": {
"line": 10,
"column": 46
},
"end": {
"line": 10,
"column": 70
}
}
},
"range": [
526,
555
],
"loc": {
"start": {
"line": 10,
"column": 41
},
"end": {
"line": 10,
"column": 70
}
}
},
"property": {
"type": "Identifier",
"name": "bind",
"range": [
556,
560
],
"loc": {
"start": {
"line": 10,
"column": 71