Skip to content

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed May 27, 2021
1 parent f9dc61f commit 6a76b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ClassName
}
};

private SomeClass[,] someClass = {
private int[,] arrayInitializerWithoutSize = {
// leading comment should not interfere with the next line breaking
{
longValue______________________________,
Expand Down
8 changes: 3 additions & 5 deletions Src/CSharpier/DocPrinter/DocPrinter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,11 @@ void Push(Doc doc, PrintMode printMode, Indent indent)
{
returnFalseIfMoreStringsFound = false;
}
if (
line.Type == LineDoc.LineType.Hard
&& currentDoc
is not HardLine { SkipBreakIfFirstInGroup: true }
) {
else if (line.Type == LineDoc.LineType.Hard)
{
return true;
}

if (line.Type != LineDoc.LineType.Soft)
{
output.Append(' ');
Expand Down

0 comments on commit 6a76b3b

Please sign in to comment.