UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,283 lines (1,282 loc) 357 kB
{ "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 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "AsyncScheduler", "range": [ 54, 68 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } }, "imported": { "type": "Identifier", "name": "AsyncScheduler", "range": [ 54, 68 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } }, "range": [ 54, 68 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } } ], "source": { "type": "Literal", "value": "./AsyncScheduler", "raw": "'./AsyncScheduler'", "range": [ 76, 94 ], "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 2, "column": 49 } } }, "range": [ 45, 95 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 50 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 107, 127 ], "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column": 31 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 141, 147 ], "loc": { "start": { "line": 3, "column": 45 }, "end": { "line": 3, "column": 51 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 155, 164 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 165, 185 ], "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 34 } } }, { "type": "Identifier", "name": "_super", "range": [ 187, 193 ], "loc": { "start": { "line": 4, "column": 36 }, "end": { "line": 4, "column": 42 } } } ], "range": [ 155, 194 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 43 } } }, "range": [ 155, 195 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 44 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 209, 229 ], "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 33 } } }, "params": [ { "type": "Identifier", "name": "SchedulerAction", "range": [ 230, 245 ], "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 5, "column": 49 } } }, { "type": "Identifier", "name": "maxFrames", "range": [ 247, 256 ], "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 60 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_this", "range": [ 272, 277 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 17 } } }, "init": { "type": "ThisExpression", "range": [ 280, 284 ], "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 24 } } }, "range": [ 272, 284 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 24 } } } ], "kind": "var", "range": [ 268, 285 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 25 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "SchedulerAction", "range": [ 298, 313 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 27 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 323, 324 ], "loc": { "start": { "line": 7, "column": 37 }, "end": { "line": 7, "column": 38 } } }, "prefix": true, "range": [ 318, 324 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 38 } } }, "range": [ 298, 324 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 38 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "SchedulerAction", "range": [ 328, 343 ], "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 57 } } }, "right": { "type": "Identifier", "name": "VirtualAction", "range": [ 346, 359 ], "loc": { "start": { "line": 7, "column": 60 }, "end": { "line": 7, "column": 73 } } }, "range": [ 328, 359 ], "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 73 } } }, "range": [ 328, 360 ], "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 74 } } } ], "range": [ 326, 362 ], "loc": { "start": { "line": 7, "column": 40 }, "end": { "line": 7, "column": 76 } } }, "alternate": null, "range": [ 294, 362 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 76 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "maxFrames", "range": [ 375, 384 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 21 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 394, 395 ], "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 32 } } }, "prefix": true, "range": [ 389, 395 ], "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 32 } } }, "range": [ 375, 395 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 32 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "maxFrames", "range": [ 399, 408 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 45 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Number", "range": [ 411, 417 ], "loc": { "start": { "line": 8, "column": 48 }, "end": { "line": 8, "column": 54 } } }, "property": { "type": "Identifier", "name": "POSITIVE_INFINITY", "range": [ 418, 435 ], "loc": { "start": { "line": 8, "column": 55 }, "end": { "line": 8, "column": 72 } } }, "range": [ 411, 435 ], "loc": { "start": { "line": 8, "column": 48 }, "end": { "line": 8, "column": 72 } } }, "range": [ 399, 435 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 72 } } }, "range": [ 399, 436 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 73 } } } ], "range": [ 397, 438 ], "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 75 } } }, "alternate": null, "range": [ 371, 438 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 75 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 447, 453 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 454, 458 ], "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 19 } } }, "range": [ 447, 458 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 459, 463 ], "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 24 } } }, { "type": "Identifier", "name": "SchedulerAction", "range": [ 465, 480 ], "loc": { "start": { "line": 9, "column": 26 }, "end": { "line": 9, "column": 41 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_this", "range": [ 503, 508 ], "loc": { "start": { "line": 9, "column": 64 }, "end": { "line": 9, "column": 69 } } }, "property": { "type": "Identifier", "name": "frame", "range": [ 509, 514 ], "loc": { "start": { "line": 9, "column": 70 }, "end": { "line": 9, "column": 75 } } }, "range": [ 503, 514 ], "loc": { "start": { "line": 9, "column": 64 }, "end": { "line": 9, "column": 75 } } }, "range": [ 496, 515 ], "loc": { "start": { "line": 9, "column": 57 }, "end": { "line": 9, "column": 76 } } } ], "range": [ 494, 517 ], "loc": { "start": { "line": 9, "column": 55 }, "end": { "line": 9, "column": 78 } } }, "generator": false, "expression": false, "range": [ 482, 517 ], "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 78 } } } ], "range": [ 447, 518 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 79 } } }, "range": [ 447, 519 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 80 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 528, 532 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "name": "maxFrames", "range": [ 533, 542 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 22 } } }, "range": [ 528, 542 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } } }, "right": { "type": "Identifier", "name": "maxFrames", "range": [ 545, 554 ], "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 34 } } }, "range": [ 528, 554 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } } }, "range": [ 528, 555 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 564, 568 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "name": "frame", "range": [ 569, 574 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 18 } } }, "range": [ 564, 574 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 18 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 577, 578 ], "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 22 } } }, "range": [ 564,