File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Rubberduck.CodeAnalysis/Inspections/Concrete Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 8
8
using Rubberduck . Inspections . Inspections . Extensions ;
9
9
using Rubberduck . Common ;
10
10
using System ;
11
+ using Rubberduck . Parsing . Annotations ;
11
12
12
13
namespace Rubberduck . Inspections . Concrete
13
14
{
@@ -45,7 +46,7 @@ public ImplementedInterfaceMemberInspection(Parsing.VBA.RubberduckParserState st
45
46
protected override IEnumerable < IInspectionResult > DoGetInspectionResults ( )
46
47
{
47
48
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 > ( ) ;
49
50
50
51
var implementedAndOrAnnotatedInterfaceModules = State . DeclarationFinder . FindAllUserInterfaces ( )
51
52
. Union ( annotatedAsInterface ) ;
You can’t perform that action at this time.
0 commit comments