UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,317 lines (1,316 loc) 454 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "root", "range": [ 9, 13 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 13 } } }, "imported": { "type": "Identifier", "name": "root", "range": [ 9, 13 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 13 } } }, "range": [ 9, 13 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 13 } } } ], "source": { "type": "Literal", "value": "../util/root", "raw": "'../util/root'", "range": [ 21, 35 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 35 } } }, "range": [ 0, 36 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Action", "range": [ 46, 52 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 } } }, "imported": { "type": "Identifier", "name": "Action", "range": [ 46, 52 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 } } }, "range": [ 46, 52 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 } } } ], "source": { "type": "Literal", "value": "./Action", "raw": "'./Action'", "range": [ 60, 70 ], "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 33 } } }, "range": [ 37, 71 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 34 } }, "trailingComments": [ { "type": "Block", "value": "*\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n ", "range": [ 72, 163 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "AsyncAction", "range": [ 175, 186 ], "loc": { "start": { "line": 8, "column": 11 }, "end": { "line": 8, "column": 22 } } }, "init": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_super", "range": [ 200, 206 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 42 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__extends", "range": [ 214, 223 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "AsyncAction", "range": [ 224, 235 ], "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 25 } } }, { "type": "Identifier", "name": "_super", "range": [ 237, 243 ], "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 9, "column": 33 } } } ], "range": [ 214, 244 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 34 } } }, "range": [ 214, 245 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 35 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "AsyncAction", "range": [ 259, 270 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 24 } } }, "params": [ { "type": "Identifier", "name": "scheduler", "range": [ 271, 280 ], "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 34 } } }, { "type": "Identifier", "name": "work", "range": [ 282, 286 ], "loc": { "start": { "line": 10, "column": 36 }, "end": { "line": 10, "column": 40 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_super", "range": [ 298, 304 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 14 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 305, 309 ], "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 19 } } }, "range": [ 298, 309 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 19 } } }, "arguments": [ { "type": "ThisExpression", "range": [ 310, 314 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 24 } } }, { "type": "Identifier", "name": "scheduler", "range": [ 316, 325 ], "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 35 } } }, { "type": "Identifier", "name": "work", "range": [ 327, 331 ], "loc": { "start": { "line": 11, "column": 37 }, "end": { "line": 11, "column": 41 } } } ], "range": [ 298, 332 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 42 } } }, "range": [ 298, 333 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 43 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 342, 346 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "name": "scheduler", "range": [ 347, 356 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 22 } } }, "range": [ 342, 356 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 22 } } }, "right": { "type": "Identifier", "name": "scheduler", "range": [ 359, 368 ], "loc": { "start": { "line": 12, "column": 25 }, "end": { "line": 12, "column": 34 } } }, "range": [ 342, 368 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 34 } } }, "range": [ 342, 369 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 378, 382 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "name": "work", "range": [ 383, 387 ], "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 17 } } }, "range": [ 378, 387 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 17 } } }, "right": { "type": "Identifier", "name": "work", "range": [ 390, 394 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 24 } } }, "range": [ 378, 394 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 24 } } }, "range": [ 378, 395 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 25 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 404, 408 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "pending", "range": [ 409, 416 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 20 } } }, "range": [ 404, 416 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 20 } } }, "right": { "type": "Literal", "value": false, "raw": "false", "range": [ 419, 424 ], "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 28 } } }, "range": [ 404, 424 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 28 } } }, "range": [ 404, 425 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 29 } } } ], "range": [ 288, 431 ], "loc": { "start": { "line": 10, "column": 42 }, "end": { "line": 15, "column": 5 } } }, "generator": false, "expression": false, "range": [ 250, 431 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 15, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "AsyncAction", "range": [ 436, 447 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 15 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 448, 457 ], "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 25 } } }, "range": [ 436, 457 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 25 } } }, "property": { "type": "Identifier", "name": "schedule", "range": [ 458, 466 ], "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 34 } } }, "range": [ 436, 466 ], "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 34 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "state", "range": [ 479, 484 ], "loc": { "start": { "line": 16, "column": 47 }, "end": { "line": 16, "column": 52 } } }, { "type": "Identifier", "name": "delay", "range": [ 486, 491 ], "loc": { "start": { "line": 16, "column": 54 }, "end": { "line": 16, "column": 59 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "delay", "range": [ 507, 512 ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 17 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 522, 523 ], "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 28 } } }, "prefix": true, "range": [ 517, 523 ], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 28 } } }, "range": [ 507, 523 ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 28 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "delay", "range": [ 527, 532 ], "loc": { "start": { "line": 17, "column": 32 }, "end": { "line": 17, "column": 37 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 535, 536 ], "loc": { "start": { "line": 17, "column": 40 }, "end": { "line": 17, "column": 41 } } }, "range": [ 527, 536 ], "loc": { "start": { "line": 17, "column": 32 }, "end": { "line": 17, "column": 41 } } }, "range": [ 527, 537 ], "loc": { "start": { "line": 17, "column": 32 }, "end": { "line": 17, "column": 42 } } } ], "range": [ 525, 539 ], "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 44 } } }, "alternate": null, "range": [ 503, 539 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 44 } } }, { "type": "IfStatement", "test": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 552, 556 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 16 } } }, "property": { "type": "Identifier", "name": "closed", "range": [ 557, 563 ], "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 23 } } }, "range": [ 552, 563 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 23 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ThisExpression", "range": [ 586, 590 ], "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 23 } } }, "range": [ 579, 591 ], "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 24 }