Skip to content

Commit

Permalink
Fix empty line before collection expression in attribute (#1164)
Browse files Browse the repository at this point in the history
closes #1163
  • Loading branch information
belav authored Feb 4, 2024
1 parent c8b9fc9 commit 84b5bc4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .idea/.idea.CSharpier/.idea/CSharpierPlugin.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,19 @@ class MyClass
DayOfWeek.Saturday
];
}

[SomeAttribute(
[
someValue,
someValue,
someValue,
someValue,
someValue,
someValue,
someValue,
someValue,
someValue,
someValue,
]
)]
class ClassName { }
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public static Doc Print(CollectionExpressionSyntax node, FormattingContext conte
{
Doc separator = node.Parent
is ArgumentSyntax { NameColon: null }
or AttributeArgumentSyntax
or ArrowExpressionClauseSyntax
or ExpressionElementSyntax
or AssignmentExpressionSyntax
Expand Down

0 comments on commit 84b5bc4

Please sign in to comment.