UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,434 lines (1,433 loc) 94.6 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": "symbolIteratorPonyfill", "range": [ 53, 75 ], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 38 } } }, "params": [ { "type": "Identifier", "name": "root", "range": [ 76, 80 ], "loc": { "start": { "line": 2, "column": 39 }, "end": { "line": 2, "column": 43 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Symbol", "range": [ 92, 98 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "root", "range": [ 101, 105 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 21 } } }, "property": { "type": "Identifier", "name": "Symbol", "range": [ 106, 112 ], "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 3, "column": 28 } } }, "range": [ 101, 112 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 28 } } }, "range": [ 92, 112 ], "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 28 } } } ], "kind": "var", "range": [ 88, 113 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 29 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "Identifier", "name": "Symbol", "range": [ 129, 135 ], "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 4, "column": 21 } } }, "prefix": true, "range": [ 122, 135 ], "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 21 } } }, "right": { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 140, 150 ], "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 36 } } }, "range": [ 122, 150 ], "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 36 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Symbol", "range": [ 167, 173 ], "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 19 } } }, "property": { "type": "Identifier", "name": "iterator", "range": [ 174, 182 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 28 } } }, "range": [ 167, 182 ], "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 28 } } }, "prefix": true, "range": [ 166, 182 ], "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 28 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Symbol", "range": [ 198, 204 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 18 } } }, "property": { "type": "Identifier", "name": "iterator", "range": [ 205, 213 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 27 } } }, "range": [ 198, 213 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 27 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "Symbol", "range": [ 216, 222 ], "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 6, "column": 36 } } }, "arguments": [ { "type": "Literal", "value": "iterator polyfill", "raw": "'iterator polyfill'", "range": [ 223, 242 ], "loc": { "start": { "line": 6, "column": 37 }, "end": { "line": 6, "column": 56 } } } ], "range": [ 216, 243 ], "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 6, "column": 57 } } }, "range": [ 198, 243 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 57 } } }, "range": [ 198, 244 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 58 } } } ], "range": [ 184, 254 ], "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 7, "column": 9 } } }, "alternate": null, "range": [ 162, 254 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 7, "column": 9 } } }, { "type": "ReturnStatement", "argument": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Symbol", "range": [ 270, 276 ], "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 21 } } }, "property": { "type": "Identifier", "name": "iterator", "range": [ 277, 285 ], "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 30 } } }, "range": [ 270, 285 ], "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 30 } } }, "range": [ 263, 286 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 31 } } } ], "range": [ 152, 292 ], "loc": { "start": { "line": 4, "column": 38 }, "end": { "line": 9, "column": 5 } } }, "alternate": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Set_1", "range": [ 378, 383 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 17 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "root", "range": [ 386, 390 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 24 } } }, "property": { "type": "Identifier", "name": "Set", "range": [ 391, 394 ], "loc": { "start": { "line": 12, "column": 25 }, "end": { "line": 12, "column": 28 } } }, "range": [ 386, 394 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 28 } } }, "range": [ 378, 394 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 28 } } } ], "kind": "var", "range": [ 374, 395 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 29 } }, "leadingComments": [ { "type": "Line", "value": " [for Mozilla Gecko 27-35:](https://mzl.la/2ewE1zC)", "range": [ 312, 365 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 61 } } } ] }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "Set_1", "range": [ 408, 413 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 17 } } }, "right": { "type": "BinaryExpression", "operator": "===", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "MemberExpression", "computed": true, "object": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Set_1", "range": [ 428, 433 ], "loc": { "start": { "line": 13, "column": 32 }, "end": { "line": 13, "column": 37 } } }, "arguments": [], "range": [ 424, 435 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 13, "column": 39 } } }, "property": { "type": "Literal", "value": "@@iterator", "raw": "'@@iterator'", "range": [ 436, 448 ], "loc": { "start": { "line": 13, "column": 40 }, "end": { "line": 13, "column": 52 } } }, "range": [ 424, 449 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 13, "column": 53 } } }, "prefix": true, "range": [ 417, 449 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 53 } } }, "right": { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 454, 464 ], "loc": { "start": { "line": 13, "column": 58 }, "end": { "line": 13, "column": 68 } } }, "range": [ 417, 464 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 68 } } }, "range": [ 408, 464 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 68 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "Literal", "value": "@@iterator", "raw": "'@@iterator'", "range": [ 487, 499 ], "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 31 } } }, "range": [ 480, 500 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 32 } } } ], "range": [ 466, 510 ], "loc": { "start": { "line": 13, "column": 70 }, "end": { "line": 15, "column": 9 } } }, "alternate": null, "range": [ 404, 510 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 15, "column": 9 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Map_1", "range": [ 523, 528 ], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 17 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "root", "range": [ 531, 535 ], "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 16, "column": 24 } } }, "property": { "type": "Identifier", "name": "Map", "range": [ 536, 539 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 28 } } }, "range": [ 531, 539 ], "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 16, "column": 28 } } }, "range": [ 523, 539 ], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 28 } } } ], "kind": "var", "range": [ 519, 540 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 29 } }, "trailingComments": [ { "type": "Line", "value": " required for compatability with es6-shim", "range": [ 549, 592 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 51 } } } ] }, { "type": "IfStatement", "test": { "type": "Identifier", "name": "Map_1", "range": [ 605, 610 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 17 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "keys", "range": [ 630, 634 ], "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 20 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 637, 643 ], "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 29 } } }, "property": { "type": "Identifier", "name": "getOwnPropertyNames", "range": [ 644, 663 ], "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 49 } } }, "range": [ 637, 663 ], "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 49 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Map_1", "range": [ 664, 669 ], "loc": { "start": { "line": 19, "column": 50 }, "end": { "line": 19, "column": 55 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 670, 679 ], "loc": { "start": { "line": 19, "column": 56 }, "end": { "line": 19, "column": 65 } } }, "range": [ 664, 679 ], "loc": { "start": { "line": 19, "column": 50 }, "end": { "line": 19, "column": 65 } } } ], "range": [ 637, 680 ], "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 66 } } }, "range": [ 630, 680 ], "loc": { "start": { "line": 19, "column": 16 }, "end": { "line": 19, "column": 66 } } } ], "kind": "var", "range": [ 626, 681 ], "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 67 } } }, { "type": "ForStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "range": [ 703, 704 ], "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 22 } } }, "init": { "type": "Literal", "value": 0, "raw": "0", "range": [ 707, 708 ], "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 26 } } }, "range": [ 703, 708 ], "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 26 } } } ],