UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,210 lines 32.6 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Subscriber", "range": [ 9, 19 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 19 } } }, "imported": { "type": "Identifier", "name": "Subscriber", "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": "../Subscriber", "raw": "'../Subscriber'", "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": "$$rxSubscriber", "range": [ 53, 67 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } }, "imported": { "type": "Identifier", "name": "$$rxSubscriber", "range": [ 53, 67 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } }, "range": [ 53, 67 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } } ], "source": { "type": "Literal", "value": "../symbol/rxSubscriber", "raw": "'../symbol/rxSubscriber'", "range": [ 75, 99 ], "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 2, "column": 55 } } }, "range": [ 44, 100 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 56 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "emptyObserver", "range": [ 119, 132 ], "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 31 } } }, "imported": { "type": "Identifier", "name": "empty", "range": [ 110, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 14 } } }, "range": [ 110, 132 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 31 } } } ], "source": { "type": "Literal", "value": "../Observer", "raw": "'../Observer'", "range": [ 140, 153 ], "loc": { "start": { "line": 3, "column": 39 }, "end": { "line": 3, "column": 52 } } }, "range": [ 101, 154 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 53 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "toSubscriber", "range": [ 171, 183 ], "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 28 } } }, "params": [ { "type": "Identifier", "name": "nextOrObserver", "range": [ 184, 198 ], "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 43 } } }, { "type": "Identifier", "name": "error", "range": [ 200, 205 ], "loc": { "start": { "line": 4, "column": 45 }, "end": { "line": 4, "column": 50 } } }, { "type": "Identifier", "name": "complete", "range": [ 207, 215 ], "loc": { "start": { "line": 4, "column": 52 }, "end": { "line": 4, "column": 60 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "Identifier", "name": "nextOrObserver", "range": [ 227, 241 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 22 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "instanceof", "left": { "type": "Identifier", "name": "nextOrObserver", "range": [ 257, 271 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 26 } } }, "right": { "type": "Identifier", "name": "Subscriber", "range": [ 283, 293 ], "loc": { "start": { "line": 6, "column": 38 }, "end": { "line": 6, "column": 48 } } }, "range": [ 257, 293 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 48 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "nextOrObserver", "range": [ 316, 330 ], "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 33 } } }, "range": [ 309, 331 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 34 } } } ], "range": [ 295, 341 ], "loc": { "start": { "line": 6, "column": 50 }, "end": { "line": 8, "column": 9 } } }, "alternate": null, "range": [ 253, 341 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 8, "column": 9 } } }, { "type": "IfStatement", "test": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "nextOrObserver", "range": [ 354, 368 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 26 } } }, "property": { "type": "Identifier", "name": "$$rxSubscriber", "range": [ 369, 383 ], "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 9, "column": 41 } } }, "range": [ 354, 384 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 42 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "nextOrObserver", "range": [ 407, 421 ], "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 33 } } }, "property": { "type": "Identifier", "name": "$$rxSubscriber", "range": [ 422, 436 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 48 } } }, "range": [ 407, 437 ], "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 49 } } }, "arguments": [], "range": [ 407, 439 ], "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 51 } } }, "range": [ 400, 440 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 52 } } } ], "range": [ 386, 450 ], "loc": { "start": { "line": 9, "column": 44 }, "end": { "line": 11, "column": 9 } } }, "alternate": null, "range": [ 350, 450 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 11, "column": 9 } } } ], "range": [ 243, 456 ], "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 12, "column": 5 } } }, "alternate": null, "range": [ 223, 456 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 12, "column": 5 } } }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "nextOrObserver", "range": [ 466, 480 ], "loc": { "start": { "line": 13, "column": 9 }, "end": { "line": 13, "column": 23 } } }, "prefix": true, "range": [ 465, 480 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 23 } } }, "right": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "error", "range": [ 485, 490 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 13, "column": 33 } } }, "prefix": true, "range": [ 484, 490 ], "loc": { "start": { "line": 13, "column": 27 }, "end": { "line": 13, "column": 33 } } }, "range": [ 465, 490 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 33 } } }, "right": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "complete", "range": [ 495, 503 ], "loc": { "start": { "line": 13, "column": 38 }, "end": { "line": 13, "column": 46 } } }, "prefix": true, "range": [ 494, 503 ], "loc": { "start": { "line": 13, "column": 37 }, "end": { "line": 13, "column": 46 } } }, "range": [ 465, 503 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 46 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Subscriber", "range": [ 526, 536 ], "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 29 } } }, "arguments": [ { "type": "Identifier", "name": "emptyObserver", "range": [ 537, 550 ], "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 43 } } } ], "range": [ 522, 551 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 44 } } }, "range": [ 515, 552 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 45 } } } ], "range": [ 505, 558 ], "loc": { "start": { "line": 13, "column": 48 }, "end": { "line": 15, "column": 5 } } }, "alternate": null, "range": [ 461, 558 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 15, "column": 5 } } }, { "type": "ReturnStatement", "argument": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Subscriber", "range": [ 574, 584 ], "loc": { "start": { "line": 16, "column": 15 }, "end": { "line": 16, "column": 25 } } }, "arguments": [ { "type": "Identifier", "name": "nextOrObserver", "range": [ 585, 599 ], "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 40 } } }, { "type": "Identifier", "name": "error", "range": [ 601, 606 ], "loc": { "start": { "line": 16, "column": 42 }, "end": { "line": 16, "column": 47 } } }, { "type": "Identifier", "name": "complete", "range": [ 608, 616 ], "loc": { "start": { "line": 16, "column": 49 }, "end": { "line": 16, "column": 57 } } } ], "range": [ 570, 617 ], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 58 } } }, "range": [ 563, 618 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 59 } } } ], "range": [ 217, 620 ], "loc": { "start": { "line": 4, "column": 62 }, "end": { "line": 17, "column": 1 } } }, "generator": false, "expression": false, "range": [ 162, 620 ], "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 17, "column": 1 } }, "leadingComments": [], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=toSubscriber.js.map", "range": [ 621, 661 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 40 } } } ] }, "specifiers": [], "source": null, "range": [ 155, 620 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 17, "column": 1 } }, "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=toSubscriber.js.map", "range": [ 621, 661 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 40 } } } ] } ], "sourceType": "module", "range": [ 0, 620 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 17, "column": 1 } }, "comments": [ { "type": "Line", "value": "# sourceMappingURL=toSubscriber.js.map", "range": [ 621, 661 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 40 } } } ] }