@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,211 lines (1,210 loc) • 64.5 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "Literal",
"value": "use strict",
"raw": "\"use strict\"",
"range": [
0,
12
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 12
}
}
},
"range": [
0,
13
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "chai_1",
"range": [
18,
24
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 10
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
27,
34
],
"loc": {
"start": {
"line": 2,
"column": 13
},
"end": {
"line": 2,
"column": 20
}
}
},
"arguments": [
{
"type": "Literal",
"value": "chai",
"raw": "'chai'",
"range": [
35,
41
],
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"column": 27
}
}
}
],
"range": [
27,
42
],
"loc": {
"start": {
"line": 2,
"column": 13
},
"end": {
"line": 2,
"column": 28
}
}
},
"range": [
18,
42
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 28
}
}
}
],
"kind": "var",
"range": [
14,
43
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 29
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "root_1",
"range": [
48,
54
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 10
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
57,
64
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 20
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/util/root",
"raw": "'../../dist/cjs/util/root'",
"range": [
65,
91
],
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 47
}
}
}
],
"range": [
57,
92
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 48
}
}
},
"range": [
48,
92
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 48
}
}
}
],
"kind": "var",
"range": [
44,
93
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 49
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "rxSubscriber_1",
"range": [
98,
112
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 18
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
115,
122
],
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 28
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/symbol/rxSubscriber",
"raw": "'../../dist/cjs/symbol/rxSubscriber'",
"range": [
123,
159
],
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 65
}
}
}
],
"range": [
115,
160
],
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 66
}
}
},
"range": [
98,
160
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 66
}
}
}
],
"kind": "var",
"range": [
94,
161
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 67
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
162,
170
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "rxSubscriber symbol",
"raw": "'rxSubscriber symbol'",
"range": [
171,
192
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 30
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
212,
214
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should exist in the proper form",
"raw": "'should exist in the proper form'",
"range": [
215,
248
],
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 40
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root_1",
"range": [
276,
282
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
283,
287
],
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 23
}
}
},
"range": [
276,
287
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "Symbol",
"range": [
288,
294
],
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 30
}
}
},
"range": [
276,
294
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 30
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root_1",
"range": [
298,
304
],
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
305,
309
],
"loc": {
"start": {
"line": 7,
"column": 41
},
"end": {
"line": 7,
"column": 45
}
}
},
"range": [
298,
309
],
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "Symbol",
"range": [
310,
316
],
"loc": {
"start": {
"line": 7,
"column": 46
},
"end": {
"line": 7,
"column": 52
}
}
},
"range": [
298,
316
],
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 52
}
}
},
"property": {
"type": "Identifier",
"name": "for",
"range": [
317,
320
],
"loc": {
"start": {
"line": 7,
"column": 53
},
"end": {
"line": 7,
"column": 56
}
}
},
"range": [
298,
320
],
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 56
}
}
},
"range": [
276,
320
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 56
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "chai_1",
"range": [
336,
342
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "expect",
"range": [
343,
349
],
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 25
}
}
},
"range": [
336,
349
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 25
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "rxSubscriber_1",
"range": [
350,
364
],
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"name": "$$rxSubscriber",
"range": [
365,
379
],
"loc": {
"start": {
"line": 8,
"column": 41
},
"end": {
"line": 8,
"column": 55
}
}
},
"range": [
350,
379
],
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 55
}
}
}
],
"range": [
336,
380
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 56
}
}
},
"property": {
"type": "Identifier",
"name": "to",
"range": [
381,
383
],
"loc": {
"start": {
"line": 8,
"column": 57
},
"end": {
"line": 8,
"column": 59
}
}
},
"range": [
336,
383
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 59
}
}
},
"property": {
"type": "Identifier",
"name": "equal",
"range": [
384,
389
],
"loc": {
"start": {
"line": 8,
"column": 60
},
"end": {
"line": 8,
"column": 65
}
}
},
"range": [
336,
389
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 65
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root_1",
"range": [
390,
396
],
"loc": {
"start": {
"line": 8,
"column": 66
},
"end": {
"line": 8,
"column": 72
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
397,
401
],
"loc": {
"start": {
"line": 8,
"column": 73
},
"end": {
"line": 8,
"column": 77
}
}
},
"range": [
390,
401
],
"loc": {
"start": {
"line": 8,
"column": 66
},
"end": {
"line": 8,
"column": 77
}
}
},
"property": {
"type": "Identifier",
"name": "Symbol",
"range": [
402,
408
],
"loc": {
"start": {
"line": 8,
"column": 78
},
"end": {
"line": 8,
"column": 84
}
}
},
"range": [
390,
408
],
"loc": {
"start": {
"line": 8,
"column": 66
},
"end": {
"line": 8,
"column": 84
}
}
},
"property": {
"type": "Identifier",
"name": "for",
"range": [
409,
412
],
"loc": {
"start": {
"line": 8,
"column": 85
},
"end": {
"line": 8,
"column": 88
}
}
},
"range": [
390,
412
],
"loc": {
"start": {
"line": 8,
"column": 66
},
"end": {
"line": 8,
"column": 88
}
}
},
"arguments": [
{
"type": "Literal",
"value": "rxSubscriber",
"raw": "'rxSubscriber'",
"range": [
413,
427
],
"loc": {
"start": {
"line": 8,
"column": 89
},
"end": {
"line": 8,
"column": 103
}
}
}
],
"range": [
390,
428
],
"loc": {
"start": {
"line": 8,
"column": 66
},
"end": {
"line": 8,
"column": 104
}
}
}
],
"range": [
336,
429
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 105
}
}
},
"range": [
336,
430
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 106
}
}
}
],
"range": [
322,
440
],
"loc": {
"start": {
"line": 7,
"column": 58
},
"end": {
"line": 9,
"column": 9
}
}
},
"alternate": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "chai_1",
"range": [
468,
474
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "expect",
"range": [
475,
481
],
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 25
}
}
},
"range": [
468,
481
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 25
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "rxSubscriber_1",
"range": [
482,
496
],
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {