UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,358 lines (1,357 loc) 194 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "isNumeric", "range": [ 9, 18 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } }, "imported": { "type": "Identifier", "name": "isNumeric", "range": [ 9, 18 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } }, "range": [ 9, 18 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } } ], "source": { "type": "Literal", "value": "../util/isNumeric", "raw": "'../util/isNumeric'", "range": [ 26, 45 ], "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 45 } } }, "range": [ 0, 46 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 46 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Observable", "range": [ 56, 66 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } }, "imported": { "type": "Identifier", "name": "Observable", "range": [ 56, 66 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } }, "range": [ 56, 66 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } } ], "source": { "type": "Literal", "value": "../Observable", "raw": "'../Observable'", "range": [ 74, 89 ], "loc": { "start": { "line": 2, "column": 27 }, "end": { "line": 2, "column": 42 } } }, "range": [ 47, 90 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 43 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "async", "range": [ 100, 105 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 14 } } }, "imported": { "type": "Identifier", "name": "async", "range": [ 100, 105 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 14 } } }, "range": [ 100, 105 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 14 } } } ], "source": { "type": "Literal", "value": "../scheduler/async", "raw": "'../scheduler/async'", "range": [ 113, 133 ], "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 3, "column": 42 } } }, "range": [ 91, 134 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 43 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ", "range": [ 135, 229 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "IntervalObservable", "range": [ 241, 259 ], "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 29 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 273, 279 ], "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 49 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 287, 296 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "IntervalObservable", "range": [ 297, 315 ], "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 32 } } }, { "type": "Identifier", "name": "_super", "range": [ 317, 323 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 40 } } } ], "range": [ 287, 324 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 41 } } }, "range": [ 287, 325 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 42 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "IntervalObservable", "range": [ 339, 357 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 31 } } }, "params": [ { "type": "Identifier", "name": "period", "range": [ 358, 364 ], "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 38 } } }, { "type": "Identifier", "name": "scheduler", "range": [ 366, 375 ], "loc": { "start": { "line": 11, "column": 40 }, "end": { "line": 11, "column": 49 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "period", "range": [ 391, 397 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 18 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 407, 408 ], "loc": { "start": { "line": 12, "column": 28 }, "end": { "line": 12, "column": 29 } } }, "prefix": true, "range": [ 402, 408 ], "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 29 } } }, "range": [ 391, 408 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 29 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "period", "range": [ 412, 418 ], "loc": { "start": { "line": 12, "column": 33 }, "end": { "line": 12, "column": 39 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 421, 422 ], "loc": { "start": { "line": 12, "column": 42 }, "end": { "line": 12, "column": 43 } } }, "range": [ 412, 422 ], "loc": { "start": { "line": 12, "column": 33 }, "end": { "line": 12, "column": 43 } } }, "range": [ 412, 423 ], "loc": { "start": { "line": 12, "column": 33 }, "end": { "line": 12, "column": 44 } } } ], "range": [ 410, 425 ], "loc": { "start": { "line": 12, "column": 31 }, "end": { "line": 12, "column": 46 } } }, "alternate": null, "range": [ 387, 425 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 46 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "scheduler", "range": [ 438, 447 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 21 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 457, 458 ], "loc": { "start": { "line": 13, "column": 31 }, "end": { "line": 13, "column": 32 } } }, "prefix": true, "range": [ 452, 458 ], "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 32 } } }, "range": [ 438, 458 ], "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": [ 462, 471 ], "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 45 } } }, "right": { "type": "Identifier", "name": "async", "range": [ 474, 479 ], "loc": { "start": { "line": 13, "column": 48 }, "end": { "line": 13, "column": 53 } } }, "range": [ 462, 479 ], "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 53 } } }, "range": [ 462, 480 ], "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 54 } } } ], "range": [ 460, 482 ], "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 56 } } }, "alternate": null, "range": [ 434, 482 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 56 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 491, 497 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 498, 502 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 19 } } }, "range": [ 491, 502 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 503, 507 ], "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 24 } } } ], "range": [ 491, 508 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 25 } } }, "range": [ 491, 509 ], "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": [ 518, 522 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "period", "range": [ 523, 529 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 19 } } }, "range": [ 518, 529 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 19 } } }, "right": { "type": "Identifier", "name": "period", "range": [ 532, 538 ], "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 28 } } }, "range": [ 518, 538 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 28 } } }, "range": [ 518, 539 ], "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": [ 548, 552 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "name": "scheduler", "range": [ 553, 562 ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 22 } } }, "range": [ 548, 562 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 22 } } }, "right": { "type": "Identifier", "name": "scheduler", "range": [ 565, 574 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 } } }, "range": [ 548, 574 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 34 } } }, "range": [ 548, 575 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 35 } } }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "||", "left": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "isNumeric", "range": [ 589, 598 ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 22 } } }, "arguments": [ { "type": "Identifier", "name": "period", "range": [ 599, 605 ], "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 29 } } } ], "range": [ 589, 606 ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 30 } } }, "prefix": true, "range": [ 588, 606 ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 30 } } }, "right": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "period", "range": [ 610, 616 ], "loc": { "start": { "line": 17, "column": 34 }, "end": { "line": 17, "column": 40 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 619, 620 ], "loc": { "start": { "line": 17, "column": 43 }, "end": { "line": 17, "column": 44 } } }, "range": [ 610, 620 ], "loc": { "start": { "line": 17, "column": 34 }, "end": { "line": 17, "column": 44 } } }, "range": [ 588, 620 ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 44 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 636, 640 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18,