Skip to content

Commit 19b4b68

Browse files
committed
skip locals init
1 parent 1dd652f commit 19b4b68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/MetadataRegistry.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.Numerics;
5+
using System.Runtime.CompilerServices;
56

67
namespace Types
78
{
89
/// <summary>
910
/// Stores metadata about types and interfaces.
1011
/// </summary>
12+
[SkipLocalsInit]
1113
public static class MetadataRegistry
1214
{
1315
private static readonly List<TypeMetadata> types = new();
@@ -356,7 +358,6 @@ static void InsertSpan(Span<char> buffer, ReadOnlySpan<char> text, ref int lengt
356358

357359
static void AppendType(Span<char> fullName, ref int length, Type type)
358360
{
359-
//todo: handle case where the type name is System.Collections.Generic.List`1+Enumerator[etc, etc]
360361
Type? current = type;
361362
string? currentNameSpace = current.Namespace;
362363
while (current is not null)

0 commit comments

Comments
 (0)