public override object VisitCopyValue(BoundCopyValue x)
        {
            var valueEx = (BoundExpression)Accept(x.Expression);

            if (valueEx.IsDeeplyCopied)
            {
                return(x.Update(valueEx));
            }
            else
            {
                // deep copy is unnecessary:
                TransformationCount++;
                return(valueEx);
            }
        }
Example #2
0
 public override object VisitCopyValue(BoundCopyValue x)
 {
     return(x.Update((BoundExpression)Accept(x.Expression)));
 }