UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,482 lines (1,481 loc) 303 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": "EmptyError", "range": [ 53, 63 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } }, "imported": { "type": "Identifier", "name": "EmptyError", "range": [ 53, 63 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } }, "range": [ 53, 63 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 19 } } } ], "source": { "type": "Literal", "value": "../util/EmptyError", "raw": "'../util/EmptyError'", "range": [ 71, 91 ], "loc": { "start": { "line": 2, "column": 27 }, "end": { "line": 2, "column": 47 } } }, "range": [ 44, 92 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 48 } }, "trailingComments": [ { "type": "Block", "value": " tslint:disable:max-line-length ", "range": [ 93, 129 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 36 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "last", "range": [ 146, 150 ], "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 20 } } }, "params": [ { "type": "Identifier", "name": "predicate", "range": [ 151, 160 ], "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 30 } } }, { "type": "Identifier", "name": "resultSelector", "range": [ 162, 176 ], "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 46 } } }, { "type": "Identifier", "name": "defaultValue", "range": [ 178, 190 ], "loc": { "start": { "line": 4, "column": 48 }, "end": { "line": 4, "column": 60 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 205, 209 ], "loc": { "start": { "line": 5, "column": 11 }, "end": { "line": 5, "column": 15 } } }, "property": { "type": "Identifier", "name": "lift", "range": [ 210, 214 ], "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 20 } } }, "range": [ 205, 214 ], "loc": { "start": { "line": 5, "column": 11 }, "end": { "line": 5, "column": 20 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "LastOperator", "range": [ 219, 231 ], "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 37 } } }, "arguments": [ { "type": "Identifier", "name": "predicate", "range": [ 232, 241 ], "loc": { "start": { "line": 5, "column": 38 }, "end": { "line": 5, "column": 47 } } }, { "type": "Identifier", "name": "resultSelector", "range": [ 243, 257 ], "loc": { "start": { "line": 5, "column": 49 }, "end": { "line": 5, "column": 63 } } }, { "type": "Identifier", "name": "defaultValue", "range": [ 259, 271 ], "loc": { "start": { "line": 5, "column": 65 }, "end": { "line": 5, "column": 77 } } }, { "type": "ThisExpression", "range": [ 273, 277 ], "loc": { "start": { "line": 5, "column": 79 }, "end": { "line": 5, "column": 83 } } } ], "range": [ 215, 278 ], "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 84 } } } ], "range": [ 205, 279 ], "loc": { "start": { "line": 5, "column": 11 }, "end": { "line": 5, "column": 85 } } }, "range": [ 198, 280 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 86 } } } ], "range": [ 192, 282 ], "loc": { "start": { "line": 4, "column": 62 }, "end": { "line": 6, "column": 1 } } }, "generator": false, "expression": false, "range": [ 137, 282 ], "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 6, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": " tslint:disable:max-line-length ", "range": [ 93, 129 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 36 } } } ], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 130, 282 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": " tslint:disable:max-line-length ", "range": [ 93, 129 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 36 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "LastOperator", "range": [ 287, 299 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 16 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "LastOperator", "range": [ 330, 342 ], "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 25 } } }, "params": [ { "type": "Identifier", "name": "predicate", "range": [ 343, 352 ], "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 35 } } }, { "type": "Identifier", "name": "resultSelector", "range": [ 354, 368 ], "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 8, "column": 51 } } }, { "type": "Identifier", "name": "defaultValue", "range": [ 370, 382 ], "loc": { "start": { "line": 8, "column": 53 }, "end": { "line": 8, "column": 65 } } }, { "type": "Identifier", "name": "source", "range": [ 384, 390 ], "loc": { "start": { "line": 8, "column": 67 }, "end": { "line": 8, "column": 73 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 402, 406 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "name": "predicate", "range": [ 407, 416 ], "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 22 } } }, "range": [ 402, 416 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 22 } } }, "right": { "type": "Identifier", "name": "predicate", "range": [ 419, 428 ], "loc": { "start": { "line": 9, "column": 25 }, "end": { "line": 9, "column": 34 } } }, "range": [ 402, 428 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 34 } } }, "range": [ 402, 429 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 438, 442 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "name": "resultSelector", "range": [ 443, 457 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 27 } } }, "range": [ 438, 457 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 27 } } }, "right": { "type": "Identifier", "name": "resultSelector", "range": [ 460, 474 ], "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 44 } } }, "range": [ 438, 474 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 44 } } }, "range": [ 438, 475 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 45 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 484, 488 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "name": "defaultValue", "range": [ 489, 501 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 25 } } }, "range": [ 484, 501 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 25 } } }, "right": { "type": "Identifier", "name": "defaultValue", "range": [ 504, 516 ], "loc": { "start": { "line": 11, "column": 28 }, "end": { "line": 11, "column": 40 } } }, "range": [ 484, 516 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 40 } } }, "range": [ 484, 517 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 526, 530 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "name": "source", "range": [ 531, 537 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 19 } } }, "range": [ 526, 537 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } } }, "right": { "type": "Identifier", "name": "source", "range": [ 540, 546 ], "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 28 } } }, "range": [ 526, 546 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 28 } } }, "range": [ 526, 547 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 29 } } } ], "range": [ 392, 553 ], "loc": { "start": { "line": 8, "column": 75 }, "end": { "line": 13, "column": 5 } } }, "generator": false, "expression": false, "range": [ 321, 553 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 13, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "LastOperator", "range": [ 558, 570 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 16 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 571, 580 ], "loc": { "start": { "line": 14, "column": 17 }, "end": { "line": 14, "column": 26 } } }, "range": [ 558, 580 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 26 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 581, 585 ], "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 31 } } }, "range": [ 558, 585 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 31 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "observer", "range": [ 598, 606 ], "loc": { "start": { "line": 14, "column": 44 }, "end": { "line": 14, "column": 52 } } }, { "type": "Identifier", "name": "source", "range": [ 608, 614 ], "loc": { "start": { "line": 14, "column": 54 }, "end": { "line": 14, "column": 60 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 633, 639 ], "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 21 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 640, 650 ], "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 32 } } }, "range": [ 633, 650 ], "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 32 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "LastSubscriber", "range": [ 655, 669 ], "loc": { "start": { "line": 15, "column": 37 }, "end": { "line": 15, "column": 51 } } }, "arguments": [ { "type": "Identifier", "name": "observer", "range": [ 670, 678 ], "loc": { "start": { "line": 15, "column": 52 }, "end": { "line": 15, "column": 60 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 680, 684 ], "loc": { "start": { "line": 15, "column": 62 }, "end": { "line": 15, "column": 66 } } }, "property": { "type": "Identifier", "name": "predicate", "range": [ 685, 694 ], "loc": { "start": { "line": 15, "column": 67 }, "end": { "line": 15, "column": 76 } } }, "range": [ 680, 694 ], "loc": { "start": { "line": 15, "column": 62 }, "end": { "line": 15, "column": 76 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 696, 700 ], "loc": { "start": { "line": 15, "column": 78 }, "end": { "line": 15, "column": 82 } } }, "property": { "type": "Identifier", "name": "resultSelector", "range": [ 701, 715 ], "loc": { "start": { "line": 15, "column": 83