示例#1
0
 // NewExpression
 private Expression Rewrite(NewExpression node)
 {
     Expression[] clone, comma;
     if (RewriteExpressions(node.Arguments, out clone, out comma))
     {
         comma[comma.Length - 1] =
             Ast.New(node.Constructor, clone);
         return(Ast.Comma(comma));
     }
     else
     {
         return(node);
     }
 }