UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,339 lines (1,338 loc) 1.81 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": "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": "Rx", "range": [ 48, 50 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 53, 60 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 61, 80 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 36 } } } ], "range": [ 53, 81 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 37 } } }, "range": [ 48, 81 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 37 } } } ], "kind": "var", "range": [ 44, 82 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Notification", "range": [ 87, 99 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 16 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 102, 104 ], "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 4, "column": 21 } } }, "property": { "type": "Identifier", "name": "Notification", "range": [ 105, 117 ], "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 34 } } }, "range": [ 102, 117 ], "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 4, "column": 34 } } }, "range": [ 87, 117 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 34 } } } ], "kind": "var", "range": [ 83, 118 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 35 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "TestScheduler", "range": [ 123, 136 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 17 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 139, 141 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 22 } } }, "property": { "type": "Identifier", "name": "TestScheduler", "range": [ 142, 155 ], "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 36 } } }, "range": [ 139, 155 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 36 } } }, "range": [ 123, 155 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 36 } } } ], "kind": "var", "range": [ 119, 156 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 37 } }, "trailingComments": [ { "type": "Block", "value": "* @test {TestScheduler} ", "range": [ 157, 185 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 28 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 186, 194 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "TestScheduler", "raw": "'TestScheduler'", "range": [ 195, 210 ], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 24 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 230, 232 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should exist", "raw": "'should exist'", "range": [ 233, 247 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 21 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 271, 277 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 278, 284 ], "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 21 } } }, "range": [ 271, 284 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 21 } } }, "arguments": [ { "type": "Identifier", "name": "TestScheduler", "range": [ 285, 298 ], "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 35 } } } ], "range": [ 271, 299 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 36 } } }, "property": { "type": "Identifier", "name": "exist", "range": [ 300, 305 ], "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 42 } } }, "range": [ 271, 305 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 42 } } }, "range": [ 271, 306 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 43 } } }, { "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": [ 315, 321 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 322, 328 ], "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 10, "column": 21 } } }, "range": [ 315, 328 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 21 } } }, "arguments": [ { "type": "Identifier", "name": "TestScheduler", "range": [ 329, 342 ], "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 35 } } } ], "range": [ 315, 343 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 36 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 344, 346 ], "loc": { "start": { "line": 10, "column": 37 }, "end": { "line": 10, "column": 39 } } }, "range": [ 315, 346 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 39 } } }, "property": { "type": "Identifier", "name": "be", "range": [ 347, 349 ], "loc": { "start": { "line": 10, "column": 40 }, "end": { "line": 10, "column": 42 } } }, "range": [ 315, 349 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 42 } } }, "property": { "type": "Identifier", "name": "a", "range": [ 350, 351 ], "loc": { "start": { "line": 10, "column": 43 }, "end": { "line": 10, "column": 44 } } }, "range": [ 315, 351 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 44 } } }, "arguments": [ { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 352, 362 ], "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 55 } } } ], "range": [ 315, 363 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 56 } } }, "range": [ 315, 364 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 57 } } } ], "range": [ 261, 370 ], "loc": { "start": { "line": 8, "column": 35 }, "end": { "line": 11, "column": 5 } } }, "generator": false, "expression": false, "range": [ 249, 370 ], "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 11, "column": 5 } } } ], "range": [ 230, 371 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 11, "column": 6 } }, "_esdocTestId": 2361, "_esdocTestName": "it2361" }, "range": [ 230, 372 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 11, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 377, 385 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 12 } } }, "arguments": [ { "type": "Literal", "value": "parseMarbles()", "raw": "'parseMarbles()'", "range": [ 386, 402 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 29 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 426, 428 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 10 } } }, "arguments": [ { "type": "Literal", "value": "should parse a marble string into a series of notifications and types", "raw": "'should parse a marble string into a series of notifications and types'", "range": [ 429, 500 ], "loc": { "start": { "line": 13, "column": 11 }, "end": { "line": 13, "column": 82 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "result", "range": [ 532, 538 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 22 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "TestScheduler", "range": [ 541, 554 ], "loc": { "start": { "line": 14, "column": 25 }, "end": { "line": 14, "column": 38 } } }, "property": { "type": "Identifier", "name": "parseMarbles", "range": [ 555, 567 ], "loc": { "start": { "line": 14, "column": 39 }, "end": { "line": 14, "column": 51 } } }, "range": [ 541, 567 ], "loc": { "start": { "line": 14, "column": 25 }, "end": { "line": 14, "column": 51 } } }, "arguments": [ { "type": "Literal", "value": "-------a---b---|", "raw": "'-------a---b---|'", "range": [ 568, 586 ], "loc": { "start": { "line": 14, "column": 52 }, "end": { "line": 14, "column": 70 } } }, { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "a", "range": [ 590, 591 ], "loc": { "start": { "line": 14, "column": 74 }, "end": { "line": 14, "column": 75 } } }, "value": { "type": "Literal", "value": "A", "raw": "'A'", "range": [ 593, 596 ], "loc": { "start": { "line": 14, "column": 77 }, "end": { "line": 14, "column": 80 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 590, 596 ], "loc": { "start": { "line": 14, "column": 74 }, "end": { "line": 14, "column": 80 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "b", "range": [ 598, 599 ], "loc": { "start": { "line": 14, "column": 82 }, "end": { "line": 14, "column": 83 } }