(toState: TaskState, fromState1: TaskState, fromState2?: TaskState)
| 1455 | } |
| 1456 | |
| 1457 | _transitionTo(toState: TaskState, fromState1: TaskState, fromState2?: TaskState) { |
| 1458 | if (this._state === fromState1 || this._state === fromState2) { |
| 1459 | this._state = toState; |
| 1460 | if (toState == notScheduled) { |
| 1461 | this._zoneDelegates = null; |
| 1462 | } |
| 1463 | } else { |
| 1464 | throw new Error( |
| 1465 | `${this.type} '${ |
| 1466 | this.source |
| 1467 | }': can not transition to '${toState}', expecting state '${fromState1}'${ |
| 1468 | fromState2 ? " or '" + fromState2 + "'" : '' |
| 1469 | }, was '${this._state}'.`, |
| 1470 | ); |
| 1471 | } |
| 1472 | } |
| 1473 | |
| 1474 | public toString() { |
| 1475 | if (this.data && typeof this.data.handleId !== 'undefined') { |
no outgoing calls
no test coverage detected