UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,258 lines (1,257 loc) 565 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": "Rx", "range": [ 18, 20 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 23, 30 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 31, 50 ], "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 36 } } } ], "range": [ 23, 51 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 37 } } }, "range": [ 18, 51 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 37 } } } ], "kind": "var", "range": [ 14, 52 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 57, 63 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 66, 73 ], "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 74, 80 ], "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 27 } } } ], "range": [ 66, 81 ], "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 28 } } }, "range": [ 57, 81 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 28 } } } ], "kind": "var", "range": [ 53, 82 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Observable", "range": [ 87, 97 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 100, 102 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 19 } } }, "property": { "type": "Identifier", "name": "Observable", "range": [ 103, 113 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 30 } } }, "range": [ 100, 113 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 30 } } }, "range": [ 87, 113 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 30 } } } ], "kind": "var", "range": [ 83, 114 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 31 } }, "trailingComments": [ { "type": "Block", "value": "* @test {bufferCount} ", "range": [ 115, 141 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 26 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 142, 150 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.prototype.bufferCount", "raw": "'Observable.prototype.bufferCount'", "range": [ 151, 185 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 43 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "asDiagram", "range": [ 205, 214 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 13 } } }, "arguments": [ { "type": "Literal", "value": "bufferCount(3,2)", "raw": "'bufferCount(3,2)'", "range": [ 215, 233 ], "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 32 } } } ], "range": [ 205, 234 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 33 } } }, "arguments": [ { "type": "Literal", "value": "should emit buffers at intervals", "raw": "'should emit buffers at intervals'", "range": [ 235, 269 ], "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 7, "column": 68 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "values", "range": [ 297, 303 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 18 } } }, "init": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "v", "range": [ 320, 321 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "a", "raw": "'a'", "range": [ 324, 327 ], "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 19 } } }, { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 329, 332 ], "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 24 } } }, { "type": "Literal", "value": "c", "raw": "'c'", "range": [ 334, 337 ], "loc": { "start": { "line": 9, "column": 26 }, "end": { "line": 9, "column": 29 } } } ], "range": [ 323, 338 ], "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 30 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 320, 338 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 30 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "w", "range": [ 352, 353 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "c", "raw": "'c'", "range": [ 356, 359 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 19 } } }, { "type": "Literal", "value": "d", "raw": "'d'", "range": [ 361, 364 ], "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 24 } } }, { "type": "Literal", "value": "e", "raw": "'e'", "range": [ 366, 369 ], "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 29 } } } ], "range": [ 355, 370 ], "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 10, "column": 30 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 352, 370 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 30 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "x", "range": [ 384, 385 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "e", "raw": "'e'", "range": [ 388, 391 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 19 } } }, { "type": "Literal", "value": "f", "raw": "'f'", "range": [ 393, 396 ], "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 24 } } }, { "type": "Literal", "value": "g", "raw": "'g'", "range": [ 398, 401 ], "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 29 } } } ], "range": [ 387, 402 ], "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 30 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 384, 402 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 30 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "y", "range": [ 416, 417 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "g", "raw": "'g'", "range": [ 420, 423 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 19 } } }, { "type": "Literal", "value": "h", "raw": "'h'", "range": [ 425, 428 ], "loc": { "start": { "line": 12, "column": 21 }, "end": { "line": 12, "column": 24 } } }, { "type": "Literal", "value": "i", "raw": "'i'", "range": [ 430, 433 ], "loc": { "start": { "line": 12, "column": 26 }, "end": { "line": 12, "column": 29 } } } ], "range": [ 419, 434 ], "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 30 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 416, 434 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 30 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "z", "range": [ 448, 449 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "i", "raw": "'i'", "range": [ 452, 455 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 19 } } } ], "range": [ 451, 456 ], "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 20 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 448, 456 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 20 } } } ], "range": [ 306, 466 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 14, "column": 9 } } }, "range": [ 297, 466 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 14, "column": 9 } } } ], "kind": "var", "range": [ 293, 467 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 14, "column": 10 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e1", "range": [ 480, 482 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 485, 488 ], "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "--a--b--c--d--e--f--g--h--i--|", "raw": "'--a--b--c--d--e--f--g--h--i--|'", "range": [ 489, 521 ], "loc": { "start": { "line": 15, "column": 21 }, "end": { "line": 15, "column": 53 } } } ], "range": [ 485, 522 ], "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 54 } } }, "range": [ 480, 522 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 54 } } } ], "kind": "var", "range": [ 476, 523 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 55 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [