File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
RetailCoder.VBE/Inspections Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,14 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
32
32
var nonInterfaceFunctions = functions . Except ( interfaceMembers . Union ( interfaceImplementationMembers ) ) ;
33
33
var nonInterfaceIssues = GetNonInterfaceIssues ( nonInterfaceFunctions ) ;
34
34
return interfaceMemberIssues . Union ( nonInterfaceIssues ) ;
35
- //// Temporarily disabled until fix for lack of context because of new resolver is found...
36
- //return new List<InspectionResultBase>();
37
35
}
38
36
39
37
private IEnumerable < FunctionReturnValueNotUsedInspectionResult > GetInterfaceMemberIssues ( IEnumerable < Declaration > interfaceMembers )
40
38
{
41
39
return from interfaceMember in interfaceMembers
42
40
let implementationMembers =
43
41
UserDeclarations . FindInterfaceImplementationMembers ( interfaceMember . IdentifierName ) . ToList ( )
44
- where
42
+ where interfaceMember . DeclarationType == DeclarationType . Function &&
45
43
! IsReturnValueUsed ( interfaceMember ) &&
46
44
implementationMembers . All ( member => ! IsReturnValueUsed ( member ) )
47
45
let implementationMemberIssues =
@@ -58,7 +56,7 @@ private IEnumerable<FunctionReturnValueNotUsedInspectionResult> GetInterfaceMemb
58
56
59
57
private IEnumerable < FunctionReturnValueNotUsedInspectionResult > GetNonInterfaceIssues ( IEnumerable < Declaration > nonInterfaceFunctions )
60
58
{
61
- var returnValueNotUsedFunctions = nonInterfaceFunctions . Where ( function => ! IsReturnValueUsed ( function ) ) ;
59
+ var returnValueNotUsedFunctions = nonInterfaceFunctions . Where ( function => function . DeclarationType == DeclarationType . Function && ! IsReturnValueUsed ( function ) ) ;
62
60
var nonInterfaceIssues = returnValueNotUsedFunctions
63
61
. Select ( function =>
64
62
new FunctionReturnValueNotUsedInspectionResult (
You can’t perform that action at this time.
0 commit comments