C# Class Rubberduck.Inspections.ProcedureNotUsedInspection

Inheritance: InspectionBase
Afficher le fichier Open project: retailcoder/Rubberduck Class Usage Examples

Méthodes publiques

Méthode Description
GetInspectionResults ( ) : IEnumerable
ProcedureNotUsedInspection ( RubberduckParserState state ) : System.Collections.Generic

Private Methods

Méthode 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 méthode

public GetInspectionResults ( ) : IEnumerable
Résultat IEnumerable

ProcedureNotUsedInspection() public méthode

public ProcedureNotUsedInspection ( RubberduckParserState state ) : System.Collections.Generic
state Rubberduck.Parsing.VBA.RubberduckParserState
Résultat System.Collections.Generic