Skip to content

Commit

Permalink
Print leading trivia on unhandled nodes
Browse files Browse the repository at this point in the history
closes #869
  • Loading branch information
belav committed Apr 10, 2023
1 parent 0b45a0f commit a285102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// make sure to print leading trivia on unhandled nodes
scoped Span<byte> byteBuffer;
2 changes: 1 addition & 1 deletion Src/CSharpier/SyntaxPrinter/UnhandledNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ internal static class UnhandledNode
{
public static Doc Print(SyntaxNode node, FormattingContext context)
{
return node.ToString();
return node.ToFullString();
}
}

0 comments on commit a285102

Please sign in to comment.