UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,412 lines (1,411 loc) 152 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Subject", "range": [ 9, 16 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } }, "imported": { "type": "Identifier", "name": "Subject", "range": [ 9, 16 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } }, "range": [ 9, 16 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } } ], "source": { "type": "Literal", "value": "../Subject", "raw": "'../Subject'", "range": [ 24, 36 ], "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 36 } } }, "range": [ 0, 37 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 37 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Subscription", "range": [ 47, 59 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } }, "imported": { "type": "Identifier", "name": "Subscription", "range": [ 47, 59 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } }, "range": [ 47, 59 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } } ], "source": { "type": "Literal", "value": "../Subscription", "raw": "'../Subscription'", "range": [ 67, 84 ], "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 46 } } }, "range": [ 38, 85 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 47 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "SubscriptionLoggable", "range": [ 95, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 29 } } }, "imported": { "type": "Identifier", "name": "SubscriptionLoggable", "range": [ 95, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 29 } } }, "range": [ 95, 115 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 29 } } } ], "source": { "type": "Literal", "value": "./SubscriptionLoggable", "raw": "'./SubscriptionLoggable'", "range": [ 123, 147 ], "loc": { "start": { "line": 3, "column": 37 }, "end": { "line": 3, "column": 61 } } }, "range": [ 86, 148 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 62 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "applyMixins", "range": [ 158, 169 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } } }, "imported": { "type": "Identifier", "name": "applyMixins", "range": [ 158, 169 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } } }, "range": [ 158, 169 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } } } ], "source": { "type": "Literal", "value": "../util/applyMixins", "raw": "'../util/applyMixins'", "range": [ 177, 198 ], "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 4, "column": 49 } } }, "range": [ 149, 199 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 50 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ", "range": [ 200, 291 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 9, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "HotObservable", "range": [ 303, 316 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 24 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 330, 336 ], "loc": { "start": { "line": 10, "column": 38 }, "end": { "line": 10, "column": 44 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 344, 353 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "HotObservable", "range": [ 354, 367 ], "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 27 } } }, { "type": "Identifier", "name": "_super", "range": [ 369, 375 ], "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 35 } } } ], "range": [ 344, 376 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 36 } } }, "range": [ 344, 377 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 37 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "HotObservable", "range": [ 391, 404 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 26 } } }, "params": [ { "type": "Identifier", "name": "messages", "range": [ 405, 413 ], "loc": { "start": { "line": 12, "column": 27 }, "end": { "line": 12, "column": 35 } } }, { "type": "Identifier", "name": "scheduler", "range": [ 415, 424 ], "loc": { "start": { "line": 12, "column": 37 }, "end": { "line": 12, "column": 46 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 436, 442 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 443, 447 ], "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 19 } } }, "range": [ 436, 447 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 448, 452 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 24 } } } ], "range": [ 436, 453 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 25 } } }, "range": [ 436, 454 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 463, 467 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "messages", "range": [ 468, 476 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 21 } } }, "range": [ 463, 476 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 21 } } }, "right": { "type": "Identifier", "name": "messages", "range": [ 479, 487 ], "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 32 } } }, "range": [ 463, 487 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 32 } } }, "range": [ 463, 488 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 33 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 497, 501 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "subscriptions", "range": [ 502, 515 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 26 } } }, "range": [ 497, 515 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 26 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 518, 520 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 31 } } }, "range": [ 497, 520 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 31 } } }, "range": [ 497, 521 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 32 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 530, 534 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "name": "scheduler", "range": [ 535, 544 ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 22 } } }, "range": [ 530, 544 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 22 } } }, "right": { "type": "Identifier", "name": "scheduler", "range": [ 547, 556 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 } } }, "range": [ 530, 556 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 34 } } }, "range": [ 530, 557 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 35 } } } ], "range": [ 426, 563 ], "loc": { "start": { "line": 12, "column": 48 }, "end": { "line": 17, "column": 5 } } }, "generator": false, "expression": false, "range": [ 382, 563 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 17, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "HotObservable", "range": [ 568, 581 ], "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 17 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 582, 591 ], "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 27 } } }, "range": [ 568, 591 ], "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 27 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 592, 602 ], "loc": { "start": { "line": 18, "column": 28 }, "end": { "line": 18, "column": 38 } } }, "range": [ 568, 602 ], "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 38 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "subscriber", "range": [ 615, 625 ], "loc": { "start": { "line": 18, "column": 51 }, "end": { "line": 18, "column": 61 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "subject", "range": [ 641, 648 ], "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 19 } } }, "init": { "type": "ThisExpression", "range": [ 651, 655 ], "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 26 } } }, "range": [ 641, 655 ], "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 26 } } } ], "kind": "var", "range": [ 637, 656 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "index", "range": [ 669, 674 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "subject", "range": [ 677, 684 ], "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 27 } } }, "property": { "type": "Identifier", "name": "logSubscribedFrame", "range": [ 685, 703 ], "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 46 } } }, "range": [ 677, 703 ], "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 46 } } }, "arguments": [], "range": [ 677, 705 ], "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 48 } } }, "range": [ 669, 705 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 48 } } } ], "kind": "var", "range": [ 665, 706 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 49 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "subscriber", "range": [ 715, 725 ], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 18 } } }, "property": { "type": "Identifier", "name": "add", "range": [ 726, 729 ], "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 22 } }