@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,258 lines (1,257 loc) • 104 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Subscription",
"range": [
9,
21
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
}
},
"imported": {
"type": "Identifier",
"name": "Subscription",
"range": [
9,
21
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
}
},
"range": [
9,
21
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
}
}
],
"source": {
"type": "Literal",
"value": "./Subscription",
"raw": "'./Subscription'",
"range": [
29,
45
],
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 45
}
}
},
"range": [
0,
46
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
47,
138
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "SubjectSubscription",
"range": [
150,
169
],
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 30
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
183,
189
],
"loc": {
"start": {
"line": 7,
"column": 44
},
"end": {
"line": 7,
"column": 50
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
197,
206
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "SubjectSubscription",
"range": [
207,
226
],
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 33
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
228,
234
],
"loc": {
"start": {
"line": 8,
"column": 35
},
"end": {
"line": 8,
"column": 41
}
}
}
],
"range": [
197,
235
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 42
}
}
},
"range": [
197,
236
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 43
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "SubjectSubscription",
"range": [
250,
269
],
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 32
}
}
},
"params": [
{
"type": "Identifier",
"name": "subject",
"range": [
270,
277
],
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 40
}
}
},
{
"type": "Identifier",
"name": "subscriber",
"range": [
279,
289
],
"loc": {
"start": {
"line": 9,
"column": 42
},
"end": {
"line": 9,
"column": 52
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
301,
307
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
308,
312
],
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 19
}
}
},
"range": [
301,
312
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
313,
317
],
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 24
}
}
}
],
"range": [
301,
318
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 25
}
}
},
"range": [
301,
319
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
328,
332
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "subject",
"range": [
333,
340
],
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 20
}
}
},
"range": [
328,
340
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 20
}
}
},
"right": {
"type": "Identifier",
"name": "subject",
"range": [
343,
350
],
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 30
}
}
},
"range": [
328,
350
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 30
}
}
},
"range": [
328,
351
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 31
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
360,
364
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "subscriber",
"range": [
365,
375
],
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 23
}
}
},
"range": [
360,
375
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 23
}
}
},
"right": {
"type": "Identifier",
"name": "subscriber",
"range": [
378,
388
],
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 36
}
}
},
"range": [
360,
388
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 36
}
}
},
"range": [
360,
389
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 37
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
398,
402
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "closed",
"range": [
403,
409
],
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 19
}
}
},
"range": [
398,
409
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 19
}
}
},
"right": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
412,
417
],
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 27
}
}
},
"range": [
398,
417
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 27
}
}
},
"range": [
398,
418
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 28
}
}
}
],
"range": [
291,
424
],
"loc": {
"start": {
"line": 9,
"column": 54
},
"end": {
"line": 14,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
241,
424
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "SubjectSubscription",
"range": [
429,
448
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
449,
458
],
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 33
}
}
},
"range": [
429,
458
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "unsubscribe",
"range": [
459,
470
],
"loc": {
"start": {
"line": 15,
"column": 34
},
"end": {
"line": 15,
"column": 45
}
}
},
"range": [
429,
470
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 45
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
499,
503
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "closed",
"range": [
504,
510
],
"loc": {
"start": {
"line": 16,
"column": 17
},
"end": {
"line": 16,
"column": 23
}
}
},
"range": [
499,
510
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 23
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": null,
"range": [
526,
533
],
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 19
}
}
}
],
"range": [
512,
543
],
"loc": {
"start": {
"line": 16,
"column": 25
},
"end": {
"line": 18,
"column": 9
}
}
},
"alternate": null,
"range": [
495,
543
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 18,
"column": 9
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
552,
556
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "closed",
"range": [
557,
563
],
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 19
}
}
},
"range": [
552,
563
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 19
}
}
},
"right": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
566,
570
],
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 26
}
}
},
"range": [
552,
570
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 26
}
}
},
"range": [
552,
571
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 27
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "subject",
"range": [
584,
591
],
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 19
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
594,
598
],
"loc": {
"start": {
"line": 20,
"column": 22
},
"end": {
"line": 20,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "subject",
"range": [
599,
606
],
"loc": {
"start": {
"line": 20,
"column": 27
},
"end": {
"line": 20,
"column": 34
}
}
},
"range": [
594,
606
],
"loc": {
"start": {
"line": 20,
"column": 22
},
"end": {
"line": 20,
"column": 34
}
}
},
"range": [
584,
606
],
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 34
}
}
}
],
"kind": "var",
"range": [
580,
607
],
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "observers",
"range": [
620,
629
],
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 21
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "subject",
"range": [
632,
639
],
"loc": {
"start": {
"line": 21,
"column": 24
},
"end": {
"line": 21,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "observers",
"range": [
640,
649
],
"loc": {
"start": {
"line": 21,
"column": 32