Skip to content

Commit

Permalink
GH-7 breaking before close paren when we have arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Mar 14, 2021
1 parent 1d6b0be commit ad63817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ class ClassName
"kljasdfkljaslkjdfljaksdfkjlaksljfaksjldf");

var superLongMethodNameForceLine = someFactoryName.SuperLongMethodNameForceLine();

this.WhenThereExists(
a.Website().WithDomainName("test-integration.insite.com")
);
}
}
1 change: 1 addition & 0 deletions Src/CSharpier/Printer/ArgumentListSyntax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ private Doc PrintArgumentListSyntax(ArgumentListSyntax node)
this.PrintArgumentSyntax,
Line))
: null,
node.Arguments.Any() ? SoftLine : null,
this.PrintSyntaxToken(node.CloseParenToken));

return node.Parent is not ObjectCreationExpressionSyntax
Expand Down

0 comments on commit ad63817

Please sign in to comment.