UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,581 lines (1,580 loc) 196 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": "tryCatch", "range": [ 53, 61 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 17 } } }, "imported": { "type": "Identifier", "name": "tryCatch", "range": [ 53, 61 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 17 } } }, "range": [ 53, 61 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 17 } } } ], "source": { "type": "Literal", "value": "../util/tryCatch", "raw": "'../util/tryCatch'", "range": [ 69, 87 ], "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 43 } } }, "range": [ 44, 88 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 44 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "errorObject", "range": [ 98, 109 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 } } }, "imported": { "type": "Identifier", "name": "errorObject", "range": [ 98, 109 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 } } }, "range": [ 98, 109 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 } } } ], "source": { "type": "Literal", "value": "../util/errorObject", "raw": "'../util/errorObject'", "range": [ 117, 138 ], "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 3, "column": 49 } } }, "range": [ 89, 139 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 50 } }, "trailingComments": [ { "type": "Block", "value": " tslint:disable:max-line-length ", "range": [ 140, 176 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 36 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "distinctUntilChanged", "range": [ 193, 213 ], "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 36 } } }, "params": [ { "type": "Identifier", "name": "compare", "range": [ 214, 221 ], "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 44 } } }, { "type": "Identifier", "name": "keySelector", "range": [ 223, 234 ], "loc": { "start": { "line": 5, "column": 46 }, "end": { "line": 5, "column": 57 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 249, 253 ], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 15 } } }, "property": { "type": "Identifier", "name": "lift", "range": [ 254, 258 ], "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 20 } } }, "range": [ 249, 258 ], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 20 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "DistinctUntilChangedOperator", "range": [ 263, 291 ], "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 53 } } }, "arguments": [ { "type": "Identifier", "name": "compare", "range": [ 292, 299 ], "loc": { "start": { "line": 6, "column": 54 }, "end": { "line": 6, "column": 61 } } }, { "type": "Identifier", "name": "keySelector", "range": [ 301, 312 ], "loc": { "start": { "line": 6, "column": 63 }, "end": { "line": 6, "column": 74 } } } ], "range": [ 259, 313 ], "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 75 } } } ], "range": [ 249, 314 ], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 76 } } }, "range": [ 242, 315 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 77 } } } ], "range": [ 236, 317 ], "loc": { "start": { "line": 5, "column": 59 }, "end": { "line": 7, "column": 1 } } }, "generator": false, "expression": false, "range": [ 184, 317 ], "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 7, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": " tslint:disable:max-line-length ", "range": [ 140, 176 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 36 } } } ], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 177, 317 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": " tslint:disable:max-line-length ", "range": [ 140, 176 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 36 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "DistinctUntilChangedOperator", "range": [ 322, 350 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 32 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "DistinctUntilChangedOperator", "range": [ 381, 409 ], "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 41 } } }, "params": [ { "type": "Identifier", "name": "compare", "range": [ 410, 417 ], "loc": { "start": { "line": 9, "column": 42 }, "end": { "line": 9, "column": 49 } } }, { "type": "Identifier", "name": "keySelector", "range": [ 419, 430 ], "loc": { "start": { "line": 9, "column": 51 }, "end": { "line": 9, "column": 62 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 442, 446 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "name": "compare", "range": [ 447, 454 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 } } }, "range": [ 442, 454 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } } }, "right": { "type": "Identifier", "name": "compare", "range": [ 457, 464 ], "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 30 } } }, "range": [ 442, 464 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 30 } } }, "range": [ 442, 465 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 474, 478 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "name": "keySelector", "range": [ 479, 490 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 24 } } }, "range": [ 474, 490 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 24 } } }, "right": { "type": "Identifier", "name": "keySelector", "range": [ 493, 504 ], "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 38 } } }, "range": [ 474, 504 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 38 } } }, "range": [ 474, 505 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 39 } } } ], "range": [ 432, 511 ], "loc": { "start": { "line": 9, "column": 64 }, "end": { "line": 12, "column": 5 } } }, "generator": false, "expression": false, "range": [ 372, 511 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 12, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "DistinctUntilChangedOperator", "range": [ 516, 544 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 32 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 545, 554 ], "loc": { "start": { "line": 13, "column": 33 }, "end": { "line": 13, "column": 42 } } }, "range": [ 516, 554 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 42 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 555, 559 ], "loc": { "start": { "line": 13, "column": 43 }, "end": { "line": 13, "column": 47 } } }, "range": [ 516, 559 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 47 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "subscriber", "range": [ 572, 582 ], "loc": { "start": { "line": 13, "column": 60 }, "end": { "line": 13, "column": 70 } } }, { "type": "Identifier", "name": "source", "range": [ 584, 590 ], "loc": { "start": { "line": 13, "column": 72 }, "end": { "line": 13, "column": 78 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 609, 615 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 21 } } }, "property": { "type": "Identifier", "name": "_subscribe", "range": [ 616, 626 ], "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 32 } } }, "range": [ 609, 626 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 32 } } }, "arguments": [ { "type": "NewExpression", "callee": { "type": "Identifier", "name": "DistinctUntilChangedSubscriber", "range": [ 631, 661 ], "loc": { "start": { "line": 14, "column": 37 }, "end": { "line": 14, "column": 67 } } }, "arguments": [ { "type": "Identifier", "name": "subscriber", "range": [ 662, 672 ], "loc": { "start": { "line": 14, "column": 68 }, "end": { "line": 14, "column": 78 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 674, 678 ], "loc": { "start": { "line": 14, "column": 80 }, "end": { "line": 14, "column": 84 } } }, "property": { "type": "Identifier", "name": "compare", "range": [ 679, 686 ], "loc": { "start": { "line": 14, "column": 85 }, "end": { "line": 14, "column": 92 } } }, "range": [ 674, 686 ], "loc": { "start": { "line": 14, "column": 80 }, "end": { "line": 14, "column": 92 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 688, 692 ], "loc": { "start": { "line": 14, "column": 94 }, "end": { "line": 14, "column": 98 } } }, "property": { "type": "Identifier", "name": "keySelector", "range": [ 693, 704 ], "loc": { "start": { "line": 14, "column": 99 }, "end": { "line": 14, "column": 110 } } }, "range": [ 688, 704 ], "loc": { "start": { "line": 14, "column": 94 }, "end": { "line": 14, "column": 110 } } } ], "range": [ 627, 705 ], "loc": { "start": { "line": 14, "column": 33 }, "end": { "line": 14, "column": 111 } } } ], "range": [ 609, 706 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 112 } } }, "range": [ 602, 707 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 113 } } } ], "range": [ 592, 713 ], "loc": { "start": { "line": 13, "column": 80 }, "end": { "line": 15, "column": 5 } } }, "generator": false, "expression": false, "range": [ 562, 713 ], "loc": { "start": { "line": 13, "column": 50 }, "end": { "line": 15, "column": 5 } } }, "range": [ 516, 713 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 15, "column": 5 } } }, "range": [ 516, 714 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 15, "column": 6 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "DistinctUntilChangedOperator", "range": [ 726, 754 ], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 39 } } }, "range": [ 719, 755 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 40 } } } ], "range": [ 366, 757 ], "loc": { "start": { "line": 8, "column": 48 }, "end": { "line": 17, "column": 1 } } }, "generator": false, "expression": false, "range": [ 354, 757 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 17, "column": 1 } } }, "arguments": [], "range": [ 354, 759 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 17, "column": 3 } } }, "range": [ 322, 760 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 17, "column": 4 } } } ], "kind": "var", "range": [ 318, 761 ], "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 17, "column": 5 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ", "range": [ 762, 853 ], "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 22, "column": 3 } } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "DistinctUntilChangedSubscriber", "range": [ 858, 888 ], "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 34 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 902, 908 ], "loc": { "start": { "line": 23, "column": 48 },