@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
703 lines • 18 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "multicast",
"range": [
9,
18
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
},
"imported": {
"type": "Identifier",
"name": "multicast",
"range": [
9,
18
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
},
"range": [
9,
18
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
}
],
"source": {
"type": "Literal",
"value": "./multicast",
"raw": "'./multicast'",
"range": [
26,
39
],
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 39
}
}
},
"range": [
0,
40
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 40
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Subject",
"range": [
50,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"imported": {
"type": "Identifier",
"name": "Subject",
"range": [
50,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"range": [
50,
57
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
}
],
"source": {
"type": "Literal",
"value": "../Subject",
"raw": "'../Subject'",
"range": [
65,
77
],
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
}
},
"range": [
41,
78
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 37
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "shareSubjectFactory",
"range": [
88,
107
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 28
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Subject",
"range": [
127,
134
],
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 22
}
}
},
"arguments": [],
"range": [
123,
136
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 24
}
}
},
"range": [
116,
137
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 25
}
}
}
],
"range": [
110,
139
],
"loc": {
"start": {
"line": 3,
"column": 31
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
79,
139
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .publish().refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} an Observable that upon connection causes the source Observable to emit items to its Observers\n * @method share\n * @owner Observable\n ",
"range": [
140,
739
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "share",
"range": [
756,
761
],
"loc": {
"start": {
"line": 18,
"column": 16
},
"end": {
"line": 18,
"column": 21
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "multicast",
"range": [
777,
786
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
787,
791
],
"loc": {
"start": {
"line": 19,
"column": 21
},
"end": {
"line": 19,
"column": 25
}
}
},
"range": [
777,
791
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 25
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
792,
796
],
"loc": {
"start": {
"line": 19,
"column": 26
},
"end": {
"line": 19,
"column": 30
}
}
},
{
"type": "Identifier",
"name": "shareSubjectFactory",
"range": [
798,
817
],
"loc": {
"start": {
"line": 19,
"column": 32
},
"end": {
"line": 19,
"column": 51
}
}
}
],
"range": [
777,
818
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 52
}
}
},
"property": {
"type": "Identifier",
"name": "refCount",
"range": [
819,
827
],
"loc": {
"start": {
"line": 19,
"column": 53
},
"end": {
"line": 19,
"column": 61
}
}
},
"range": [
777,
827
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 61
}
}
},
"arguments": [],
"range": [
777,
829
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 63
}
}
},
"range": [
770,
830
],
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 64
}
}
}
],
"range": [
764,
832
],
"loc": {
"start": {
"line": 18,
"column": 24
},
"end": {
"line": 20,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
747,
832
],
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 20,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .publish().refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} an Observable that upon connection causes the source Observable to emit items to its Observers\n * @method share\n * @owner Observable\n ",
"range": [
140,
739
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
740,
832
],
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 20,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .publish().refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} an Observable that upon connection causes the source Observable to emit items to its Observers\n * @method share\n * @owner Observable\n ",
"range": [
140,
739
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
]
},
{
"type": "EmptyStatement",
"range": [
833,
834
],
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"trailingComments": [
{
"type": "Line",
"value": "# sourceMappingURL=share.js.map",
"range": [
835,
868
],
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 33
}
}
}
]
}
],
"sourceType": "module",
"range": [
0,
834
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"comments": [
{
"type": "Block",
"value": "*\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .publish().refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} an Observable that upon connection causes the source Observable to emit items to its Observers\n * @method share\n * @owner Observable\n ",
"range": [
140,
739
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
},
{
"type": "Line",
"value": "# sourceMappingURL=share.js.map",
"range": [
835,
868
],
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 33
}
}
}
]
}