|
|
|
|
@ -116,11 +116,14 @@ namespace ICSharpCode.Decompiler.TypeSystem
@@ -116,11 +116,14 @@ namespace ICSharpCode.Decompiler.TypeSystem
|
|
|
|
|
|
|
|
|
|
// C# 12 attributes:
|
|
|
|
|
InlineArray, |
|
|
|
|
|
|
|
|
|
// C# 14 attributes:
|
|
|
|
|
ExtensionMarker, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class KnownAttributes |
|
|
|
|
{ |
|
|
|
|
internal const int Count = (int)KnownAttribute.InlineArray + 1; |
|
|
|
|
internal const int Count = (int)KnownAttribute.ExtensionMarker + 1; |
|
|
|
|
|
|
|
|
|
static readonly TopLevelTypeName[] typeNames = new TopLevelTypeName[Count]{ |
|
|
|
|
default, |
|
|
|
|
@ -193,6 +196,8 @@ namespace ICSharpCode.Decompiler.TypeSystem
@@ -193,6 +196,8 @@ namespace ICSharpCode.Decompiler.TypeSystem
|
|
|
|
|
new TopLevelTypeName("System.Runtime.CompilerServices", "RequiredMemberAttribute"), |
|
|
|
|
// C# 12 attributes:
|
|
|
|
|
new TopLevelTypeName("System.Runtime.CompilerServices", "InlineArrayAttribute"), |
|
|
|
|
// C# 14 attributes:
|
|
|
|
|
new TopLevelTypeName("System.Runtime.CompilerServices", "ExtensionMarkerAttribute"), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
public static ref readonly TopLevelTypeName GetTypeName(this KnownAttribute attr) |
|
|
|
|
|