Skip to content

Commit 17a5336

Browse files
Add C# 14 ExtensionMarkerAttribute
1 parent 732f285 commit 17a5336

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ICSharpCode.Decompiler/TypeSystem/Implementation/KnownAttributes.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,14 @@ public enum KnownAttribute
116116

117117
// C# 12 attributes:
118118
InlineArray,
119+
120+
// C# 14 attributes:
121+
ExtensionMarker,
119122
}
120123

121124
public static class KnownAttributes
122125
{
123-
internal const int Count = (int)KnownAttribute.InlineArray + 1;
126+
internal const int Count = (int)KnownAttribute.ExtensionMarker + 1;
124127

125128
static readonly TopLevelTypeName[] typeNames = new TopLevelTypeName[Count]{
126129
default,
@@ -193,6 +196,8 @@ public static class KnownAttributes
193196
new TopLevelTypeName("System.Runtime.CompilerServices", "RequiredMemberAttribute"),
194197
// C# 12 attributes:
195198
new TopLevelTypeName("System.Runtime.CompilerServices", "InlineArrayAttribute"),
199+
// C# 14 attributes:
200+
new TopLevelTypeName("System.Runtime.CompilerServices", "ExtensionMarkerAttribute"),
196201
};
197202

198203
public static ref readonly TopLevelTypeName GetTypeName(this KnownAttribute attr)

0 commit comments

Comments
 (0)