Exemplo n.º 1
0
 protected internal virtual Expression VisitForEachExpression(ForEachExpression node) =>
 node.Update(
     (ParameterExpression)Visit(node.Variable),
     Visit(node.Enumerable),
     Visit(node.Body),
     node.BreakTarget,
     node.ContinueTarget);
		protected internal virtual Expression VisitForEachExpression (ForEachExpression node)
		{
			return node.Update (
				(ParameterExpression) Visit (node.Variable),
				Visit (node.Enumerable),
				Visit (node.Body),
				node.BreakTarget,
				node.ContinueTarget);
		}
Exemplo n.º 3
0
        protected internal override Expression VisitForEachExpression(ForEachExpression node)
        {
            WriteKeyword("foreach");
            WriteSpace();
            WriteToken("(");
            VisitType(node.Variable.Type);
            WriteSpace();
            Visit(node.Variable);
            WriteSpace();
            WriteKeyword("in");
            WriteSpace();
            Visit(node.Enumerable);
            WriteToken(")");
            WriteLine();

            VisitAsBlock(node.Body);

            return(node);
        }