@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,535 lines (1,534 loc) • 63.7 kB
JSON
{
"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": "Subscription",
"range": [
53,
65
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
}
}
},
"imported": {
"type": "Identifier",
"name": "Subscription",
"range": [
53,
65
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
}
}
},
"range": [
53,
65
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
}
}
}
],
"source": {
"type": "Literal",
"value": "../Subscription",
"raw": "'../Subscription'",
"range": [
73,
90
],
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 46
}
}
},
"range": [
44,
91
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 47
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * @param {function} callback function to be called when source terminates.\n * @return {Observable} an Observable that mirrors the source, but will call the specified function on termination.\n * @method finally\n * @owner Observable\n ",
"range": [
92,
479
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "_finally",
"range": [
496,
504
],
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 24
}
}
},
"params": [
{
"type": "Identifier",
"name": "callback",
"range": [
505,
513
],
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 11,
"column": 33
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
528,
532
],
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
533,
537
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 20
}
}
},
"range": [
528,
537
],
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "FinallyOperator",
"range": [
542,
557
],
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 40
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "callback",
"range": [
558,
566
],
"loc": {
"start": {
"line": 12,
"column": 41
},
"end": {
"line": 12,
"column": 49
}
}
}
],
"range": [
538,
567
],
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 50
}
}
}
],
"range": [
528,
568
],
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 51
}
}
},
"range": [
521,
569
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 52
}
}
}
],
"range": [
515,
571
],
"loc": {
"start": {
"line": 11,
"column": 35
},
"end": {
"line": 13,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
487,
571
],
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 13,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * @param {function} callback function to be called when source terminates.\n * @return {Observable} an Observable that mirrors the source, but will call the specified function on termination.\n * @method finally\n * @owner Observable\n ",
"range": [
92,
479
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
480,
571
],
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 13,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * @param {function} callback function to be called when source terminates.\n * @return {Observable} an Observable that mirrors the source, but will call the specified function on termination.\n * @method finally\n * @owner Observable\n ",
"range": [
92,
479
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "FinallyOperator",
"range": [
576,
591
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 19
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "FinallyOperator",
"range": [
622,
637
],
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 28
}
}
},
"params": [
{
"type": "Identifier",
"name": "callback",
"range": [
638,
646
],
"loc": {
"start": {
"line": 15,
"column": 29
},
"end": {
"line": 15,
"column": 37
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
658,
662
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "callback",
"range": [
663,
671
],
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 21
}
}
},
"range": [
658,
671
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 21
}
}
},
"right": {
"type": "Identifier",
"name": "callback",
"range": [
674,
682
],
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 32
}
}
},
"range": [
658,
682
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 32
}
}
},
"range": [
658,
683
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 33
}
}
}
],
"range": [
648,
689
],
"loc": {
"start": {
"line": 15,
"column": 39
},
"end": {
"line": 17,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
613,
689
],
"loc": {
"start": {
"line": 15,
"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": "FinallyOperator",
"range": [
694,
709
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
710,
719
],
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 29
}
}
},
"range": [
694,
719
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
720,
724
],
"loc": {
"start": {
"line": 18,
"column": 30
},
"end": {
"line": 18,
"column": 34
}
}
},
"range": [
694,
724
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 34
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
737,
747
],
"loc": {
"start": {
"line": 18,
"column": 47
},
"end": {
"line": 18,
"column": 57
}
}
},
{
"type": "Identifier",
"name": "source",
"range": [
749,
755
],
"loc": {
"start": {
"line": 18,
"column": 59
},
"end": {
"line": 18,
"column": 65
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "source",
"range": [
774,
780
],
"loc": {
"start": {
"line": 19,
"column": 15
},
"end": {
"line": 19,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "_subscribe",
"range": [
781,
791
],
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 32
}
}
},
"range": [
774,
791
],
"loc": {
"start": {
"line": 19,
"column": 15
},
"end": {
"line": 19,
"column": 32
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "FinallySubscriber",
"range": [
796,
813
],
"loc": {
"start": {
"line": 19,
"column": 37
},
"end": {
"line": 19,
"column": 54
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
814,
824
],
"loc": {
"start": {
"line": 19,
"column": 55
},
"end": {
"line": 19,
"column": 65
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
826,
830
],
"loc": {
"start": {
"line": 19,
"column": 67
},
"end": {
"line": 19,
"column": 71
}
}
},
"property": {
"type": "Identifier",
"name": "callback",
"range": [
831,
839
],
"loc": {
"start": {
"line": 19,
"column": 72
},
"end": {
"line": 19,
"column": 80
}
}
},
"range": [
826,
839
],
"loc": {
"start": {
"line": 19,
"column": 67
},
"end": {
"line": 19,
"column": 80
}
}
}
],
"range": [
792,
840
],
"loc": {
"start": {
"line": 19,
"column": 33
},
"end": {
"line": 19,
"column": 81
}
}
}
],
"range": [
774,
841
],
"loc": {
"start": {
"line": 19,
"column": 15
},
"end": {
"line": 19,
"column": 82
}
}
},
"range": [
767,
842
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 83
}
}
}
],
"range": [
757,
848
],
"loc": {
"start": {
"line": 18,
"column": 67
},
"end": {
"line": 20,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
727,
848
],
"loc": {
"start": {
"line": 18,
"column": 37
},
"end": {
"line": 20,
"column": 5
}
}
},
"range": [
694,
848
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 20,
"column": 5
}
}
},
"range": [
694,
849
],
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 20,
"column": 6
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "FinallyOperator",
"range": [
861,
876
],
"loc": {
"start": {
"line": 21,
"column": 11
},
"end": {
"line": 21,
"column": 26
}
}
},
"range": [
854,
877
],
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 27
}
}
}
],
"range": [
607,
879
],
"loc": {
"start": {
"line": 14,
"column": 35
},
"end": {
"line": 22,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
595,
879
],
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 22,
"column": 1
}
}
},
"arguments": [],
"range": [
595,
881
],
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 22,
"column": 3
}
}
},
"range": [
576,
882
],
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 22,
"column": 4
}
}
}
],
"kind": "var",
"range": [
572,
883
],
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 22,
"column": 5
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
884,
975
],
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "FinallySubscriber",
"range": [
980,
997
],
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
1011,
1017
],
"loc": {
"start": {
"line": 28,
"column": 35
},
"end": {
"line": 28,
"column": 41
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
1025,
1034
],
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "FinallySubscriber",
"range": [
1035,
1052
],
"loc": {
"start": {
"line": 29,
"column": 14
},
"end": {
"line": 29,
"column": 31
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
1054,
1060
],
"loc": {
"start": {
"line": 29,
"column": 33
},
"end": {
"line": 29,
"column": 39
}
}
}
],
"range": [
1025,
1061
],
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 40
}
}
},
"range": [
1025,
1062
],
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 41
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "FinallySubscriber",
"range": [
1076,
1093
],
"loc": {
"start": {
"line": 30,
"column": 13
},
"end": {
"line": 30,
"column": 30
}
}
},
"params": [
{
"type": "Identifier",
"name": "destination",
"range": [
1094,
1105
],
"loc": {
"start": {
"line": 30,
"column": 31
},
"end": {
"line": 30,
"column": 42
}
}
},
{
"type": "Identifier",
"name": "callback",
"range": [
1107,
1115
],
"loc": {
"start": {
"line": 30,
"column": 44
},
"end": {
"line": 30,
"column": 52
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
1127,
1133
],
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
1134,
1138
],
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 31,
"column": 19
}
}
},
"range": [
1127,
1138
],
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
1139,
1143
],
"loc": {
"start": {
"line": 31,
"column": 20
},
"end": {
"line": 31,
"column": 24
}
}
},
{
"type": "Identifier",
"name": "destination",
"range": [
1145,
1156
],
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 37
}
}
}
],
"range": [
1127,