@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,417 lines (1,416 loc) • 203 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
}
},
"trailingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
44,
80
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "_do",
"range": [
97,
100
],
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 19
}
}
},
"params": [
{
"type": "Identifier",
"name": "nextOrObserver",
"range": [
101,
115
],
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 34
}
}
},
{
"type": "Identifier",
"name": "error",
"range": [
117,
122
],
"loc": {
"start": {
"line": 3,
"column": 36
},
"end": {
"line": 3,
"column": 41
}
}
},
{
"type": "Identifier",
"name": "complete",
"range": [
124,
132
],
"loc": {
"start": {
"line": 3,
"column": 43
},
"end": {
"line": 3,
"column": 51
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
147,
151
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "lift",
"range": [
152,
156
],
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 20
}
}
},
"range": [
147,
156
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 20
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "DoOperator",
"range": [
161,
171
],
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 35
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "nextOrObserver",
"range": [
172,
186
],
"loc": {
"start": {
"line": 4,
"column": 36
},
"end": {
"line": 4,
"column": 50
}
}
},
{
"type": "Identifier",
"name": "error",
"range": [
188,
193
],
"loc": {
"start": {
"line": 4,
"column": 52
},
"end": {
"line": 4,
"column": 57
}
}
},
{
"type": "Identifier",
"name": "complete",
"range": [
195,
203
],
"loc": {
"start": {
"line": 4,
"column": 59
},
"end": {
"line": 4,
"column": 67
}
}
}
],
"range": [
157,
204
],
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 68
}
}
}
],
"range": [
147,
205
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 69
}
}
},
"range": [
140,
206
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 70
}
}
}
],
"range": [
134,
208
],
"loc": {
"start": {
"line": 3,
"column": 53
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
88,
208
],
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 5,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
44,
80
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
}
],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
81,
208
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
44,
80
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "DoOperator",
"range": [
213,
223
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 14
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "DoOperator",
"range": [
254,
264
],
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 23
}
}
},
"params": [
{
"type": "Identifier",
"name": "nextOrObserver",
"range": [
265,
279
],
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 38
}
}
},
{
"type": "Identifier",
"name": "error",
"range": [
281,
286
],
"loc": {
"start": {
"line": 7,
"column": 40
},
"end": {
"line": 7,
"column": 45
}
}
},
{
"type": "Identifier",
"name": "complete",
"range": [
288,
296
],
"loc": {
"start": {
"line": 7,
"column": 47
},
"end": {
"line": 7,
"column": 55
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
308,
312
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "nextOrObserver",
"range": [
313,
327
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 27
}
}
},
"range": [
308,
327
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 27
}
}
},
"right": {
"type": "Identifier",
"name": "nextOrObserver",
"range": [
330,
344
],
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 44
}
}
},
"range": [
308,
344
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 44
}
}
},
"range": [
308,
345
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 45
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
354,
358
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "error",
"range": [
359,
364
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 18
}
}
},
"range": [
354,
364
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 18
}
}
},
"right": {
"type": "Identifier",
"name": "error",
"range": [
367,
372
],
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 26
}
}
},
"range": [
354,
372
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 26
}
}
},
"range": [
354,
373
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 27
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
382,
386
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "complete",
"range": [
387,
395
],
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 21
}
}
},
"range": [
382,
395
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 21
}
}
},
"right": {
"type": "Identifier",
"name": "complete",
"range": [
398,
406
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 32
}
}
},
"range": [
382,
406
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 32
}
}
},
"range": [
382,
407
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
}
}
],
"range": [
298,
413
],
"loc": {
"start": {
"line": 7,
"column": 57
},
"end": {
"line": 11,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
245,
413
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "DoOperator",
"range": [
418,
428
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
429,
438
],
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 24
}
}
},
"range": [
418,
438
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
439,
443
],
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 29
}
}
},
"range": [
418,
443
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 29
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
456,
466
],
"loc": {
"start": {
"line": 12,
"column": 42
},
"end": {
"line": 12,
"column": 52
}
}
},
{
"type": "Identifier",
"name": "source",
"range": [
468,
474
],
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 12,
"column": 60
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "source",
"range": [
493,
499
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "_subscribe",
"range": [
500,
510
],
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 32
}
}
},
"range": [
493,
510
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 32
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "DoSubscriber",
"range": [
515,
527
],
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 13,
"column": 49
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
528,
538
],
"loc": {
"start": {
"line": 13,
"column": 50
},
"end": {
"line": 13,
"column": 60
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
540,
544
],
"loc": {
"start": {
"line": 13,
"column": 62
},
"end": {
"line": 13,
"column": 66
}
}
},
"property": {
"type": "Identifier",
"name": "nextOrObserver",
"range": [
545,
559
],
"loc": {
"start": {
"line": 13,
"column": 67
},
"end": {
"line": 13,
"column": 81
}
}
},
"range": [
540,
559
],
"loc": {
"start": {
"line": 13,
"column": 62
},
"end": {
"line": 13,
"column": 81
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
561,
565
],
"loc": {
"start": {
"line": 13,
"column": 83
},
"end": {
"line": 13,
"column": 87
}
}
},
"property": {
"type": "Identifier",
"name": "error",
"range": [
566,
571
],
"loc": {
"start": {
"line": 13,
"column": 88
},
"end": {
"line": 13,
"column": 93
}
}
},
"range": [
561,
571
],
"loc": {
"start": {
"line": 13,
"column": 83
},
"end": {
"line": 13,
"column": 93
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
573,
577
],
"loc": {
"start": {
"line": 13,
"column": 95
},
"end": {
"line": 13,
"column": 99
}
}
},
"property": {
"type": "Identifier",
"name": "complete",
"range": [
578,
586
],
"loc": {
"start": {
"line": 13,
"column": 100
},
"end": {
"line": 13,
"column": 108
}
}
},
"range": [
573,
586
],
"loc": {
"start": {
"line": 13,
"column": 95
},
"end": {
"line": 13,
"column": 108
}
}
}
],
"range": [
511,
587
],
"loc": {
"start": {
"line": 13,
"column": 33
},
"end": {
"line": 13,
"column": 109
}
}
}
],
"range": [
493,
588
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 110
}
}
},
"range": [
486,
589
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 111
}
}
}
],
"range": [
476,
595
],
"loc": {
"start": {
"line": 12,
"column": 62
},
"end": {
"line": 14,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
446,
595
],
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 14,
"column": 5
}
}
},
"range": [
418,
595
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 14,
"column": 5