@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,184 lines (1,183 loc) • 72.4 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "SubscriptionLog",
"range": [
9,
24
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 24
}
}
},
"imported": {
"type": "Identifier",
"name": "SubscriptionLog",
"range": [
9,
24
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 24
}
}
},
"range": [
9,
24
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 24
}
}
}
],
"source": {
"type": "Literal",
"value": "./SubscriptionLog",
"raw": "'./SubscriptionLog'",
"range": [
32,
51
],
"loc": {
"start": {
"line": 1,
"column": 32
},
"end": {
"line": 1,
"column": 51
}
}
},
"range": [
0,
52
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
}
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "SubscriptionLoggable",
"range": [
64,
84
],
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 31
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "SubscriptionLoggable",
"range": [
115,
135
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 33
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
148,
152
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "subscriptions",
"range": [
153,
166
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 26
}
}
},
"range": [
148,
166
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 26
}
}
},
"right": {
"type": "ArrayExpression",
"elements": [],
"range": [
169,
171
],
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 31
}
}
},
"range": [
148,
171
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 31
}
}
},
"range": [
148,
172
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 32
}
}
}
],
"range": [
138,
178
],
"loc": {
"start": {
"line": 3,
"column": 36
},
"end": {
"line": 5,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
106,
178
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 5,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "SubscriptionLoggable",
"range": [
183,
203
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
204,
213
],
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 34
}
}
},
"range": [
183,
213
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "logSubscribedFrame",
"range": [
214,
232
],
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 53
}
}
},
"range": [
183,
232
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 53
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
257,
261
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "subscriptions",
"range": [
262,
275
],
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 26
}
}
},
"range": [
257,
275
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
276,
280
],
"loc": {
"start": {
"line": 7,
"column": 27
},
"end": {
"line": 7,
"column": 31
}
}
},
"range": [
257,
280
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 31
}
}
},
"arguments": [
{
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "SubscriptionLog",
"range": [
285,
300
],
"loc": {
"start": {
"line": 7,
"column": 36
},
"end": {
"line": 7,
"column": 51
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
301,
305
],
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 56
}
}
},
"property": {
"type": "Identifier",
"name": "scheduler",
"range": [
306,
315
],
"loc": {
"start": {
"line": 7,
"column": 57
},
"end": {
"line": 7,
"column": 66
}
}
},
"range": [
301,
315
],
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 66
}
}
},
"property": {
"type": "Identifier",
"name": "now",
"range": [
316,
319
],
"loc": {
"start": {
"line": 7,
"column": 67
},
"end": {
"line": 7,
"column": 70
}
}
},
"range": [
301,
319
],
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 70
}
}
},
"arguments": [],
"range": [
301,
321
],
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 72
}
}
}
],
"range": [
281,
322
],
"loc": {
"start": {
"line": 7,
"column": 32
},
"end": {
"line": 7,
"column": 73
}
}
}
],
"range": [
257,
323
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 74
}
}
},
"range": [
257,
324
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 75
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
340,
344
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "subscriptions",
"range": [
345,
358
],
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 33
}
}
},
"range": [
340,
358
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
359,
365
],
"loc": {
"start": {
"line": 8,
"column": 34
},
"end": {
"line": 8,
"column": 40
}
}
},
"range": [
340,
365
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 40
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
368,
369
],
"loc": {
"start": {
"line": 8,
"column": 43
},
"end": {
"line": 8,
"column": 44
}
}
},
"range": [
340,
369
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 44
}
}
},
"range": [
333,
370
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 45
}
}
}
],
"range": [
247,
376
],
"loc": {
"start": {
"line": 6,
"column": 68
},
"end": {
"line": 9,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
235,
376
],
"loc": {
"start": {
"line": 6,
"column": 56
},
"end": {
"line": 9,
"column": 5
}
}
},
"range": [
183,
376
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
}
},
"range": [
183,
377
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 9,
"column": 6
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "SubscriptionLoggable",
"range": [
382,
402
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
403,
412
],
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 34
}
}
},
"range": [
382,
412
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "logUnsubscribedFrame",
"range": [
413,
433
],
"loc": {
"start": {
"line": 10,
"column": 35
},
"end": {
"line": 10,
"column": 55
}
}
},
"range": [
382,
433
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 55
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "index",
"range": [
446,
451
],
"loc": {
"start": {
"line": 10,
"column": 68
},
"end": {
"line": 10,
"column": 73
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "subscriptionLogs",
"range": [
467,
483
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 28
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
486,
490
],
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "subscriptions",
"range": [
491,
504
],
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 49
}
}
},
"range": [
486,
504
],
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 49
}
}
},
"range": [
467,
504
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 49
}
}
}
],
"kind": "var",
"range": [
463,
505
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 50
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "oldSubscriptionLog",
"range": [
518,
536
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 30
}
}
},
"init": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "subscriptionLogs",
"range": [
539,
555
],
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 49
}
}
},
"property": {
"type": "Identifier",
"name": "index",
"range": [
556,
561
],
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 55
}
}
},
"range": [
539,
562
],
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 56
}
}
},
"range": [
518,
562
],
"loc": {
"start": {
"line": 12,
"column": 12
},