UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,191 lines (1,190 loc) 1.67 MB
{ "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": "Observable", "range": [ 57, 67 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 70, 72 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 19 } } }, "property": { "type": "Identifier", "name": "Observable", "range": [ 73, 83 ], "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 30 } } }, "range": [ 70, 83 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 30 } } }, "range": [ 57, 83 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 30 } } } ], "kind": "var", "range": [ 53, 84 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 31 } }, "trailingComments": [ { "type": "Block", "value": "* @test {mergeScan} ", "range": [ 85, 109 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 24 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 110, 118 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.prototype.mergeScan", "raw": "'Observable.prototype.mergeScan'", "range": [ 119, 151 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 41 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 171, 173 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should mergeScan things", "raw": "'should mergeScan things'", "range": [ 174, 199 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 32 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e1", "range": [ 227, 229 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 232, 235 ], "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 7, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "--a--^--b--c--d--e--f--g--|", "raw": "'--a--^--b--c--d--e--f--g--|'", "range": [ 236, 265 ], "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 50 } } } ], "range": [ 232, 266 ], "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 7, "column": 51 } } }, "range": [ 227, 266 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 51 } } } ], "kind": "var", "range": [ 223, 267 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 52 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e1subs", "range": [ 280, 286 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 18 } } }, "init": { "type": "Literal", "value": "^ !", "raw": "'^ !'", "range": [ 289, 313 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 45 } } }, "range": [ 280, 313 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 45 } } } ], "kind": "var", "range": [ 276, 314 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 46 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 327, 335 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 20 } } }, "init": { "type": "Literal", "value": "---u--v--w--x--y--z--|", "raw": "'---u--v--w--x--y--z--|'", "range": [ 338, 362 ], "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 47 } } }, "range": [ 327, 362 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 47 } } } ], "kind": "var", "range": [ 323, 363 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 48 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "values", "range": [ 376, 382 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 18 } } }, "init": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "u", "range": [ 399, 400 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 403, 406 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 19 } } } ], "range": [ 402, 407 ], "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 20 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 399, 407 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 20 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "v", "range": [ 421, 422 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 425, 428 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 19 } } }, { "type": "Literal", "value": "c", "raw": "'c'", "range": [ 430, 433 ], "loc": { "start": { "line": 12, "column": 21 }, "end": { "line": 12, "column": 24 } } } ], "range": [ 424, 434 ], "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 25 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 421, 434 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 25 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "w", "range": [ 448, 449 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 452, 455 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 19 } } }, { "type": "Literal", "value": "c", "raw": "'c'", "range": [ 457, 460 ], "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 24 } } }, { "type": "Literal", "value": "d", "raw": "'d'", "range": [ 462, 465 ], "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 29 } } } ], "range": [ 451, 466 ], "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 30 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 448, 466 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 30 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "x", "range": [ 480, 481 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 484, 487 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 19 } } }, { "type": "Literal", "value": "c", "raw": "'c'", "range": [ 489, 492 ], "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 24 } } }, { "type": "Literal", "value": "d", "raw": "'d'", "range": [ 494, 497 ], "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 29 } } }, { "type": "Literal", "value": "e", "raw": "'e'", "range": [ 499, 502 ], "loc": { "start": { "line": 14, "column": 31 }, "end": { "line": 14, "column": 34 } } } ], "range": [ 483, 503 ], "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 35 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 480, 503 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 35 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "y", "range": [ 517, 518 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 13 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 521, 524 ], "loc": { "start": { "line": 15, "column": 16 }, "end": { "line": 15, "column": 19 } } }, { "type": "Literal", "value": "c", "raw": "'c'", "range": [ 526, 529 ], "loc": { "start": { "line": 15, "column": 21 }, "end": { "line": 15, "column": 24 } } }, { "type": "Literal", "value": "d", "raw": "'d'", "range": [ 531, 534 ], "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 29 } } }, { "type": "Literal", "value": "e", "raw": "'e'", "range": [ 536, 539 ], "loc": { "start": { "line": 15, "column": 31 }, "end": { "line": 15, "column": 34 } } }, { "type": "Literal", "value": "f", "raw": "'f'", "range": [ 541, 544