Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs')
-rw-r--r--src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs b/src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs
index 55be359be4b..341c361253d 100644
--- a/src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs
+++ b/src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs
@@ -7,8 +7,6 @@ using System.Text;
using Internal.TypeSystem;
using Internal.TypeSystem.Ecma;
-using Debug = System.Diagnostics.Debug;
-
namespace ILCompiler
{
public static class DisplayNameHelpers
@@ -140,9 +138,9 @@ namespace ILCompiler
return Formatter.Instance.FormatName(type, FormatOptions.None);
}
- private class Formatter : TypeNameFormatter<Formatter.Unit, FormatOptions>
+ private sealed class Formatter : TypeNameFormatter<Formatter.Unit, FormatOptions>
{
- public readonly static Formatter Instance = new Formatter();
+ public static readonly Formatter Instance = new Formatter();
public override Unit AppendName(StringBuilder sb, ArrayType type, FormatOptions options)
{
@@ -243,7 +241,7 @@ namespace ILCompiler
return default;
}
- private void NamespaceQualify(StringBuilder sb, DefType type, FormatOptions options)
+ private static void NamespaceQualify(StringBuilder sb, DefType type, FormatOptions options)
{
if ((options & FormatOptions.NamespaceQualify) != 0)
{