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); }
void IAstVisitor.VisitForeachStatement(ForeachStatement foreachStatement) { Visit(EnterForeachStatement, LeaveForeachStatement, foreachStatement); }