UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,383 lines (1,382 loc) 159 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": "subscribeToResult", "range": [ 53, 70 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } } }, "imported": { "type": "Identifier", "name": "subscribeToResult", "range": [ 53, 70 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } } }, "range": [ 53, 70 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 26 } } } ], "source": { "type": "Literal", "value": "../util/subscribeToResult", "raw": "'../util/subscribeToResult'", "range": [ 78, 105 ], "loc": { "start": { "line": 2, "column": 34 }, "end": { "line": 2, "column": 61 } } }, "range": [ 44, 106 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 62 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "OuterSubscriber", "range": [ 116, 131 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 24 } } }, "imported": { "type": "Identifier", "name": "OuterSubscriber", "range": [ 116, 131 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 24 } } }, "range": [ 116, 131 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 24 } } } ], "source": { "type": "Literal", "value": "../OuterSubscriber", "raw": "'../OuterSubscriber'", "range": [ 139, 159 ], "loc": { "start": { "line": 3, "column": 32 }, "end": { "line": 3, "column": 52 } } }, "range": [ 107, 160 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 53 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ", "range": [ 161, 255 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "UsingObservable", "range": [ 267, 282 ], "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 26 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 296, 302 ], "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 46 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 310, 319 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "UsingObservable", "range": [ 320, 335 ], "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 29 } } }, { "type": "Identifier", "name": "_super", "range": [ 337, 343 ], "loc": { "start": { "line": 10, "column": 31 }, "end": { "line": 10, "column": 37 } } } ], "range": [ 310, 344 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 38 } } }, "range": [ 310, 345 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 39 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "UsingObservable", "range": [ 359, 374 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 28 } } }, "params": [ { "type": "Identifier", "name": "resourceFactory", "range": [ 375, 390 ], "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 44 } } }, { "type": "Identifier", "name": "observableFactory", "range": [ 392, 409 ], "loc": { "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 63 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 421, 427 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 428, 432 ], "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 19 } } }, "range": [ 421, 432 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 433, 437 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 24 } } } ], "range": [ 421, 438 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 25 } } }, "range": [ 421, 439 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 448, 452 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "name": "resourceFactory", "range": [ 453, 468 ], "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 28 } } }, "range": [ 448, 468 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 28 } } }, "right": { "type": "Identifier", "name": "resourceFactory", "range": [ 471, 486 ], "loc": { "start": { "line": 13, "column": 31 }, "end": { "line": 13, "column": 46 } } }, "range": [ 448, 486 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 46 } } }, "range": [ 448, 487 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 47 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 496, 500 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "observableFactory", "range": [ 501, 518 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 30 } } }, "range": [ 496, 518 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 30 } } }, "right": { "type": "Identifier", "name": "observableFactory", "range": [ 521, 538 ], "loc": { "start": { "line": 14, "column": 33 }, "end": { "line": 14, "column": 50 } } }, "range": [ 496, 538 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 50 } } }, "range": [ 496, 539 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 51 } } } ], "range": [ 411, 545 ], "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 15, "column": 5 } } }, "generator": false, "expression": false, "range": [ 350, 545 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 15, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "UsingObservable", "range": [ 550, 565 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 19 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 566, 572 ], "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 16, "column": 26 } } }, "range": [ 550, 572 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 26 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "resourceFactory", "range": [ 585, 600 ], "loc": { "start": { "line": 16, "column": 39 }, "end": { "line": 16, "column": 54 } } }, { "type": "Identifier", "name": "observableFactory", "range": [ 602, 619 ], "loc": { "start": { "line": 16, "column": 56 }, "end": { "line": 16, "column": 73 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "UsingObservable", "range": [ 642, 657 ], "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "resourceFactory", "range": [ 658, 673 ], "loc": { "start": { "line": 17, "column": 35 }, "end": { "line": 17, "column": 50 } } }, { "type": "Identifier", "name": "observableFactory", "range": [ 675, 692 ], "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 69 } } } ], "range": [ 638, 693 ], "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 70 } } }, "range": [ 631, 694 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 71 } } } ], "range": [ 621, 700 ], "loc": { "start": { "line": 16, "column": 75 }, "end": { "line": 18, "column": 5 } } }, "generator": false, "expression": false, "range": [ 575, 700 ], "loc": { "start": { "line": 16, "column": 29 }, "end": { "line": 18, "column": 5 } } }, "range": [ 550, 700 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 5 } } }, "range": [ 550, 701 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 6 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "UsingObservable", "range": [ 706, 721 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 19 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 722, 731 ], "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 29 } } }, "range": [ 706, 731 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 29 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 732, 742 ], "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 40 } } }, "range": [ 706, 742 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 40 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "subscriber", "range": [ 755, 765 ], "loc": { "start": { "line": 19, "column": 53 }, "end": { "line": 19, "column": 63 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_a", "range": [ 781, 783 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 14 } } }, "init": { "type": "ThisExpression", "range": [ 786, 790 ], "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 21 } } }, "range": [ 781, 790 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 21 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "resourceFactory", "range": [ 792, 807 ], "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 38 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_a", "range": [ 810, 812 ], "loc": { "start": { "line": 20, "column": 41 }, "end": { "line": 20, "column": 43 } } }, "property": { "type": "Identifier", "name": "resourceFactory", "range": [ 813, 828 ], "loc": { "start": { "line": 20, "column": 44 }, "end": { "line": 20, "column": 59 } } }, "range": [ 810, 828 ], "loc": { "start": { "line": 20, "column": 41 }, "end": { "line": 20, "column": 59 } } }, "range": [ 792, 828 ], "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 59 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "observableFactory", "range": [ 830, 847 ],