|
|
@ -1763,8 +1763,12 @@ namespace ICSharpCode.NRefactory.CSharp |
|
|
|
} |
|
|
|
} |
|
|
|
curIndent.ExtraSpaces -= extraSpaces; |
|
|
|
curIndent.ExtraSpaces -= extraSpaces; |
|
|
|
} |
|
|
|
} |
|
|
|
if (methodClosingParenthesesOnNewLine) { |
|
|
|
if (!rParToken.IsNull) { |
|
|
|
FixStatementIndentation(rParToken.StartLocation); |
|
|
|
if (methodClosingParenthesesOnNewLine) { |
|
|
|
|
|
|
|
FixStatementIndentation(rParToken.StartLocation); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
ForceSpacesBeforeRemoveNewLines(rParToken, spaceWithinMethodCallParentheses); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
foreach (var arg in arguments) { |
|
|
|
foreach (var arg in arguments) { |
|
|
@ -1777,7 +1781,18 @@ namespace ICSharpCode.NRefactory.CSharp |
|
|
|
} |
|
|
|
} |
|
|
|
arg.AcceptVisitor(this); |
|
|
|
arg.AcceptVisitor(this); |
|
|
|
} |
|
|
|
} |
|
|
|
ForceSpacesBeforeRemoveNewLines(rParToken, spaceWithinMethodCallParentheses); |
|
|
|
if (!rParToken.IsNull) { |
|
|
|
|
|
|
|
if (methodCallArgumentWrapping == Wrapping.DoNotWrap) { |
|
|
|
|
|
|
|
ForceSpacesBeforeRemoveNewLines(rParToken, spaceWithinMethodCallParentheses); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
bool sameLine = rParToken.GetPrevNode().StartLocation.Line == rParToken.StartLocation.Line; |
|
|
|
|
|
|
|
if (sameLine) { |
|
|
|
|
|
|
|
ForceSpacesBeforeRemoveNewLines(rParToken, spaceWithinMethodCallParentheses); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
FixStatementIndentation(rParToken.StartLocation); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (!rParToken.IsNull) { |
|
|
|
if (!rParToken.IsNull) { |
|
|
|
foreach (CSharpTokenNode comma in rParToken.Parent.Children.Where(n => n.Role == Roles.Comma)) { |
|
|
|
foreach (CSharpTokenNode comma in rParToken.Parent.Children.Where(n => n.Role == Roles.Comma)) { |
|
|
|