UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

986 lines 30.7 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": "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 {never} ", "range": [ 85, 105 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 20 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 106, 114 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.never", "raw": "'Observable.never'", "range": [ 115, 133 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 27 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "asDiagram", "range": [ 153, 162 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 13 } } }, "arguments": [ { "type": "Literal", "value": "never", "raw": "'never'", "range": [ 163, 170 ], "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 21 } } } ], "range": [ 153, 171 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 22 } } }, "arguments": [ { "type": "Literal", "value": "should create a cold observable that never emits", "raw": "'should create a cold observable that never emits'", "range": [ 172, 222 ], "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 73 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 250, 258 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 20 } } }, "init": { "type": "Literal", "value": "-", "raw": "'-'", "range": [ 261, 264 ], "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 7, "column": 26 } } }, "range": [ 250, 264 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 26 } } } ], "kind": "var", "range": [ 246, 265 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e1", "range": [ 278, 280 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Observable", "range": [ 283, 293 ], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 27 } } }, "property": { "type": "Identifier", "name": "never", "range": [ 294, 299 ], "loc": { "start": { "line": 8, "column": 28 }, "end": { "line": 8, "column": 33 } } }, "range": [ 283, 299 ], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 33 } } }, "arguments": [], "range": [ 283, 301 ], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 35 } } }, "range": [ 278, 301 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 35 } } } ], "kind": "var", "range": [ 274, 302 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 36 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "expectObservable", "range": [ 311, 327 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 24 } } }, "arguments": [ { "type": "Identifier", "name": "e1", "range": [ 328, 330 ], "loc": { "start": { "line": 9, "column": 25 }, "end": { "line": 9, "column": 27 } } } ], "range": [ 311, 331 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 28 } } }, "property": { "type": "Identifier", "name": "toBe", "range": [ 332, 336 ], "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 33 } } }, "range": [ 311, 336 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 33 } } }, "arguments": [ { "type": "Identifier", "name": "expected", "range": [ 337, 345 ], "loc": { "start": { "line": 9, "column": 34 }, "end": { "line": 9, "column": 42 } } } ], "range": [ 311, 346 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 43 } } }, "range": [ 311, 347 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 44 } } } ], "range": [ 236, 353 ], "loc": { "start": { "line": 6, "column": 87 }, "end": { "line": 10, "column": 5 } } }, "generator": false, "expression": false, "range": [ 224, 353 ], "loc": { "start": { "line": 6, "column": 75 }, "end": { "line": 10, "column": 5 } } } ], "range": [ 153, 354 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 10, "column": 6 } } }, "range": [ 153, 355 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 10, "column": 7 } } } ], "range": [ 147, 357 ], "loc": { "start": { "line": 5, "column": 41 }, "end": { "line": 11, "column": 1 } } }, "generator": false, "expression": false, "range": [ 135, 357 ], "loc": { "start": { "line": 5, "column": 29 }, "end": { "line": 11, "column": 1 } } } ], "range": [ 106, 358 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 11, "column": 2 } }, "_esdocTestId": 434, "_esdocTestName": "describe434" }, "range": [ 106, 359 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 11, "column": 3 } }, "leadingComments": [ { "type": "Block", "value": "* @test {never} ", "range": [ 85, 105 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 20 } } } ], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=never-spec.js.map", "range": [ 360, 398 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 38 } } } ] } ], "sourceType": "module", "range": [ 0, 359 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 11, "column": 3 } }, "comments": [ { "type": "Block", "value": "* @test {never} ", "range": [ 85, 105 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 20 } } }, { "type": "Line", "value": "# sourceMappingURL=never-spec.js.map", "range": [ 360, 398 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 38 } } } ] }