示例#1
0
 public virtual void Visit(ForSyntax pNode)
 {
     pNode.Declaration.Accept(this);
     pNode.Condition.Accept(this);
     pNode.PostLoop.Accept(this);
     pNode.Body.Accept(this);
 }
示例#2
0
 public virtual SyntaxNode Visit(ForSyntax pNode)
 {
     return(SyntaxFactory.For(pNode.Declaration.Accept <DeclarationStatementSyntax>(this),
                              pNode.Condition.Accept <ExpressionSyntax>(this),
                              pNode.PostLoop.Accept <ExpressionSyntax>(this),
                              pNode.Body.Accept <BlockSyntax>(this)));
 }