From 1088909daa6e60ec6bec65419d55c94a3b13b13b Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Thu, 8 Jan 2026 16:56:04 -0600 Subject: [PATCH] Strip global prefix from using statements --- src/PluginMerge/Creator/FileCreator.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PluginMerge/Creator/FileCreator.cs b/src/PluginMerge/Creator/FileCreator.cs index 4081fe5..0dcfc5a 100644 --- a/src/PluginMerge/Creator/FileCreator.cs +++ b/src/PluginMerge/Creator/FileCreator.cs @@ -425,7 +425,11 @@ private sealed class UsingStatementData public UsingStatementData(UsingDirectiveSyntax @using) { UsingText = @using.ToString(); - UsingName = @using.Name.ToString(); + if (UsingText.StartsWith("global ", StringComparison.Ordinal)) + { + UsingText = UsingText[7..]; + } + UsingName = @using.Name!.ToString(); if (@using.StaticKeyword != default) { _type |= UsingType.Static;