Beispiel #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);
 }
Beispiel #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);
		}
 public virtual void VisitForEachStatement(ForEachStatement node)
 {
     Visit(node.Variable);
     Visit(node.Expression);
     Visit(node.Body);
 }