@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,276 lines • 43.7 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Observable",
"range": [
9,
19
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
}
},
"imported": {
"type": "Identifier",
"name": "Observable",
"range": [
9,
19
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
}
},
"range": [
9,
19
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
}
}
],
"source": {
"type": "Literal",
"value": "../Observable",
"raw": "'../Observable'",
"range": [
27,
42
],
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 42
}
}
},
"range": [
0,
43
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 43
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "noop",
"range": [
53,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 13
}
}
},
"imported": {
"type": "Identifier",
"name": "noop",
"range": [
53,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 13
}
}
},
"range": [
53,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "../util/noop",
"raw": "'../util/noop'",
"range": [
65,
79
],
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"column": 35
}
}
},
"range": [
44,
80
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ",
"range": [
81,
175
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "NeverObservable",
"range": [
187,
202
],
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 26
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "_super",
"range": [
216,
222
],
"loc": {
"start": {
"line": 8,
"column": 40
},
"end": {
"line": 8,
"column": 46
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "__extends",
"range": [
230,
239
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "NeverObservable",
"range": [
240,
255
],
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 29
}
}
},
{
"type": "Identifier",
"name": "_super",
"range": [
257,
263
],
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 37
}
}
}
],
"range": [
230,
264
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 38
}
}
},
"range": [
230,
265
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 39
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "NeverObservable",
"range": [
279,
294
],
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 28
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_super",
"range": [
307,
313
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
314,
318
],
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 11,
"column": 19
}
}
},
"range": [
307,
318
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 19
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
319,
323
],
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 24
}
}
}
],
"range": [
307,
324
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 25
}
}
},
"range": [
307,
325
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 26
}
}
}
],
"range": [
297,
331
],
"loc": {
"start": {
"line": 10,
"column": 31
},
"end": {
"line": 12,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
270,
331
],
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 12,
"column": 5
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Creates an Observable that emits no items to the Observer.\n *\n * <span class=\"informal\">An Observable that never emits anything.</span>\n *\n * <img src=\"./img/never.png\" width=\"100%\">\n *\n * This static operator is useful for creating a simple Observable that emits\n * neither values nor errors nor the completion notification. It can be used\n * for testing purposes or for composing with other Observables. Please not\n * that by never emitting a complete notification, this Observable keeps the\n * subscription from being disposed automatically. Subscriptions need to be\n * manually disposed.\n *\n * @example <caption>Emit the number 7, then never emit anything else (not even complete).</caption>\n * function info() {\n * console.log('Will not be called');\n * }\n * var result = Rx.Observable.never().startWith(7);\n * result.subscribe(x => console.log(x), info, info);\n *\n * @see {@link create}\n * @see {@link empty}\n * @see {@link of}\n * @see {@link throw}\n *\n * @return {Observable} A \"never\" Observable: never emits anything.\n * @static true\n * @name never\n * @owner Observable\n ",
"range": [
336,
1546
],
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "NeverObservable",
"range": [
1551,
1566
],
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "create",
"range": [
1567,
1573
],
"loc": {
"start": {
"line": 44,
"column": 20
},
"end": {
"line": 44,
"column": 26
}
}
},
"range": [
1551,
1573
],
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 26
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "NeverObservable",
"range": [
1609,
1624
],
"loc": {
"start": {
"line": 45,
"column": 19
},
"end": {
"line": 45,
"column": 34
}
}
},
"arguments": [],
"range": [
1605,
1626
],
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 36
}
}
},
"range": [
1598,
1627
],
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 37
}
}
}
],
"range": [
1588,
1633
],
"loc": {
"start": {
"line": 44,
"column": 41
},
"end": {
"line": 46,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
1576,
1633
],
"loc": {
"start": {
"line": 44,
"column": 29
},
"end": {
"line": 46,
"column": 5
}
}
},
"range": [
1551,
1633
],
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 46,
"column": 5
}
}
},
"range": [
1551,
1634
],
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 46,
"column": 6
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Creates an Observable that emits no items to the Observer.\n *\n * <span class=\"informal\">An Observable that never emits anything.</span>\n *\n * <img src=\"./img/never.png\" width=\"100%\">\n *\n * This static operator is useful for creating a simple Observable that emits\n * neither values nor errors nor the completion notification. It can be used\n * for testing purposes or for composing with other Observables. Please not\n * that by never emitting a complete notification, this Observable keeps the\n * subscription from being disposed automatically. Subscriptions need to be\n * manually disposed.\n *\n * @example <caption>Emit the number 7, then never emit anything else (not even complete).</caption>\n * function info() {\n * console.log('Will not be called');\n * }\n * var result = Rx.Observable.never().startWith(7);\n * result.subscribe(x => console.log(x), info, info);\n *\n * @see {@link create}\n * @see {@link empty}\n * @see {@link of}\n * @see {@link throw}\n *\n * @return {Observable} A \"never\" Observable: never emits anything.\n * @static true\n * @name never\n * @owner Observable\n ",
"range": [
336,
1546
],
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "NeverObservable",
"range": [
1639,
1654
],
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
1655,
1664
],
"loc": {
"start": {
"line": 47,
"column": 20
},
"end": {
"line": 47,
"column": 29
}
}
},
"range": [
1639,
1664
],
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"name": "_subscribe",
"range": [
1665,
1675
],
"loc": {
"start": {
"line": 47,
"column": 30
},
"end": {
"line": 47,
"column": 40
}
}
},
"range": [
1639,
1675
],
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 40
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
1688,
1698
],
"loc": {
"start": {
"line": 47,
"column": 53
},
"end": {
"line": 47,
"column": 63
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "noop",
"range": [
1710,
1714
],
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 12
}
}
},
"arguments": [],
"range": [
1710,
1716
],
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 14
}
}
},
"range": [
1710,
1717
],
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 15
}
}
}
],
"range": [
1700,
1723
],
"loc": {
"start": {
"line": 47,
"column": 65
},
"end": {
"line": 49,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
1678,
1723
],
"loc": {
"start": {
"line": 47,
"column": 43
},
"end": {
"line": 49,
"column": 5
}
}
},
"range": [
1639,
1723
],
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 49,
"column": 5
}
}
},
"range": [
1639,
1724
],
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 49,
"column": 6
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "NeverObservable",
"range": [
1736,
1751
],
"loc": {
"start": {
"line": 50,
"column": 11
},
"end": {
"line": 50,
"column": 26
}
}
},
"range": [
1729,
1752
],
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 27
}
}
}
],
"range": [
224,
1754
],
"loc": {
"start": {
"line": 8,
"column": 48
},
"end": {
"line": 51,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
206,
1754
],
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 51,
"column": 1
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "Observable",
"range": [
1755,
1765
],
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 51,
"column": 12
}
}
}
],
"range": [
206,
1766
],
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 51,
"column": 13
}
}
},
"range": [
187,
1767
],
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 51,
"column": 14
}
}
}
],
"kind": "var",
"range": [
183,
1768
],
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 51,
"column": 15
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ",
"range": [
81,
175
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "# sourceMappingURL=NeverObservable.js.map",
"range": [
1769,
1812
],
"loc": {
"start": {
"line": 52,
"column": 0
},
"end": {
"line": 52,
"column": 43
}
}
}
]
},
"specifiers": [],
"source": null,
"range": [
176,
1768
],
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 51,
"column": 15
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ",
"range": [
81,
175
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "# sourceMappingURL=NeverObservable.js.map",
"range": [
1769,
1812
],
"loc": {
"start": {
"line": 52,
"column": 0
},
"end": {
"line": 52,
"column": 43
}
}
}
]
}
],
"sourceType": "module",
"range": [
0,
1768
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 51,
"column": 15
}
},
"comments": [
{
"type": "Block",
"value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n ",
"range": [
81,
175
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": "Block",
"value": "*\n * Creates an Observable that emits no items to the Observer.\n *\n * <span class=\"informal\">An Observable that never emits anything.</span>\n *\n * <img src=\"./img/never.png\" width=\"100%\">\n *\n * This static operator is useful for creating a simple Observable that emits\n * neither values nor errors nor the completion notification. It can be used\n * for testing purposes or for composing with other Observables. Please not\n * that by never emitting a complete notification, this Observable keeps the\n * subscription from being disposed automatically. Subscriptions need to be\n * manually disposed.\n *\n * @example <caption>Emit the number 7, then never emit anything else (not even complete).</caption>\n * function info() {\n * console.log('Will not be called');\n * }\n * var result = Rx.Observable.never().startWith(7);\n * result.subscribe(x => console.log(x), info, info);\n *\n * @see {@link create}\n * @see {@link empty}\n * @see {@link of}\n * @see {@link throw}\n *\n * @return {Observable} A \"never\" Observable: never emits anything.\n * @static true\n * @name never\n * @owner Observable\n ",
"range": [
336,
1546
],
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
},
{
"type": "Line",
"value": "# sourceMappingURL=NeverObservable.js.map",
"range": [
1769,
1812
],
"loc": {
"start": {
"line": 52,
"column": 0
},
"end": {
"line": 52,
"column": 43
}
}
}
]
}