public override void VisitForeachStatement(ForeachStatement foreachStatement)
        {
            ForceSpacesBeforeRemoveNewLines(foreachStatement.LParToken, policy.SpaceBeforeForeachParentheses);

            ForceSpacesAfter(foreachStatement.LParToken, policy.SpacesWithinForeachParentheses);
            ForceSpacesBeforeRemoveNewLines(foreachStatement.RParToken, policy.SpacesWithinForeachParentheses);

            FixEmbeddedStatment(policy.StatementBraceStyle, foreachStatement.EmbeddedStatement);
        }
コード例 #2
0
 void IAstVisitor.VisitForeachStatement(ForeachStatement foreachStatement)
 {
     Visit(EnterForeachStatement, LeaveForeachStatement, foreachStatement);
 }