UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,171 lines (1,170 loc) 96.4 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": "./root", "raw": "'./root'", "range": [ 21, 29 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 29 } } }, "range": [ 0, 30 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 30 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "minimalSetImpl", "range": [ 47, 61 ], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 30 } } }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "MinimalSet", "range": [ 228, 238 ], "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 27 } } }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 255, 259 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 16 } } }, "property": { "type": "Identifier", "name": "_values", "range": [ 260, 267 ], "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 7, "column": 24 } } }, "range": [ 255, 267 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 24 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 270, 272 ], "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 7, "column": 29 } } }, "range": [ 255, 272 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 29 } } }, "range": [ 255, 273 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 30 } } } ], "range": [ 241, 283 ], "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 8, "column": 9 } } }, "generator": false, "expression": false, "range": [ 219, 283 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 8, "column": 9 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "MinimalSet", "range": [ 292, 302 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 18 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 303, 312 ], "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 28 } } }, "range": [ 292, 312 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 28 } } }, "property": { "type": "Identifier", "name": "add", "range": [ 313, 316 ], "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 32 } } }, "range": [ 292, 316 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 32 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "value", "range": [ 329, 334 ], "loc": { "start": { "line": 9, "column": 45 }, "end": { "line": 9, "column": 50 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 355, 359 ], "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 21 } } }, "property": { "type": "Identifier", "name": "has", "range": [ 360, 363 ], "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 25 } } }, "range": [ 355, 363 ], "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 25 } } }, "arguments": [ { "type": "Identifier", "name": "value", "range": [ 364, 369 ], "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 31 } } } ], "range": [ 355, 370 ], "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 32 } } }, "prefix": true, "range": [ 354, 370 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 32 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 390, 394 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 20 } } }, "property": { "type": "Identifier", "name": "_values", "range": [ 395, 402 ], "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 28 } } }, "range": [ 390, 402 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 28 } } }, "property": { "type": "Identifier", "name": "push", "range": [ 403, 407 ], "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 33 } } }, "range": [ 390, 407 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 33 } } }, "arguments": [ { "type": "Identifier", "name": "value", "range": [ 408, 413 ], "loc": { "start": { "line": 11, "column": 34 }, "end": { "line": 11, "column": 39 } } } ], "range": [ 390, 414 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 40 } } }, "range": [ 390, 415 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 41 } } } ], "range": [ 372, 429 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 12, "column": 13 } } }, "alternate": null, "range": [ 350, 429 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 12, "column": 13 } } } ], "range": [ 336, 439 ], "loc": { "start": { "line": 9, "column": 52 }, "end": { "line": 13, "column": 9 } } }, "generator": false, "expression": false, "range": [ 319, 439 ], "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 13, "column": 9 } } }, "range": [ 292, 439 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 13, "column": 9 } } }, "range": [ 292, 440 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 13, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "MinimalSet", "range": [ 449, 459 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 18 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 460, 469 ], "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 28 } } }, "range": [ 449, 469 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 28 } } }, "property": { "type": "Identifier", "name": "has", "range": [ 470, 473 ], "loc": { "start": { "line": 14, "column": 29 }, "end": { "line": 14, "column": 32 } } }, "range": [ 449, 473 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 32 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "value", "range": [ 486, 491 ], "loc": { "start": { "line": 14, "column": 45 }, "end": { "line": 14, "column": 50 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "!==", "left": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 514, 518 ], "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 23 } } }, "property": { "type": "Identifier", "name": "_values", "range": [ 519, 526 ], "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 31 } } }, "range": [ 514, 526 ], "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 31 } } }, "property": { "type": "Identifier", "name": "indexOf", "range": [ 527, 534 ], "loc": { "start": { "line": 15, "column": 32 }, "end": { "line": 15, "column": 39 } } }, "range": [ 514, 534 ], "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 39 } } }, "arguments": [ { "type": "Identifier", "name": "value", "range": [ 535, 540 ], "loc": { "start": { "line": 15, "column": 40 }, "end": { "line": 15, "column": 45 } } } ], "range": [ 514, 541 ], "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 46 } } }, "right": { "type": "UnaryExpression", "operator": "-", "argument": { "type": "Literal", "value": 1, "raw": "1", "range": [ 547, 548 ], "loc": { "start": { "line": 15, "column": 52 }, "end": { "line": 15, "column": 53 } } }, "prefix": true, "range": [ 546, 548 ], "loc": { "start": { "line": 15, "column": 51 }, "end": { "line": 15, "column": 53 } } }, "range": [ 514, 548 ], "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 53 } } }, "range": [ 507, 549 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 54 } } } ], "range": [ 493, 559 ], "loc": { "start": { "line": 14, "column": 52 }, "end": { "line": 16, "column": 9 } } }, "generator": false, "expression": false, "range": [ 476, 559 ], "loc": { "start": { "line": 14, "column": 35 }, "end": { "line": 16, "column": 9 } } }, "range": [ 449, 559 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 16, "column": 9 } } }, "range": [ 449, 560 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 16, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 569, 575 ], "loc": { "start": { "line": 17, "column": 8 }, "end": {