@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,229 lines • 1.27 MB
JSON
{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "booleans",
"range": [
4,
12
],
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 12
}
}
},
"init": {
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "T",
"range": [
17,
18
],
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 18
}
}
},
"value": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
20,
24
],
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 24
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
17,
24
],
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 24
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "F",
"range": [
26,
27
],
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 27
}
}
},
"value": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
29,
34
],
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 34
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
26,
34
],
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 34
}
}
}
],
"range": [
15,
36
],
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 36
}
}
},
"range": [
4,
36
],
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 36
}
}
}
],
"kind": "var",
"range": [
0,
37
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 37
}
},
"trailingComments": [
{
"type": "Block",
"value": "* @test {sequenceEqual} ",
"range": [
38,
66
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 28
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
67,
75
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "Observable.prototype.sequenceEqual",
"raw": "'Observable.prototype.sequenceEqual'",
"range": [
76,
112
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 45
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "asDiagram",
"range": [
132,
141
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 13
}
}
},
"arguments": [
{
"type": "Literal",
"value": "sequenceEqual(observable)",
"raw": "'sequenceEqual(observable)'",
"range": [
142,
169
],
"loc": {
"start": {
"line": 4,
"column": 14
},
"end": {
"line": 4,
"column": 41
}
}
}
],
"range": [
132,
170
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 42
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should return true for two equal sequences",
"raw": "'should return true for two equal sequences'",
"range": [
171,
215
],
"loc": {
"start": {
"line": 4,
"column": 43
},
"end": {
"line": 4,
"column": 87
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "s1",
"range": [
243,
245
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 14
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "hot",
"range": [
248,
251
],
"loc": {
"start": {
"line": 5,
"column": 17
},
"end": {
"line": 5,
"column": 20
}
}
},
"arguments": [
{
"type": "Literal",
"value": "--a--^--b--c--d--e--f--g--|",
"raw": "'--a--^--b--c--d--e--f--g--|'",
"range": [
252,
281
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 50
}
}
}
],
"range": [
248,
282
],
"loc": {
"start": {
"line": 5,
"column": 17
},
"end": {
"line": 5,
"column": 51
}
}
},
"range": [
243,
282
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 51
}
}
}
],
"kind": "var",
"range": [
239,
283
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 52
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "s1subs",
"range": [
296,
302
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 18
}
}
},
"init": {
"type": "Literal",
"value": "^ !",
"raw": "'^ !'",
"range": [
305,
333
],
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 49
}
}
},
"range": [
296,
333
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 49
}
}
}
],
"kind": "var",
"range": [
292,
334
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 50
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "s2",
"range": [
347,
349
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 14
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "hot",
"range": [
352,
355
],
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 20
}
}
},
"arguments": [
{
"type": "Literal",
"value": "-----^-----b--c--d-e-f------g-|",
"raw": "'-----^-----b--c--d-e-f------g-|'",
"range": [
356,
389
],
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 54
}
}
}
],
"range": [
352,
390
],
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 55
}
}
},
"range": [
347,
390
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 55
}
}
}
],
"kind": "var",
"range": [
343,
391
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 56
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "s2subs",
"range": [
404,
410
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 18
}
}
},
"init": {
"type": "Literal",
"value": "^ !",
"raw": "'^ !'",
"range": [
413,
441
],
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 49
}
}
},
"range": [
404,
441
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 49
}
}
}
],
"kind": "var",
"range": [
400,
442
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 50
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "expected",
"range": [
455,
463
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 20
}
}
},
"init": {
"type": "Literal",
"value": "-------------------------(T|)",
"raw": "'-------------------------(T|)'",
"range": [
466,
497
],
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 54
}
}
},
"range": [
455,
497
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 54
}
}
}
],
"kind": "var",
"range": [
451,
498
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 55
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "source",
"range": [
511,
517
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 18
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "s1",
"range": [
520,
522
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "sequenceEqual",
"range": [
523,
536
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 37
}
}
},
"range": [
520,
536
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 37
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "s2",
"range": [
537,
539
],
"loc": {
"start": {
"line": 10,
"column": 38
},
"end": {
"line": 10,
"column": 40
}
}
}
],
"range": [
520,
540
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 41
}
}
},
"range": [
511,
540
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 41
}
}
}
],
"kind": "var",
"range": [
507,
541
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 42
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "expectObservable",
"range": [
550,
566
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 24
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "source",
"range": [
567,
573
],
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 11,
"column": 31
}
}
}
],
"range": [
550,
574
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "toBe",
"range": [
575,
579
],
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 37
}
}
},
"range": [
550,
579
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 37
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "expected",
"range": [
580,
588
],
"loc": {
"start": {
"line": 11,
"column": 38
},
"end": {
"line": 11,
"column": 46
}
}
},
{
"type": "Identifier",
"name": "booleans",
"range": [
590,
598
],
"loc": {
"start": {
"line": 11,
"column": 48
},
"end": {
"line": 11,
"column": 56
}
}
}
],
"range": [
550,
599
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 57
}
}
},
"range": [
550,
600
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 58
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "expectSubscriptions",
"range": [
609,
628
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 27
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "s1",
"range": [
629,
631
],
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"name": "subscriptions",
"range": [
632,
645
],
"loc": {
"start": {
"line": 12,
"column": 31
},
"end": {
"line": 12,
"column": 44
}
}
},
"range": [
629,
645
],
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 44
}
}
}
],
"range": [
609,
646
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "toBe",
"range": [
647,
651
],
"loc": {
"start": {
"line": 12,
"column": 46
},
"end": {
"line": 12,
"column": 50
}
}
},
"range": [
609,
651
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"li