replaceState(oldState, newState) {
    return new AwaitState(
        State.replaceStateId(this.id, oldState, newState),
        State.replaceStateId(this.callbackState, oldState, newState),
        this.expression);
  }
@param {number} oldState
@param {number} newState
@return {AwaitState}