@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,439 lines (1,438 loc) • 835 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": "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": "AsyncSubject",
"range": [
87,
99
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 16
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Rx",
"range": [
102,
104
],
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "AsyncSubject",
"range": [
105,
117
],
"loc": {
"start": {
"line": 4,
"column": 22
},
"end": {
"line": 4,
"column": 34
}
}
},
"range": [
102,
117
],
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 34
}
}
},
"range": [
87,
117
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 34
}
}
}
],
"kind": "var",
"range": [
83,
118
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "TestObserver",
"range": [
123,
135
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 16
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "TestObserver",
"range": [
166,
178
],
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 25
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
191,
195
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "results",
"range": [
196,
203
],
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 20
}
}
},
"range": [
191,
203
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 20
}
}
},
"right": {
"type": "ArrayExpression",
"elements": [],
"range": [
206,
208
],
"loc": {
"start": {
"line": 7,
"column": 23
},
"end": {
"line": 7,
"column": 25
}
}
},
"range": [
191,
208
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 25
}
}
},
"range": [
191,
209
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 26
}
}
}
],
"range": [
181,
215
],
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 8,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
157,
215
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "TestObserver",
"range": [
220,
232
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
233,
242
],
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 26
}
}
},
"range": [
220,
242
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "next",
"range": [
243,
247
],
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 31
}
}
},
"range": [
220,
247
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 31
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "value",
"range": [
260,
265
],
"loc": {
"start": {
"line": 9,
"column": 44
},
"end": {
"line": 9,
"column": 49
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
277,
281
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "results",
"range": [
282,
289
],
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
}
}
},
"range": [
277,
289
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
290,
294
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 25
}
}
},
"range": [
277,
294
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 25
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "value",
"range": [
295,
300
],
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 31
}
}
}
],
"range": [
277,
301
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 32
}
}
},
"range": [
277,
302
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
}
}
],
"range": [
267,
308
],
"loc": {
"start": {
"line": 9,
"column": 51
},
"end": {
"line": 11,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
250,
308
],
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 11,
"column": 5
}
}
},
"range": [
220,
308
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
}
},
"range": [
220,
309
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 6
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "TestObserver",
"range": [
314,
326
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
327,
336
],
"loc": {
"start": {
"line": 12,
"column": 17
},
"end": {
"line": 12,
"column": 26
}
}
},
"range": [
314,
336
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "error",
"range": [
337,
342
],
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 32
}
}
},
"range": [
314,
342
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 32
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "err",
"range": [
355,
358
],
"loc": {
"start": {
"line": 12,
"column": 45
},
"end": {
"line": 12,
"column": 48
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
370,
374
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "results",
"range": [
375,
382
],
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 20
}
}
},
"range": [
370,
382
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
383,
387
],
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 25
}
}
},
"range": [
370,
387
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 25
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "err",
"range": [
388,
391
],
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 29
}
}
}
],
"range": [
370,
392
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 30
}
}
},
"range": [
370,
393
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 31
}
}
}
],
"range": [
360,
399
],
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 14,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
345,
399
],
"loc": {
"start": {
"line": 12,
"column": 35
},
"end": {
"line": 14,
"column": 5
}
}
},
"range": [
314,
399
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
}
},
"range": [
314,
400
],
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 14,
"column": 6
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "TestObserver",
"range": [
405,
417
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
418,
427
],
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 26
}
}
},
"range": [
405,
427
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "complete",
"range": [
428,
436
],
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 35
}
}
},
"range": [
405,
436
],
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 35
}
}
},
"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": [
461,
465
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "results",
"range": [
466,
473
],
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 20
}
}
},
"range": [
461,
473
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
474,
478
],
"loc": {
"start": {
"line": 16,
"column": 21
},
"end": {
"line": 16,
"column": 25
}
}
},
"range": [
461,
478
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 25
}
}
},
"arguments": [
{
"type": "Literal",
"value": "done",
"raw": "'done'",
"range": [
479,
485
],
"loc": {
"start": {
"line": 16,
"column": 26
},
"end": {
"line": 16,
"column": 32
}
}
}
],
"range": [
461,
486