protected internal virtual Expression VisitWhile(WhileCSharpStatement node) =>
 node.Update(
     VisitLabelTarget(node.BreakLabel),
     VisitLabelTarget(node.ContinueLabel),
     Visit(node.Test),
     Visit(node.Body),
     VisitAndConvert(node.Locals, nameof(VisitDo))
     );
Exemplo n.º 2
0
        protected internal override Expression VisitWhile(WhileCSharpStatement node)
        {
            var args = new List <object>();

            args.Add(new XElement(nameof(node.Test), Visit(node.Test)));
            args.Add(new XElement(nameof(node.Body), Visit(node.Body)));

            if (node.BreakLabel != null)
            {
                args.Add(new XElement(nameof(node.BreakLabel), _parent.GetDebugView(node.BreakLabel)));
            }

            if (node.ContinueLabel != null)
            {
                args.Add(new XElement(nameof(node.ContinueLabel), _parent.GetDebugView(node.ContinueLabel)));
            }

            return(Push(node, args));
        }
 protected internal virtual Expression VisitWhile(WhileCSharpStatement node)
 {
     return node.Update(VisitLabelTarget(node.BreakLabel), VisitLabelTarget(node.ContinueLabel), Visit(node.Test), Visit(node.Body));
 }
Exemplo n.º 4
0
 protected internal virtual Expression VisitWhile(WhileCSharpStatement node)
 {
     return(node.Update(VisitLabelTarget(node.BreakLabel), VisitLabelTarget(node.ContinueLabel), Visit(node.Test), Visit(node.Body)));
 }
 public WhileCSharpStatementProxy(WhileCSharpStatement node)
 {
     _node = node;
 }
Exemplo n.º 6
0
            protected internal override Expression VisitWhile(WhileCSharpStatement node)
            {
                Visited = true;

                return base.VisitWhile(node);
            }
 public WhileCSharpStatementProxy(WhileCSharpStatement node)
 {
     _node = node;
 }