Skip to content

Commit

Permalink
Remove extra newline for collection expression property initializers (#…
Browse files Browse the repository at this point in the history
…1065)

Co-authored-by: Bela VanderVoort <twobitbela@gmail.com>
  • Loading branch information
SapiensAnatis and belav committed Dec 10, 2023
1 parent d9b0a88 commit 5cb2a0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,15 @@ class MyClass
HttpMethod.None,
HttpMethod.Connect,
];

public List<DayOfWeek> DaysOfWeek { get; } =
[
DayOfWeek.Sunday,
DayOfWeek.Monday,
DayOfWeek.Tuesday,
DayOfWeek.Wednesday,
DayOfWeek.Thursday,
DayOfWeek.Friday,
DayOfWeek.Saturday
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ or InitializerExpressionSyntax
or ExpressionStatementSyntax
)
}
or EqualsValueClauseSyntax
{
Parent: not (PropertyDeclarationSyntax or VariableDeclaratorSyntax)
}
or EqualsValueClauseSyntax { Parent: not VariableDeclaratorSyntax }
? Doc.Null
: Doc.IfBreak(Doc.Line, Doc.Null);

Expand Down

0 comments on commit 5cb2a0d

Please sign in to comment.