UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,231 lines 36.2 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "root", "range": [ 9, 13 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 13 } } }, "imported": { "type": "Identifier", "name": "root", "range": [ 9, 13 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 13 } } }, "range": [ 9, 13 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 13 } } } ], "source": { "type": "Literal", "value": "../util/root", "raw": "'../util/root'", "range": [ 21, 35 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 35 } } }, "range": [ 0, 36 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "getSymbolObservable", "range": [ 53, 72 ], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 35 } } }, "params": [ { "type": "Identifier", "name": "context", "range": [ 73, 80 ], "loc": { "start": { "line": 2, "column": 36 }, "end": { "line": 2, "column": 43 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "$$observable", "range": [ 92, 104 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 20 } } }, "init": null, "range": [ 92, 104 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 20 } } } ], "kind": "var", "range": [ 88, 105 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 21 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Symbol", "range": [ 114, 120 ], "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "context", "range": [ 123, 130 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 24 } } }, "property": { "type": "Identifier", "name": "Symbol", "range": [ 131, 137 ], "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 31 } } }, "range": [ 123, 137 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 31 } } }, "range": [ 114, 137 ], "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 31 } } } ], "kind": "var", "range": [ 110, 138 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 32 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "Identifier", "name": "Symbol", "range": [ 154, 160 ], "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 21 } } }, "prefix": true, "range": [ 147, 160 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 21 } } }, "right": { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 165, 175 ], "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 36 } } }, "range": [ 147, 175 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 36 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Symbol", "range": [ 191, 197 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 18 } } }, "property": { "type": "Identifier", "name": "observable", "range": [ 198, 208 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 29 } } }, "range": [ 191, 208 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 29 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "$$observable", "range": [ 224, 236 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 24 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Symbol", "range": [ 239, 245 ], "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 7, "column": 33 } } }, "property": { "type": "Identifier", "name": "observable", "range": [ 246, 256 ], "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 7, "column": 44 } } }, "range": [ 239, 256 ], "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 7, "column": 44 } } }, "range": [ 224, 256 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 44 } } }, "range": [ 224, 257 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 45 } } } ], "range": [ 210, 267 ], "loc": { "start": { "line": 6, "column": 31 }, "end": { "line": 8, "column": 9 } } }, "alternate": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "$$observable", "range": [ 295, 307 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 24 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "Symbol", "range": [ 310, 316 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 33 } } }, "arguments": [ { "type": "Literal", "value": "observable", "raw": "'observable'", "range": [ 317, 329 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 46 } } } ], "range": [ 310, 330 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 47 } } }, "range": [ 295, 330 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 47 } } }, "range": [ 295, 331 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 48 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Symbol", "range": [ 344, 350 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 18 } } }, "property": { "type": "Identifier", "name": "observable", "range": [ 351, 361 ], "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 29 } } }, "range": [ 344, 361 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 29 } } }, "right": { "type": "Identifier", "name": "$$observable", "range": [ 364, 376 ], "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 44 } } }, "range": [ 344, 376 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 44 } } }, "range": [ 344, 377 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 45 } } } ], "range": [ 281, 387 ], "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 12, "column": 9 } } }, "range": [ 187, 387 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 12, "column": 9 } } } ], "range": [ 177, 393 ], "loc": { "start": { "line": 5, "column": 38 }, "end": { "line": 13, "column": 5 } } }, "alternate": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "$$observable", "range": [ 413, 425 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 20 } } }, "right": { "type": "Literal", "value": "@@observable", "raw": "'@@observable'", "range": [ 428, 442 ], "loc": { "start": { "line": 15, "column": 23 }, "end": { "line": 15, "column": 37 } } }, "range": [ 413, 442 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 37 } } }, "range": [ 413, 443 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 38 } } } ], "range": [ 403, 449 ], "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 16, "column": 5 } } }, "range": [ 143, 449 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 16, "column": 5 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "$$observable", "range": [ 461, 473 ], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 23 } } }, "range": [ 454, 474 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 24 } } } ], "range": [ 82, 476 ], "loc": { "start": { "line": 2, "column": 45 }, "end": { "line": 18, "column": 1 } } }, "generator": false, "expression": false, "range": [ 44, 476 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 18, "column": 1 } }, "leadingComments": [], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 37, 476 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 18, "column": 1 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "$$observable", "range": [ 488, 500 ], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 23 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "getSymbolObservable", "range": [ 503, 522 ], "loc": { "start": { "line": 19, "column": 26 }, "end": { "line": 19, "column": 45 } } }, "arguments": [ { "type": "Identifier", "name": "root", "range": [ 523, 527 ], "loc": { "start": { "line": 19, "column": 46 }, "end": { "line": 19, "column": 50 } } } ], "range": [ 503, 528 ], "loc": { "start": { "line": 19, "column": 26 }, "end": { "line": 19, "column": 51 } } }, "range": [ 488, 528 ], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 51 } } } ], "kind": "var", "range": [ 484, 529 ], "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 19, "column": 52 } }, "leadingComments": [], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=observable.js.map", "range": [ 530, 568 ], "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 38 } } } ] }, "specifiers": [], "source": null, "range": [ 477, 529 ], "loc": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 52 } }, "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=observable.js.map", "range": [ 530, 568 ], "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 38 } } } ] } ], "sourceType": "module", "range": [ 0, 529 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 19, "column": 52 } }, "comments": [ { "type": "Line", "value": "# sourceMappingURL=observable.js.map", "range": [ 530, 568 ], "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 38 } } } ] }