Remove Redundant Option Statement Quick Fix

Removes 'Option Base 0' statement from a module, making it implicit (0 being the default implicit lower bound for implicitly-sized arrays).

 NEW! This quick-fix is only available in pre-release builds.

This quick-fix is available for the RedundantOption inspection

Applicability

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

Examples

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

Before
Module1 (Any)
Option Explicit Option Base 0 Public Sub DoSomething() Dim values(10) ' implicit lower bound is 0 Debug.Print LBound(values), UBound(values) End Sub
After
Module1 (Any)
Option Explicit Public Sub DoSomething() Dim values(10) ' implicit lower bound is 0 Debug.Print LBound(values), UBound(values) End Sub

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