Skip to content

Commit

Permalink
Fixing issue with losing unsafe keyword on using statement (#1417)
Browse files Browse the repository at this point in the history
closes #1416
  • Loading branch information
belav authored Dec 28, 2024
1 parent e3b5efb commit 3b88bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using A; // trailing
// leading with space
using // another trailing
B;
using unsafe NvapiQueryInterface = delegate* unmanaged[Cdecl]<uint, nint>;

namespace Namespace
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static Doc Print(
printExtraLines ? ExtraNewLines.Print(node) : Doc.Null,
Token.PrintWithSuffix(node.GlobalKeyword, " ", context, skipLeadingTrivia: true),
Token.PrintWithSuffix(node.UsingKeyword, " ", context, skipLeadingTrivia: true),
Token.PrintWithSuffix(node.UnsafeKeyword, " ", context, skipLeadingTrivia: true),
Token.PrintWithSuffix(node.StaticKeyword, " ", context, skipLeadingTrivia: true),
node.Alias == null ? Doc.Null : NameEquals.Print(node.Alias, context),
Node.Print(node.NamespaceOrType, context),
Expand Down

0 comments on commit 3b88bee

Please sign in to comment.