Skip to content

Commit 99cb453

Browse files
committed
ref. #2016
1 parent 0f5d369 commit 99cb453

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RetailCoder.VBE/Inspections/ProcedureNotUsedInspection.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
4141
var handlers = State.DeclarationFinder.UserDeclarations(DeclarationType.Control)
4242
.SelectMany(control => declarations.FindEventHandlers(control)).ToList();
4343

44+
var builtInHandlers = State.AllDeclarations.FindBuiltInEventHandlers();
45+
handlers.AddRange(builtInHandlers);
46+
4447
var withEventFields = State.DeclarationFinder.UserDeclarations(DeclarationType.Variable).Where(item => item.IsWithEvents).ToList();
4548
var withHanders = withEventFields
4649
.SelectMany(field => State.DeclarationFinder.FindHandlersForWithEventsField(field))

0 commit comments

Comments
 (0)