handle abstract interface

This commit is contained in:
Matt Parker
2025-10-12 14:28:23 +10:00
parent 5664fceb29
commit d4b67cb02d

View File

@@ -63,9 +63,10 @@ public static partial class SymbolInfoComponents
} }
} }
private static void AddAbstractModifier(this RichTextLabel label, ISymbol methodSymbol) private static void AddAbstractModifier(this RichTextLabel label, ISymbol symbol)
{ {
if (methodSymbol.IsAbstract) if (symbol is INamedTypeSymbol { TypeKind: TypeKind.Interface }) return;
if (symbol.IsAbstract)
{ {
label.PushColor(CachedColors.KeywordBlue); label.PushColor(CachedColors.KeywordBlue);
label.AddText("abstract"); label.AddText("abstract");