UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,367 lines (1,366 loc) 169 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Observable", "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } }, "imported": { "type": "Identifier", "name": "Observable", "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } }, "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } } ], "source": { "type": "Literal", "value": "../Observable", "raw": "'../Observable'", "range": [ 27, 42 ], "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 42 } } }, "range": [ 0, 43 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 43 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "asap", "range": [ 53, 57 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } } }, "imported": { "type": "Identifier", "name": "asap", "range": [ 53, 57 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } } }, "range": [ 53, 57 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } } } ], "source": { "type": "Literal", "value": "../scheduler/asap", "raw": "'../scheduler/asap'", "range": [ 65, 84 ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 40 } } }, "range": [ 44, 85 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 41 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "isNumeric", "range": [ 95, 104 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } } }, "imported": { "type": "Identifier", "name": "isNumeric", "range": [ 95, 104 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } } }, "range": [ 95, 104 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } } } ], "source": { "type": "Literal", "value": "../util/isNumeric", "raw": "'../util/isNumeric'", "range": [ 112, 131 ], "loc": { "start": { "line": 3, "column": 26 }, "end": { "line": 3, "column": 45 } } }, "range": [ 86, 132 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 46 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ", "range": [ 133, 227 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SubscribeOnObservable", "range": [ 239, 260 ], "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 32 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 274, 280 ], "loc": { "start": { "line": 9, "column": 46 }, "end": { "line": 9, "column": 52 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 288, 297 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "SubscribeOnObservable", "range": [ 298, 319 ], "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 35 } } }, { "type": "Identifier", "name": "_super", "range": [ 321, 327 ], "loc": { "start": { "line": 10, "column": 37 }, "end": { "line": 10, "column": 43 } } } ], "range": [ 288, 328 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 44 } } }, "range": [ 288, 329 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 45 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "SubscribeOnObservable", "range": [ 343, 364 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 34 } } }, "params": [ { "type": "Identifier", "name": "source", "range": [ 365, 371 ], "loc": { "start": { "line": 11, "column": 35 }, "end": { "line": 11, "column": 41 } } }, { "type": "Identifier", "name": "delayTime", "range": [ 373, 382 ], "loc": { "start": { "line": 11, "column": 43 }, "end": { "line": 11, "column": 52 } } }, { "type": "Identifier", "name": "scheduler", "range": [ 384, 393 ], "loc": { "start": { "line": 11, "column": 54 }, "end": { "line": 11, "column": 63 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "delayTime", "range": [ 409, 418 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 21 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 428, 429 ], "loc": { "start": { "line": 12, "column": 31 }, "end": { "line": 12, "column": 32 } } }, "prefix": true, "range": [ 423, 429 ], "loc": { "start": { "line": 12, "column": 26 }, "end": { "line": 12, "column": 32 } } }, "range": [ 409, 429 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 32 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "delayTime", "range": [ 433, 442 ], "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 45 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 445, 446 ], "loc": { "start": { "line": 12, "column": 48 }, "end": { "line": 12, "column": 49 } } }, "range": [ 433, 446 ], "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 49 } } }, "range": [ 433, 447 ], "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 50 } } } ], "range": [ 431, 449 ], "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 52 } } }, "alternate": null, "range": [ 405, 449 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 52 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "scheduler", "range": [ 462, 471 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 21 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 481, 482 ], "loc": { "start": { "line": 13, "column": 31 }, "end": { "line": 13, "column": 32 } } }, "prefix": true, "range": [ 476, 482 ], "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 32 } } }, "range": [ 462, 482 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 32 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "scheduler", "range": [ 486, 495 ], "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 45 } } }, "right": { "type": "Identifier", "name": "asap", "range": [ 498, 502 ], "loc": { "start": { "line": 13, "column": 48 }, "end": { "line": 13, "column": 52 } } }, "range": [ 486, 502 ], "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 52 } } }, "range": [ 486, 503 ], "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 53 } } } ], "range": [ 484, 505 ], "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 55 } } }, "alternate": null, "range": [ 458, 505 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 55 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 514, 520 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 521, 525 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 19 } } }, "range": [ 514, 525 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 526, 530 ], "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 24 } } } ], "range": [ 514, 531 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 25 } } }, "range": [ 514, 532 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 541, 545 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "source", "range": [ 546, 552 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 19 } } }, "range": [ 541, 552 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 19 } } }, "right": { "type": "Identifier", "name": "source", "range": [ 555, 561 ], "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 28 } } }, "range": [ 541, 561 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 28 } } }, "range": [ 541, 562 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 571, 575 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "name": "delayTime", "range": [ 576, 585 ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 22 } } }, "range": [ 571, 585 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 22 } } }, "right": { "type": "Identifier", "name": "delayTime", "range": [ 588, 597 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 } } }, "range": [ 571, 597 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 34 } } }, "range": [ 571, 598 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 607, 611 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "name": "scheduler", "range": [ 612, 621 ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 22 } } }, "range": [ 607, 621 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 22 } } }, "right": { "type": "Identifier", "name": "scheduler", "range": [ 624, 633 ], "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 34 } } }, "range": [ 607, 633 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 34 } } }, "range": [ 607, 634 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 35 } } }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "||", "left": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "isNumeric", "range": [ 648, 657 ], "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 22 } } }, "arguments": [ { "type": "Identifier", "name": "delayTime", "range": [ 658, 667 ], "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 32 } } } ], "range": [ 648, 668 ], "loc": { "start": { "line": 18, "column": 13 }, "end": {