@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
971 lines (970 loc) • 85.6 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "UnsubscriptionError",
"range": [
131,
150
],
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 30
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
164,
170
],
"loc": {
"start": {
"line": 5,
"column": 44
},
"end": {
"line": 5,
"column": 50
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
178,
187
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "UnsubscriptionError",
"range": [
188,
207
],
"loc": {
"start": {
"line": 6,
"column": 14
},
"end": {
"line": 6,
"column": 33
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
209,
215
],
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 41
}
}
}
],
"range": [
178,
216
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 42
}
}
},
"range": [
178,
217
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 43
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "UnsubscriptionError",
"range": [
231,
250
],
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 32
}
}
},
"params": [
{
"type": "Identifier",
"name": "errors",
"range": [
251,
257
],
"loc": {
"start": {
"line": 7,
"column": 33
},
"end": {
"line": 7,
"column": 39
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
269,
275
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
276,
280
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 19
}
}
},
"range": [
269,
280
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
281,
285
],
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 24
}
}
}
],
"range": [
269,
286
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 25
}
}
},
"range": [
269,
287
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
296,
300
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "errors",
"range": [
301,
307
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 19
}
}
},
"range": [
296,
307
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 19
}
}
},
"right": {
"type": "Identifier",
"name": "errors",
"range": [
310,
316
],
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 9,
"column": 28
}
}
},
"range": [
296,
316
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 28
}
}
},
"range": [
296,
317
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 29
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "err",
"range": [
330,
333
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 15
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Error",
"range": [
336,
341
],
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
342,
346
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 28
}
}
},
"range": [
336,
346
],
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 28
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
347,
351
],
"loc": {
"start": {
"line": 10,
"column": 29
},
"end": {
"line": 10,
"column": 33
}
}
},
{
"type": "ConditionalExpression",
"test": {
"type": "Identifier",
"name": "errors",
"range": [
353,
359
],
"loc": {
"start": {
"line": 10,
"column": 35
},
"end": {
"line": 10,
"column": 41
}
}
},
"consequent": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "errors",
"range": [
374,
380
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
381,
387
],
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 25
}
}
},
"range": [
374,
387
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 25
}
}
},
"right": {
"type": "Literal",
"value": " errors occurred during unsubscription:\n ",
"raw": "\" errors occurred during unsubscription:\\n \"",
"range": [
390,
435
],
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 73
}
}
},
"range": [
374,
435
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 73
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "errors",
"range": [
438,
444
],
"loc": {
"start": {
"line": 11,
"column": 76
},
"end": {
"line": 11,
"column": 82
}
}
},
"property": {
"type": "Identifier",
"name": "map",
"range": [
445,
448
],
"loc": {
"start": {
"line": 11,
"column": 83
},
"end": {
"line": 11,
"column": 86
}
}
},
"range": [
438,
448
],
"loc": {
"start": {
"line": 11,
"column": 76
},
"end": {
"line": 11,
"column": 86
}
}
},
"arguments": [
{
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "err",
"range": [
459,
462
],
"loc": {
"start": {
"line": 11,
"column": 97
},
"end": {
"line": 11,
"column": 100
}
}
},
{
"type": "Identifier",
"name": "i",
"range": [
464,
465
],
"loc": {
"start": {
"line": 11,
"column": 102
},
"end": {
"line": 11,
"column": 103
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Identifier",
"name": "i",
"range": [
478,
479
],
"loc": {
"start": {
"line": 11,
"column": 116
},
"end": {
"line": 11,
"column": 117
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
482,
483
],
"loc": {
"start": {
"line": 11,
"column": 120
},
"end": {
"line": 11,
"column": 121
}
}
},
"range": [
478,
483
],
"loc": {
"start": {
"line": 11,
"column": 116
},
"end": {
"line": 11,
"column": 121
}
}
},
"right": {
"type": "Literal",
"value": ") ",
"raw": "\") \"",
"range": [
487,
491
],
"loc": {
"start": {
"line": 11,
"column": 125
},
"end": {
"line": 11,
"column": 129
}
}
},
"range": [
477,
491
],
"loc": {
"start": {
"line": 11,
"column": 115
},
"end": {
"line": 11,
"column": 129
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "err",
"range": [
494,
497
],
"loc": {
"start": {
"line": 11,
"column": 132
},
"end": {
"line": 11,
"column": 135
}
}
},
"property": {
"type": "Identifier",
"name": "toString",
"range": [
498,
506
],
"loc": {
"start": {
"line": 11,
"column": 136
},
"end": {
"line": 11,
"column": 144
}
}
},
"range": [
494,
506
],
"loc": {
"start": {
"line": 11,
"column": 132
},
"end": {
"line": 11,
"column": 144
}
}
},
"arguments": [],
"range": [
494,
508
],
"loc": {
"start": {
"line": 11,
"column": 132
},
"end": {
"line": 11,
"column": 146
}
}
},
"range": [
477,
508
],
"loc": {
"start": {
"line": 11,
"column": 115
},
"end": {
"line": 11,
"column": 146
}
}
},
"range": [
469,
510
],
"loc": {
"start": {
"line": 11,
"column": 107
},
"end": {
"line": 11,
"column": 148
}
}
}
],
"range": [
467,
512
],
"loc": {
"start": {
"line": 11,
"column": 105
},
"end": {
"line": 11,
"column": 150
}
}
},
"generator": false,
"expression": false,
"range": [
449,
512
],
"loc": {
"start": {
"line": 11,
"column": 87
},
"end": {
"line": 11,
"column": 150
}
}
}
],
"range": [
438,
513
],
"loc": {
"start": {
"line": 11,
"column": 76
},
"end": {
"line": 11,
"column": 151
}
}
},
"property": {
"type": "Identifier",
"name": "join",