UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,306 lines (1,305 loc) 469 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 18, 24 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 27, 34 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 35, 41 ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 27 } } } ], "range": [ 27, 42 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 28 } } }, "range": [ 18, 42 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 28 } } } ], "kind": "var", "range": [ 14, 43 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Set_1", "range": [ 48, 53 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 9 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 56, 63 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 19 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/util/Set", "raw": "'../../dist/cjs/util/Set'", "range": [ 64, 89 ], "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 45 } } } ], "range": [ 56, 90 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 46 } } }, "range": [ 48, 90 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 46 } } } ], "kind": "var", "range": [ 44, 91 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 47 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 92, 100 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Set", "raw": "'Set'", "range": [ 101, 106 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 14 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "Identifier", "name": "Set", "range": [ 137, 140 ], "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 18 } } }, "prefix": true, "range": [ 130, 140 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 18 } } }, "right": { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 145, 155 ], "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 33 } } }, "range": [ 130, 155 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 33 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 167, 169 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 10 } } }, "arguments": [ { "type": "Literal", "value": "should use Set if Set exists", "raw": "'should use Set if Set exists'", "range": [ 170, 200 ], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 41 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 228, 234 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 18 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 235, 241 ], "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 25 } } }, "range": [ 228, 241 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 25 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Set_1", "range": [ 242, 247 ], "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 31 } } }, "property": { "type": "Identifier", "name": "Set", "range": [ 248, 251 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 35 } } }, "range": [ 242, 251 ], "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 35 } } } ], "range": [ 228, 252 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 36 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 253, 255 ], "loc": { "start": { "line": 7, "column": 37 }, "end": { "line": 7, "column": 39 } } }, "range": [ 228, 255 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 39 } } }, "property": { "type": "Identifier", "name": "equal", "range": [ 256, 261 ], "loc": { "start": { "line": 7, "column": 40 }, "end": { "line": 7, "column": 45 } } }, "range": [ 228, 261 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 45 } } }, "arguments": [ { "type": "Identifier", "name": "Set", "range": [ 262, 265 ], "loc": { "start": { "line": 7, "column": 46 }, "end": { "line": 7, "column": 49 } } } ], "range": [ 228, 266 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 50 } } }, "range": [ 228, 267 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 51 } } } ], "range": [ 214, 277 ], "loc": { "start": { "line": 6, "column": 55 }, "end": { "line": 8, "column": 9 } } }, "generator": false, "expression": false, "range": [ 202, 277 ], "loc": { "start": { "line": 6, "column": 43 }, "end": { "line": 8, "column": 9 } } } ], "range": [ 167, 278 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 8, "column": 10 } }, "_esdocTestId": 2565, "_esdocTestName": "it2565" }, "range": [ 167, 279 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 8, "column": 11 } } } ], "range": [ 157, 285 ], "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 9, "column": 5 } } }, "alternate": null, "range": [ 126, 285 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 9, "column": 5 } } } ], "range": [ 120, 287 ], "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 10, "column": 1 } } }, "generator": false, "expression": false, "range": [ 108, 287 ], "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 10, "column": 1 } } } ], "range": [ 92, 288 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 10, "column": 2 } }, "_esdocTestId": 2564, "_esdocTestName": "describe2564" }, "range": [ 92, 289 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 10, "column": 3 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 290, 298 ], "loc": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "minimalSetImpl()", "raw": "'minimalSetImpl()'", "range": [ 299, 317 ], "loc": { "start": { "line": 11, "column": 9 }, "end": { "line": 11, "column": 27 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 337, 339 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should provide the minimal Set we require", "raw": "'should provide the minimal Set we require'", "range": [ 340, 383 ], "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 50 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "MinSet", "range": [ 411, 417 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 18 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Set_1", "range": [ 420, 425 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 26 } } }, "property": { "type": "Identifier", "name": "minimalSetImpl", "range": [ 426, 440 ], "loc": { "start": { "line": 13, "column": 27 }, "end": { "line": 13, "column": 41 } } }, "range": [ 420, 440 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 41 } } }, "arguments": [], "range": [ 420, 442 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 43 } } }, "range": [ 411, 442 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 43 } } } ], "kind": "var", "range": [ 407, 443 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 44 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "test", "range": [ 456, 460 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 16 } } }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "MinSet", "range": [ 467, 473 ], "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 29 } } }, "arguments": [], "range": [ 463, 475 ], "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 31 } } }, "range": [ 456, 475 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 31 } } } ], "kind": "var", "range": [ 452, 476 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 32 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 485, 491 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 492, 498 ], "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 21 } } }, "range": [ 485, 498 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 21 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "MinSet", "range": [ 499, 505 ], "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 28 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 506, 515 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 38 } } }, "range": [ 499, 515 ], "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 38 } } }, "property": { "type": "Identifier", "name": "add", "range": [ 516, 519 ],