@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,358 lines (1,357 loc) • 2.98 MB
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": "Rx",
"range": [
48,
50
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 6
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
53,
60
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 16
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/Rx",
"raw": "'../../dist/cjs/Rx'",
"range": [
61,
80
],
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 36
}
}
}
],
"range": [
53,
81
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 37
}
}
},
"range": [
48,
81
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 37
}
}
}
],
"kind": "var",
"range": [
44,
82
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 38
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "Observable",
"range": [
87,
97
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 14
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Rx",
"range": [
100,
102
],
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "Observable",
"range": [
103,
113
],
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 30
}
}
},
"range": [
100,
113
],
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 30
}
}
},
"range": [
87,
113
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 30
}
}
}
],
"kind": "var",
"range": [
83,
114
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 31
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "queueScheduler",
"range": [
119,
133
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 18
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Rx",
"range": [
136,
138
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "Scheduler",
"range": [
139,
148
],
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 33
}
}
},
"range": [
136,
148
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "queue",
"range": [
149,
154
],
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 39
}
}
},
"range": [
136,
154
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 39
}
}
},
"range": [
119,
154
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 39
}
}
}
],
"kind": "var",
"range": [
115,
155
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 40
}
},
"trailingComments": [
{
"type": "Block",
"value": "* @test {combineLatest} ",
"range": [
156,
184
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 28
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
185,
193
],
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "Observable.combineLatest",
"raw": "'Observable.combineLatest'",
"range": [
194,
220
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 35
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
240,
242
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should combineLatest the provided observables",
"raw": "'should combineLatest the provided observables'",
"range": [
243,
290
],
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 54
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "firstSource",
"range": [
318,
329
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 23
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "hot",
"range": [
332,
335
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 29
}
}
},
"arguments": [
{
"type": "Literal",
"value": "----a----b----c----|",
"raw": "'----a----b----c----|'",
"range": [
336,
358
],
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 52
}
}
}
],
"range": [
332,
359
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 53
}
}
},
"range": [
318,
359
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 53
}
}
}
],
"kind": "var",
"range": [
314,
360
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 54
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "secondSource",
"range": [
373,
385
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 24
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "hot",
"range": [
388,
391
],
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 30
}
}
},
"arguments": [
{
"type": "Literal",
"value": "--d--e--f--g--|",
"raw": "'--d--e--f--g--|'",
"range": [
392,
409
],
"loc": {
"start": {
"line": 10,
"column": 31
},
"end": {
"line": 10,
"column": 48
}
}
}
],
"range": [
388,
410
],
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 49
}
}
},
"range": [
373,
410
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 49
}
}
}
],
"kind": "var",
"range": [
369,
411
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 50
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "expected",
"range": [
424,
432
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 20
}
}
},
"init": {
"type": "Literal",
"value": "----uv--wx-y--z----|",
"raw": "'----uv--wx-y--z----|'",
"range": [
435,
457
],
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 45
}
}
},
"range": [
424,
457
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 45
}
}
}
],
"kind": "var",
"range": [
420,
458
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 46
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "combined",
"range": [
471,
479
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 20
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Observable",
"range": [
482,
492
],
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "combineLatest",
"range": [
493,
506
],
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 47
}
}
},
"range": [
482,
506
],
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 47
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "firstSource",
"range": [
507,
518
],
"loc": {
"start": {
"line": 12,
"column": 48
},
"end": {
"line": 12,
"column": 59
}
}
},
{
"type": "Identifier",
"name": "secondSource",
"range": [
520,
532
],
"loc": {
"start": {
"line": 12,
"column": 61
},
"end": {
"line": 12,
"column": 73
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "a",
"range": [
544,
545
],
"loc": {
"start": {
"line": 12,
"column": 85
},
"end": {
"line": 12,
"column": 86
}
}
},
{
"type": "Identifier",
"name": "b",
"range": [
547,
548
],
"loc": {
"start": {
"line": 12,
"column": 88
},
"end": {
"line": 12,
"column": 89
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Literal",
"value": "",
"raw": "''",
"range": [
559,
561
],
"loc": {
"start": {
"line": 12,
"column": 100
},
"end": {
"line": 12,
"column": 102
}
}
},
"right": {
"type": "Identifier",
"name": "a",
"range": [
564,
565
],
"loc": {
"start": {
"line": 12,
"column": 105
},
"end": {
"line": 12,
"column": 106
}
}
},
"range": [
559,
565
],
"loc": {
"start": {
"line": 12,
"column": 100
},
"end": {
"line": 12,
"column": 106
}
}
},
"right": {
"type": "Identifier",
"name": "b",
"range": [
568,
569
],
"loc": {
"start": {
"line": 12,
"column": 109
},
"end": {
"line": 12,
"column": 110
}
}
},
"range": [
559,
569
],
"loc": {
"start": {
"line": 12,
"column": 100
},
"end": {
"line": 12,
"column": 110
}
}
},
"range": [
552,
570
],
"loc": {
"start": {
"line": 12,
"column": 93
},
"end": {
"line": 12,
"column": 111
}
}
}
],
"range": [
550,
572
],
"loc": {
"start": {
"line": 12,
"column": 91
},
"end": {
"line": 12,
"column": 113
}
}
},
"generator": false,
"expression": false,
"range": [
534,
572
],
"loc": {
"start": {
"line": 12,
"column": 75
},
"end": {
"line": 12,
"column": 113
}
}
}
],
"range": [
482,
573
],
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 114
}
}
},
"range": [
471,
573
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 114
}
}
}
],
"kind": "var",
"range": [
467,
574
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 115
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "expectObservable",
"range": [
583,
599
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 24
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "combined",
"range": [
600,
608
],
"loc": {
"start": {
"line": 13,
"column": 25
},
"end": {
"line": 13,
"column": 33
}
}
}
],
"range": [
583,
609
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "toBe",
"range": [
610,
614
],
"loc": {
"start": {
"line": 13,
"column": 35
},
"end": {
"line": 13,
"column": 39
}
}