UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

597 lines 13.6 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "BehaviorSubject", "range": [ 9, 24 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 24 } } }, "imported": { "type": "Identifier", "name": "BehaviorSubject", "range": [ 9, 24 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 24 } } }, "range": [ 9, 24 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 24 } } } ], "source": { "type": "Literal", "value": "../BehaviorSubject", "raw": "'../BehaviorSubject'", "range": [ 32, 52 ], "loc": { "start": { "line": 1, "column": 32 }, "end": { "line": 1, "column": 52 } } }, "range": [ 0, 53 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 53 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "multicast", "range": [ 63, 72 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 18 } } }, "imported": { "type": "Identifier", "name": "multicast", "range": [ 63, 72 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 18 } } }, "range": [ 63, 72 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 18 } } } ], "source": { "type": "Literal", "value": "./multicast", "raw": "'./multicast'", "range": [ 80, 93 ], "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 39 } } }, "range": [ 54, 94 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 40 } }, "trailingComments": [ { "type": "Block", "value": "*\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n ", "range": [ 95, 204 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 8, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "publishBehavior", "range": [ 221, 236 ], "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 31 } } }, "params": [ { "type": "Identifier", "name": "value", "range": [ 237, 242 ], "loc": { "start": { "line": 9, "column": 32 }, "end": { "line": 9, "column": 37 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "multicast", "range": [ 257, 266 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 20 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 267, 271 ], "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 25 } } }, "range": [ 257, 271 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 25 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 272, 276 ], "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 30 } } }, { "type": "NewExpression", "callee": { "type": "Identifier", "name": "BehaviorSubject", "range": [ 282, 297 ], "loc": { "start": { "line": 10, "column": 36 }, "end": { "line": 10, "column": 51 } } }, "arguments": [ { "type": "Identifier", "name": "value", "range": [ 298, 303 ], "loc": { "start": { "line": 10, "column": 52 }, "end": { "line": 10, "column": 57 } } } ], "range": [ 278, 304 ], "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 58 } } } ], "range": [ 257, 305 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 59 } } }, "range": [ 250, 306 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 60 } } } ], "range": [ 244, 308 ], "loc": { "start": { "line": 9, "column": 39 }, "end": { "line": 11, "column": 1 } } }, "generator": false, "expression": false, "range": [ 212, 308 ], "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 11, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n ", "range": [ 95, 204 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 8, "column": 3 } } } ], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=publishBehavior.js.map", "range": [ 309, 352 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 43 } } } ] }, "specifiers": [], "source": null, "range": [ 205, 308 ], "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 11, "column": 1 } }, "leadingComments": [ { "type": "Block", "value": "*\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n ", "range": [ 95, 204 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 8, "column": 3 } } } ], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=publishBehavior.js.map", "range": [ 309, 352 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 43 } } } ] } ], "sourceType": "module", "range": [ 0, 308 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 11, "column": 1 } }, "comments": [ { "type": "Block", "value": "*\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n ", "range": [ 95, 204 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 8, "column": 3 } } }, { "type": "Line", "value": "# sourceMappingURL=publishBehavior.js.map", "range": [ 309, 352 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 43 } } } ] }