Skip to content
Browse files

Fixed formatting unit tests.

  • Loading branch information...
1 parent 2eb61ac commit c773b586c80184e9466c5dc0a9da9046c5d3d3d4 @mkrueger mkrueger committed Apr 18, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 ICSharpCode.NRefactory.CSharp/Formatter/AstFormattingVisitor.cs
View
4 ICSharpCode.NRefactory.CSharp/Formatter/AstFormattingVisitor.cs
@@ -865,6 +865,8 @@ void FormatParameters(AstNode node)
foreach (var arg in parameters) {
if (methodCallArgumentWrapping == Wrapping.DoNotWrap) {
ForceSpacesBeforeRemoveNewLines(arg, spaceAfterMethodCallParameterComma && arg.PrevSibling.Role == Roles.Comma);
+ } else {
+ ForceSpacesBefore(arg, spaceAfterMethodCallParameterComma && arg.PrevSibling.Role == Roles.Comma);
}
arg.AcceptVisitor(this);
}
@@ -1764,6 +1766,8 @@ void FormatArguments(AstNode node)
foreach (var arg in arguments) {
if (methodCallArgumentWrapping == Wrapping.DoNotWrap) {
ForceSpacesBeforeRemoveNewLines(arg, spaceAfterMethodCallParameterComma && arg.PrevSibling.Role == Roles.Comma);
+ } else {
+ ForceSpacesBefore(arg, spaceAfterMethodCallParameterComma && arg.PrevSibling.Role == Roles.Comma);
}
arg.AcceptVisitor(this);
}

0 comments on commit c773b58

Please sign in to comment.
Something went wrong with that request. Please try again.