Skip to content

Commit e563294

Browse files
author
James May
committed
MemberImplementsInterfaceAnalyzer: hide for unresolved members
1 parent f8353d3 commit e563294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ILSpy/Analyzers/Builtin/MemberImplementsInterfaceAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public bool Show(ISymbol symbol)
5151
case SymbolKind.Property:
5252
var member = (IMember)symbol;
5353
var type = member.DeclaringTypeDefinition;
54-
return !member.IsStatic && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct);
54+
return !member.IsStatic && type is not null && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct);
5555

5656
default:
5757
return false;

0 commit comments

Comments
 (0)