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/JitInterface/TypeString.cs')
-rw-r--r--src/coreclr/tools/Common/JitInterface/TypeString.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coreclr/tools/Common/JitInterface/TypeString.cs b/src/coreclr/tools/Common/JitInterface/TypeString.cs
index db600843151..7bdb02e0810 100644
--- a/src/coreclr/tools/Common/JitInterface/TypeString.cs
+++ b/src/coreclr/tools/Common/JitInterface/TypeString.cs
@@ -10,7 +10,7 @@ namespace Internal.JitInterface
// This is a very rough equivalent of typestring.cpp in the CLR.
// There's way more rules to capture. Hopefully, we'll only ever need this in the code to recognize SIMD intrisics
// and we won't need to replicate all the details around escaping and such.
- internal class TypeString : TypeNameFormatter
+ internal sealed class TypeString : TypeNameFormatter
{
public static TypeString Instance { get; } = new TypeString();
@@ -29,7 +29,7 @@ namespace Internal.JitInterface
public override void AppendName(StringBuilder sb, SignatureTypeVariable type)
{
- sb.Append("!");
+ sb.Append('!');
sb.Append(type.Index);
}
@@ -59,7 +59,7 @@ namespace Internal.JitInterface
public override void AppendName(StringBuilder sb, ByRefType type)
{
AppendName(sb, type.ParameterType);
- sb.Append("&");
+ sb.Append('&');
}
public override void AppendName(StringBuilder sb, ArrayType type)