Skip to content

Commit

Permalink
Fixing extra newlines in global statements (#502)
Browse files Browse the repository at this point in the history
closes #501
  • Loading branch information
belav committed Dec 1, 2021
1 parent 6e570de commit 6597401
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Src/CSharpier.Tests/FormattingTests/TestFiles/GlobalStatements.cst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
GlobalStatement();

WithNewLine();
WithNoNewLine();

// comment
WithComment();

#error Error
WithDirective();
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ internal static class GlobalStatement
public static Doc Print(GlobalStatementSyntax node)
{
return Doc.Concat(
ExtraNewLines.Print(node),
AttributeLists.Print(node, node.AttributeLists),
Modifiers.Print(node.Modifiers),
Node.Print(node.Statement)
Expand Down

0 comments on commit 6597401

Please sign in to comment.