Skip to content

Commit 728c627

Browse files
committed
Modified Annotation predicate
1 parent cc2a0ad commit 728c627

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/ImplementedInterfaceMemberInspection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Rubberduck.Inspections.Inspections.Extensions;
99
using Rubberduck.Common;
1010
using System;
11+
using Rubberduck.Parsing.Annotations;
1112

1213
namespace Rubberduck.Inspections.Concrete
1314
{
@@ -45,7 +46,7 @@ public ImplementedInterfaceMemberInspection(Parsing.VBA.RubberduckParserState st
4546
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
4647
{
4748
var annotatedAsInterface = State.DeclarationFinder.Classes
48-
.Where(cls => cls.Annotations.Any(an => an.Annotation.Name.Equals("Interface"))).Cast<ClassModuleDeclaration>();
49+
.Where(cls => cls.Annotations.Any(an => an.Annotation is InterfaceAnnotation)).Cast<ClassModuleDeclaration>();
4950

5051
var implementedAndOrAnnotatedInterfaceModules = State.DeclarationFinder.FindAllUserInterfaces()
5152
.Union(annotatedAsInterface);

0 commit comments

Comments
 (0)