UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,299 lines (1,298 loc) 422 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": "FastMap_1", "range": [ 48, 57 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 60, 67 ], "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 23 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/util/FastMap", "raw": "'../../dist/cjs/util/FastMap'", "range": [ 68, 97 ], "loc": { "start": { "line": 3, "column": 24 }, "end": { "line": 3, "column": 53 } } } ], "range": [ 60, 98 ], "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 54 } } }, "range": [ 48, 98 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 54 } } } ], "kind": "var", "range": [ 44, 99 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 55 } }, "trailingComments": [ { "type": "Block", "value": "* @test {FastMap} ", "range": [ 100, 122 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 22 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 123, 131 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "FastMap", "raw": "'FastMap'", "range": [ 132, 141 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 18 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 161, 163 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should exist", "raw": "'should exist'", "range": [ 164, 178 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 21 } } }, { "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": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 202, 208 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 209, 215 ], "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 7, "column": 21 } } }, "range": [ 202, 215 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 21 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "FastMap_1", "range": [ 216, 225 ], "loc": { "start": { "line": 7, "column": 22 }, "end": { "line": 7, "column": 31 } } }, "property": { "type": "Identifier", "name": "FastMap", "range": [ 226, 233 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 39 } } }, "range": [ 216, 233 ], "loc": { "start": { "line": 7, "column": 22 }, "end": { "line": 7, "column": 39 } } } ], "range": [ 202, 234 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 40 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 235, 237 ], "loc": { "start": { "line": 7, "column": 41 }, "end": { "line": 7, "column": 43 } } }, "range": [ 202, 237 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 43 } } }, "property": { "type": "Identifier", "name": "be", "range": [ 238, 240 ], "loc": { "start": { "line": 7, "column": 44 }, "end": { "line": 7, "column": 46 } } }, "range": [ 202, 240 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 46 } } }, "property": { "type": "Identifier", "name": "a", "range": [ 241, 242 ], "loc": { "start": { "line": 7, "column": 47 }, "end": { "line": 7, "column": 48 } } }, "range": [ 202, 242 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 48 } } }, "arguments": [ { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 243, 253 ], "loc": { "start": { "line": 7, "column": 49 }, "end": { "line": 7, "column": 59 } } } ], "range": [ 202, 254 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 60 } } }, "range": [ 202, 255 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 61 } } } ], "range": [ 192, 261 ], "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 8, "column": 5 } } }, "generator": false, "expression": false, "range": [ 180, 261 ], "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 8, "column": 5 } } } ], "range": [ 161, 262 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 8, "column": 6 } }, "_esdocTestId": 2480, "_esdocTestName": "it2480" }, "range": [ 161, 263 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 8, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 268, 270 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should accept string as keys", "raw": "'should accept string as keys'", "range": [ 271, 301 ], "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 37 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "map", "range": [ 329, 332 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 15 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "FastMap_1", "range": [ 339, 348 ], "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 31 } } }, "property": { "type": "Identifier", "name": "FastMap", "range": [ 349, 356 ], "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 39 } } }, "range": [ 339, 356 ], "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 39 } } }, "arguments": [], "range": [ 335, 358 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 41 } } }, "range": [ 329, 358 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 41 } } } ], "kind": "var", "range": [ 325, 359 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 42 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "key1", "range": [ 372, 376 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 16 } } }, "init": { "type": "Literal", "value": "keyOne", "raw": "'keyOne'", "range": [ 379, 387 ], "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 27 } } }, "range": [ 372, 387 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 27 } } } ], "kind": "var", "range": [ 368, 388 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 28 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "key2", "range": [ 401, 405 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 16 } } }, "init": { "type": "Literal", "value": "keyTwo", "raw": "'keyTwo'", "range": [ 408, 416 ], "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 12, "column": 27 } } }, "range": [ 401, 416 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 27 } } } ], "kind": "var", "range": [ 397, 417 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 28 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "map", "range": [ 426, 429 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 11 } } }, "property": { "type": "Identifier", "name": "set", "range": [ 430, 433 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 15 } } }, "range": [ 426, 433 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 15 } } }, "arguments": [ { "type": "Identifier", "name": "key1", "range": [ 434, 438 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 20 } } }, { "type": "Literal", "value": "yo", "raw": "'yo'", "range": [ 440, 444 ], "loc": { "start": { "line": 13, "column": 22 }, "end": { "line": 13, "column": 26 } } } ], "range": [ 426, 445 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 27 } } }, "range": [ 426, 446 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 28 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "map", "range": [ 455, 458 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 11 } } }, "property": { "type": "Identifier", "name": "set", "range": [ 459, 462 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 15 } } }, "range": [ 455, 462 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 15 } } }, "arguments": [ { "type": "Identifier", "name": "key2", "range": [ 463, 467 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 20 } } }, { "type": "Literal", "value": "what up", "raw": "'what up'", "range": [ 469, 478 ], "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 31 } } } ], "range": [ 455, 479 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 32 } } },