File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
RetailCoder.VBE/Inspections Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,13 @@ public UntypedFunctionUsageInspection(RubberduckParserState state)
43
43
public override IEnumerable < InspectionResultBase > GetInspectionResults ( )
44
44
{
45
45
var declarations = BuiltInDeclarations
46
- // note: these *should* be functions, but somehow they're not defined as such
47
- . Where ( item => _tokens . Any ( token => ( item . IdentifierName == token || item . IdentifierName == "_B_var_" + token ) ) && item . References . Any ( ) ) ;
46
+ // note: these *should* be functions, but somehow they're not defined as such
47
+ . Where ( item =>
48
+ _tokens . Any ( token => item . IdentifierName == token || item . IdentifierName == "_B_var_" + token ) &&
49
+ item . References . Any ( reference => _tokens . Contains ( reference . IdentifierName ) ) ) ;
48
50
49
51
return declarations . SelectMany ( declaration => declaration . References
52
+ . Where ( item => _tokens . Contains ( item . IdentifierName ) )
50
53
. Select ( item => new UntypedFunctionUsageInspectionResult ( this , item ) ) ) ;
51
54
}
52
55
}
You can’t perform that action at this time.
0 commit comments