Skip to content

Commit

Permalink
MemberImplementsInterfaceAnalyzer: hide for unresolved members
Browse files Browse the repository at this point in the history
  • Loading branch information
fowl2 committed Apr 27, 2022
1 parent f8353d3 commit e563294
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public bool Show(ISymbol symbol)
case SymbolKind.Property:
var member = (IMember)symbol;
var type = member.DeclaringTypeDefinition;
return !member.IsStatic && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct);
return !member.IsStatic && type is not null && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct);

default:
return false;
Expand Down

0 comments on commit e563294

Please sign in to comment.