Skip to content

Commit

Permalink
Fixing a bug introduced by one of the fixes (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
belav authored Dec 28, 2024
1 parent 3b88bee commit cd618ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Some Comment

#if DEBUG
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

// Some Comment

#if DEBUG
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public static Doc Print(CompilationUnitSyntax node, PrintingContext context)
if (
finalTrivia is Concat { Contents.Count: > 1 } list
&& list.Contents[1] is LeadingComment
&& docs[^1] is Concat previousList
&& docs.Count > 0
&& docs[^1] is Concat { Contents.Count: > 1 } previousList
&& previousList.Contents[^1] is HardLine
&& previousList.Contents[^2] is HardLine
)
Expand Down

0 comments on commit cd618ac

Please sign in to comment.