Ejemplo n.º 1
0
 public virtual ICodeNode VisitForEachStatement(ForEachStatement node)
 {
     node.Variable   = (VariableDeclarationExpression)Visit(node.Variable);
     node.Expression = (Expression)Visit(node.Expression);
     node.Body       = (BlockStatement)Visit(node.Body);
     return(node);
 }
Ejemplo n.º 2
0
		public virtual void VisitForEachStatement (ForEachStatement node)
		{
			Visit (node.Variable);
			Visit (node.Expression);
			Visit (node.Body);
		}
		public override void VisitForEachStatement (ForEachStatement node)
		{
			WriteKeyword ("foreach");
			WriteSpace ();
			WriteToken ("(");
			Visit (node.Variable);
			WriteSpace ();
			WriteKeyword ("in");
			WriteSpace ();
			Visit (node.Expression);
			WriteToken (")");
			WriteLine ();
			Visit (node.Body);
		}
Ejemplo n.º 4
0
 public virtual void VisitForEachStatement(ForEachStatement node)
 {
     Visit(node.Variable);
     Visit(node.Expression);
     Visit(node.Body);
 }