UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,663 lines (1,662 loc) 518 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, 41 ], "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 41 } } }, "range": [ 0, 42 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 42 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Subscriber", "range": [ 52, 62 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } }, "imported": { "type": "Identifier", "name": "Subscriber", "range": [ 52, 62 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } }, "range": [ 52, 62 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } } ], "source": { "type": "Literal", "value": "./Subscriber", "raw": "'./Subscriber'", "range": [ 70, 84 ], "loc": { "start": { "line": 2, "column": 27 }, "end": { "line": 2, "column": 41 } } }, "range": [ 43, 85 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 42 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Subscription", "range": [ 95, 107 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 21 } } }, "imported": { "type": "Identifier", "name": "Subscription", "range": [ 95, 107 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 21 } } }, "range": [ 95, 107 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 21 } } } ], "source": { "type": "Literal", "value": "./Subscription", "raw": "'./Subscription'", "range": [ 115, 131 ], "loc": { "start": { "line": 3, "column": 29 }, "end": { "line": 3, "column": 45 } } }, "range": [ 86, 132 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 46 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "ObjectUnsubscribedError", "range": [ 142, 165 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 32 } } }, "imported": { "type": "Identifier", "name": "ObjectUnsubscribedError", "range": [ 142, 165 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 32 } } }, "range": [ 142, 165 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 32 } } } ], "source": { "type": "Literal", "value": "./util/ObjectUnsubscribedError", "raw": "'./util/ObjectUnsubscribedError'", "range": [ 173, 205 ], "loc": { "start": { "line": 4, "column": 40 }, "end": { "line": 4, "column": 72 } } }, "range": [ 133, 206 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 73 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "SubjectSubscription", "range": [ 216, 235 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 28 } } }, "imported": { "type": "Identifier", "name": "SubjectSubscription", "range": [ 216, 235 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 28 } } }, "range": [ 216, 235 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 28 } } } ], "source": { "type": "Literal", "value": "./SubjectSubscription", "raw": "'./SubjectSubscription'", "range": [ 243, 266 ], "loc": { "start": { "line": 5, "column": 36 }, "end": { "line": 5, "column": 59 } } }, "range": [ 207, 267 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 60 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "$$rxSubscriber", "range": [ 277, 291 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 23 } } }, "imported": { "type": "Identifier", "name": "$$rxSubscriber", "range": [ 277, 291 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 23 } } }, "range": [ 277, 291 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 23 } } } ], "source": { "type": "Literal", "value": "./symbol/rxSubscriber", "raw": "'./symbol/rxSubscriber'", "range": [ 299, 322 ], "loc": { "start": { "line": 6, "column": 31 }, "end": { "line": 6, "column": 54 } } }, "range": [ 268, 323 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 55 } }, "trailingComments": [ { "type": "Block", "value": "*\n * @class SubjectSubscriber<T>\n ", "range": [ 324, 362 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 9, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SubjectSubscriber", "range": [ 374, 391 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 28 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 405, 411 ], "loc": { "start": { "line": 10, "column": 42 }, "end": { "line": 10, "column": 48 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 419, 428 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "SubjectSubscriber", "range": [ 429, 446 ], "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 31 } } }, { "type": "Identifier", "name": "_super", "range": [ 448, 454 ], "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 39 } } } ], "range": [ 419, 455 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 40 } } }, "range": [ 419, 456 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 41 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "SubjectSubscriber", "range": [ 470, 487 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 30 } } }, "params": [ { "type": "Identifier", "name": "destination", "range": [ 488, 499 ], "loc": { "start": { "line": 12, "column": 31 }, "end": { "line": 12, "column": 42 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 511, 517 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 518, 522 ], "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 19 } } }, "range": [ 511, 522 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 523, 527 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 24 } } }, { "type": "Identifier", "name": "destination", "range": [ 529, 540 ], "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 37 } } } ], "range": [ 511, 541 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 38 } } }, "range": [ 511, 542 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 39 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 551, 555 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "destination", "range": [ 556, 567 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 24 } } }, "range": [ 551, 567 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 24 } } }, "right": { "type": "Identifier", "name": "destination", "range": [ 570, 581 ], "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 38 } } }, "range": [ 551, 581 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 38 } } }, "range": [ 551, 582 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 39 } } } ], "range": [ 501, 588 ], "loc": { "start": { "line": 12, "column": 44 }, "end": { "line": 15, "column": 5 } } }, "generator": false, "expression": false, "range": [ 461, 588 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 15, "column": 5 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "SubjectSubscriber", "range": [ 600, 617 ], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 28 } } }, "range": [ 593, 618 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 29 } } } ], "range": [ 413, 620 ], "loc": { "start": { "line": 10, "column": 50 }, "end": { "line": 17, "column": 1 } } }, "generator": false, "expression": false, "range": [ 395, 620 ], "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 17, "column": 1 } } }, "arguments": [ { "type": "Identifier", "name": "Subscriber", "range": [ 621, 631 ], "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 12 } } } ], "range": [ 395, 632 ], "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 17, "column": 13 } } }, "range": [ 374, 633 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 17, "column": 14 } } } ], "kind": "var", "range": [ 370, 634 ], "loc": { "start": { "line": 10, "column": 7 }, "end": { "line": 17, "column": 15 } }, "leadingComments": [ { "type": "Block", "value": "*\n * @class SubjectSubscriber<T>\n ", "range": [ 324, 362 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 9, "column": 3 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n * @class Subject<T>\n ", "range": [ 635, 663 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 20, "column": 3 } } } ] }, "specifiers": [], "source": null, "range": [ 363, 634 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 17, "column": 15 } }, "leadingComments": [ { "type": "Block", "value": "*\n * @class SubjectSubscriber<T>\n ", "range": [ 324, 362 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 9, "column": 3 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n * @class Subject<T>\n ", "range": [ 635, 663 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 20, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Subject", "range": [ 675, 682 ], "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 18 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 696, 702 ], "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 38 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 710, 719 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "Subject", "range": [ 720, 727 ], "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 22, "column": 21 } } }, { "type": "Identifier", "name": "_super", "range": [ 729, 735 ], "loc": { "start": { "line": 22, "column": 23 }, "end": { "line": 22, "column": 29 } } } ], "range": [ 710, 736 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 30 } } }, "range": [ 710, 737 ], "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 31 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "Subject", "range": [ 751, 758 ], "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 20 } } }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 771, 777 ], "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 778, 782 ], "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 19 } } }, "range": [ 771, 782 ], "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 783, 787 ], "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 24 } } } ], "range": [ 771, 788 ], "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 25 } } }, "range": [ 771, 789 ], "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 798, 802 ], "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 12 } } }, "property": { "type": "Identifier", "name": "observers", "range": [ 803, 812 ], "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 22 } } }, "range": [ 798, 812 ], "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 22 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 815, 817 ], "loc": { "start": { "line": 25, "column": 25 }, "end": { "line": 25, "column": 27 } } }, "range": [ 798, 817 ], "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 27 } } }, "range": [ 798, 818 ], "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 28 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 827, 831 ], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 12 } } }, "property": { "type": "Identifier", "name": "closed", "range": [ 832, 838