@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,314 lines (1,313 loc) • 64.9 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": "symbol_observable_1",
"range": [
48,
67
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 23
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
70,
77
],
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 33
}
}
},
"arguments": [
{
"type": "Literal",
"value": "symbol-observable",
"raw": "'symbol-observable'",
"range": [
78,
97
],
"loc": {
"start": {
"line": 3,
"column": 34
},
"end": {
"line": 3,
"column": 53
}
}
}
],
"range": [
70,
98
],
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 54
}
}
},
"range": [
48,
98
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 54
}
}
}
],
"kind": "var",
"range": [
44,
99
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 55
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "root_1",
"range": [
104,
110
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 10
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
113,
120
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 20
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/util/root",
"raw": "'../../dist/cjs/util/root'",
"range": [
121,
147
],
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 47
}
}
}
],
"range": [
113,
148
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 48
}
}
},
"range": [
104,
148
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 48
}
}
}
],
"kind": "var",
"range": [
100,
149
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 49
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "observable_1",
"range": [
154,
166
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 16
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
169,
176
],
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 26
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/symbol/observable",
"raw": "'../../dist/cjs/symbol/observable'",
"range": [
177,
211
],
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 61
}
}
}
],
"range": [
169,
212
],
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 62
}
}
},
"range": [
154,
212
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 62
}
}
}
],
"kind": "var",
"range": [
150,
213
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 63
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
214,
222
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "observable symbol",
"raw": "'observable symbol'",
"range": [
223,
242
],
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 28
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
262,
264
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should exist in the proper form",
"raw": "'should exist in the proper form'",
"range": [
265,
298
],
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 40
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "$$observable",
"range": [
326,
338
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 24
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "observable_1",
"range": [
341,
353
],
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"name": "getSymbolObservable",
"range": [
354,
373
],
"loc": {
"start": {
"line": 8,
"column": 40
},
"end": {
"line": 8,
"column": 59
}
}
},
"range": [
341,
373
],
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 59
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root_1",
"range": [
374,
380
],
"loc": {
"start": {
"line": 8,
"column": 60
},
"end": {
"line": 8,
"column": 66
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
381,
385
],
"loc": {
"start": {
"line": 8,
"column": 67
},
"end": {
"line": 8,
"column": 71
}
}
},
"range": [
374,
385
],
"loc": {
"start": {
"line": 8,
"column": 60
},
"end": {
"line": 8,
"column": 71
}
}
}
],
"range": [
341,
386
],
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 72
}
}
},
"range": [
326,
386
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 72
}
}
}
],
"kind": "var",
"range": [
322,
387
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 73
}
}
},
{
"type": "IfStatement",
"test": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root_1",
"range": [
400,
406
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
407,
411
],
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 9,
"column": 23
}
}
},
"range": [
400,
411
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "Symbol",
"range": [
412,
418
],
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 30
}
}
},
"range": [
400,
418
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 30
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "root_1",
"range": [
422,
428
],
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"name": "root",
"range": [
429,
433
],
"loc": {
"start": {
"line": 9,
"column": 41
},
"end": {
"line": 9,
"column": 45
}
}
},
"range": [
422,
433
],
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "Symbol",
"range": [
434,
440
],
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 52
}
}
},
"range": [
422,
440
],
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 52
}
}
},
"property": {
"type": "Identifier",
"name": "for",
"range": [
441,
444
],
"loc": {
"start": {
"line": 9,
"column": 53
},
"end": {
"line": 9,
"column": 56
}
}
},
"range": [
422,
444
],
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 56
}
}
},
"range": [
400,
444
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"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": [
460,
466
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "expect",
"range": [
467,
473
],
"loc": {
"start": {
"line": 10,
"column": 19
},
"end": {
"line": 10,
"column": 25
}
}
},
"range": [
460,
473
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 25
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "$$observable",
"range": [
474,
486
],
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 38
}
}
}
],
"range": [
460,
487
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"name": "to",
"range": [
488,
490
],
"loc": {
"start": {
"line": 10,
"column": 40
},
"end": {
"line": 10,
"column": 42
}
}
},
"range": [
460,
490
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"name": "equal",
"range": [
491,
496
],
"loc": {
"start": {
"line": 10,
"column": 43
},
"end": {
"line": 10,
"column": 48
}
}
},
"range": [
460,
496
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 48
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "symbol_observable_1",
"range": [
497,
516
],
"loc": {
"start": {
"line": 10,
"column": 49
},
"end": {
"line": 10,
"column": 68
}
}
},
"property": {
"type": "Identifier",
"name": "default",
"range": [
517,
524
],
"loc": {
"start": {
"line": 10,
"column": 69
},
"end": {
"line": 10,
"column": 76
}
}
},
"range": [
497,
524
],
"loc": {
"start": {
"line": 10,
"column": 49
},
"end": {
"line": 10,
"column": 76
}
}
}
],
"range": [
460,
525
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 77
}
}
},
"range": [
460,
526
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 78
}
}
}
],
"range": [
446,
536
],
"loc": {
"start": {
"line": 9,
"column": 58
},
"end": {
"line": 11,
"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": [
564,
570
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "expect",
"range": [
571,
577