@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,214 lines (1,213 loc) • 162 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Observable",
"range": [
9,
19
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
}
},
"imported": {
"type": "Identifier",
"name": "Observable",
"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": "../Observable",
"raw": "'../Observable'",
"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
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "SubscriptionLoggable",
"range": [
101,
121
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 29
}
}
},
"imported": {
"type": "Identifier",
"name": "SubscriptionLoggable",
"range": [
101,
121
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 29
}
}
},
"range": [
101,
121
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 29
}
}
}
],
"source": {
"type": "Literal",
"value": "./SubscriptionLoggable",
"raw": "'./SubscriptionLoggable'",
"range": [
129,
153
],
"loc": {
"start": {
"line": 3,
"column": 37
},
"end": {
"line": 3,
"column": 61
}
}
},
"range": [
92,
154
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 62
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "applyMixins",
"range": [
164,
175
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 20
}
}
},
"imported": {
"type": "Identifier",
"name": "applyMixins",
"range": [
164,
175
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 20
}
}
},
"range": [
164,
175
],
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 20
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/applyMixins",
"raw": "'../util/applyMixins'",
"range": [
183,
204
],
"loc": {
"start": {
"line": 4,
"column": 28
},
"end": {
"line": 4,
"column": 49
}
}
},
"range": [
155,
205
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 50
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ",
"range": [
206,
297
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "ColdObservable",
"range": [
309,
323
],
"loc": {
"start": {
"line": 10,
"column": 11
},
"end": {
"line": 10,
"column": 25
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
337,
343
],
"loc": {
"start": {
"line": 10,
"column": 39
},
"end": {
"line": 10,
"column": 45
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
351,
360
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "ColdObservable",
"range": [
361,
375
],
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
377,
383
],
"loc": {
"start": {
"line": 11,
"column": 30
},
"end": {
"line": 11,
"column": 36
}
}
}
],
"range": [
351,
384
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 37
}
}
},
"range": [
351,
385
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 38
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "ColdObservable",
"range": [
399,
413
],
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 27
}
}
},
"params": [
{
"type": "Identifier",
"name": "messages",
"range": [
414,
422
],
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 36
}
}
},
{
"type": "Identifier",
"name": "scheduler",
"range": [
424,
433
],
"loc": {
"start": {
"line": 12,
"column": 38
},
"end": {
"line": 12,
"column": 47
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
445,
451
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
452,
456
],
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 19
}
}
},
"range": [
445,
456
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
457,
461
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 24
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
473,
483
],
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 46
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "observable",
"range": [
503,
513
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 26
}
}
},
"init": {
"type": "ThisExpression",
"range": [
516,
520
],
"loc": {
"start": {
"line": 14,
"column": 29
},
"end": {
"line": 14,
"column": 33
}
}
},
"range": [
503,
520
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 33
}
}
}
],
"kind": "var",
"range": [
499,
521
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 34
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "index",
"range": [
538,
543
],
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "observable",
"range": [
546,
556
],
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "logSubscribedFrame",
"range": [
557,
575
],
"loc": {
"start": {
"line": 15,
"column": 35
},
"end": {
"line": 15,
"column": 53
}
}
},
"range": [
546,
575
],
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 53
}
}
},
"arguments": [],
"range": [
546,
577
],
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 55
}
}
},
"range": [
538,
577
],
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 55
}
}
}
],
"kind": "var",
"range": [
534,
578
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 56
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "subscriber",
"range": [
591,
601
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "add",
"range": [
602,
605
],
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 26
}
}
},
"range": [
591,
605
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 26
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Subscription",
"range": [
610,
622
],
"loc": {
"start": {
"line": 16,
"column": 31
},
"end": {
"line": 16,
"column": 43
}
}
},
"arguments": [
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "observable",
"range": [
653,
663
],
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "logUnsubscribedFrame",
"range": [
664,
684
],
"loc": {
"start": {
"line": 17,
"column": 27
},
"end": {
"line": 17,
"column": 47
}
}
},
"range": [
653,
684
],
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 47
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "index",
"range": [
685,
690
],
"loc": {
"start": {
"line": 17,
"column": 48
},
"end": {
"line": 17,
"column": 53
}
}
}
],
"range": [
653,
691
],
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 54
}
}
},
"range": [
653,
692
],
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 55
}
}
}
],
"range": [
635,
706
],
"loc": {
"start": {
"line": 16,
"column": 56
},
"end": {
"line": 18,
"column": 13
}
}
},
"generator": false,
"expression": false,
"range": [
623,
706
],
"loc": {
"start": {
"line": 16,
"column": 44
},
"end": {
"line": 18,
"column": 13
}
}
}
],
"range": [
606,
707
],
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 18,
"column": 14
}
}
}
],
"range": [
591,
708
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 18,
"column": 15
}
}
},
"range": [
591,
709
],
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 18,
"column": 16
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "observable",
"range": [
722,
732
],
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "scheduleMessages",
"range": [
733,
749
],
"loc": {
"start": {
"line": 19,
"column": 23
},
"end": {
"line": 19,
"column": 39
}
}
},
"range": [
722,
749