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);
            }
        }
Exemplo n.º 2
0
 public virtual TResult VisitCopyValue(BoundCopyValue x) => DefaultVisitOperation(x);
Exemplo n.º 3
0
 public override object VisitCopyValue(BoundCopyValue x)
 {
     return(x.Update((BoundExpression)Accept(x.Expression)));
 }
Exemplo n.º 4
0
 public override VoidStruct VisitCopyValue(BoundCopyValue x)
 {
     _result.Add(x);
     return(base.VisitCopyValue(x));
 }