C# Class Rubberduck.Inspections.ProcedureNotUsedInspection

Inheritance: InspectionBase
Mostra file Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
GetInspectionResults ( ) : IEnumerable
ProcedureNotUsedInspection ( RubberduckParserState state ) : System.Collections.Generic

Private Methods

Method Description
GetImplementedInterfaceMembers ( IEnumerable declarations, IEnumerable classes, string componentName ) : IEnumerable
IsClassLifeCycleHandler ( IEnumerable classes, Rubberduck.Parsing.Symbols.Declaration procedure ) : bool
IsIgnoredDeclaration ( IEnumerable declarations, Rubberduck.Parsing.Symbols.Declaration declaration, IEnumerable handlers, IEnumerable classes, IEnumerable modules ) : bool
IsInterfaceMember ( IEnumerable declarations, IEnumerable classes, Rubberduck.Parsing.Symbols.Declaration procedure ) : bool Interface implementation members are private, they're not called from an object variable reference of the type of the procedure's class, and whether they're called or not, they have to be implemented anyway, so removing them would break the code. Best just ignore them.
IsPublicModuleMember ( IEnumerable modules, Rubberduck.Parsing.Symbols.Declaration procedure ) : bool We cannot determine whether exposed members of standard modules are called or not, so we assume they are instead of flagging them as "never called".

Method Details

GetInspectionResults() public method

public GetInspectionResults ( ) : IEnumerable
return IEnumerable

ProcedureNotUsedInspection() public method

public ProcedureNotUsedInspection ( RubberduckParserState state ) : System.Collections.Generic
state Rubberduck.Parsing.VBA.RubberduckParserState
return System.Collections.Generic