/// <summary> /// Creates a new expression that is like this one, but using the supplied children. /// </summary> /// <param name="operand">The <see cref="UnaryCSharpExpression.Operand" /> property of the result.</param> /// <param name="info">The <see cref="AwaitCSharpExpression.Info"/> property of the result.</param> /// <returns>An expression with the updated children.</returns> protected internal virtual AwaitCSharpExpression Rewrite(Expression operand, AwaitInfo info) => CSharpExpression.Await(operand, info);
/// <summary> /// Creates a new expression that is like this one, but using the supplied children. /// </summary> /// <param name="operand">The <see cref="UnaryCSharpExpression.Operand" /> property of the result.</param> /// <returns>An expression with the updated children.</returns> protected internal virtual AwaitCSharpExpression Rewrite(Expression operand) { return(CSharpExpression.Await(operand, GetAwaiterMethod)); }