public Expression TransformFunction(FunctionCall expr)
 {
     Expression[] newArgs = new Expression[expr.Arguments.Length];
     for (int i = 0; i < newArgs.Length; i++)
     {
         newArgs[i] = expr.Arguments[i].Transform(this);
     }
     return(expr.CloneThis(newArgs));
 }
示例#2
0
 /// <summary>
 /// Transforms a function call expression. The default implementation clones it.
 /// </summary>
 /// <param name="expr">function call expression</param>
 /// <returns>transformation result</returns>
 public virtual Expression TransformFunction(FunctionCall expr)
 {
     return(expr.CloneThis(expr.Children.Select(e => e.Transform(this)).ToArray()));
 }
 /// <summary>
 /// Transforms a function call expression. The default implementation clones it.
 /// </summary>
 /// <param name="expr">function call expression</param>
 /// <returns>transformation result</returns>
 public virtual Expression TransformFunction(FunctionCall expr)
 {
     return expr.CloneThis(expr.Children.Select(e => e.Transform(this)).ToArray());
 }