Annotate Entry Point Quick Fix

Adds an '@EntryPoint annotation to mark as an entry point a procedure that isn't intended to be invoked by any code.

This quick-fix is available for the ProcedureNotUsed inspection

Applicability

This quick-fix can be applied as a single operation at the following scopes:
  • Procedure
  • Module
  • Project

Examples

 This example depicts the state of module(s) before and after applying the quick-fix.

Before
Module1 (Any)
Public Sub DoSomething() Debug.Print 42 End Sub
After
Module1 (Any)
'@EntryPoint Public Sub DoSomething() Debug.Print 42 End Sub

Rubberduck.CodeAnalysis.QuickFixes.Concrete.AnnotateEntryPointQuickFix.cs (Prerelease-v2.5.2.6174)