Feature Request: Bulk Removal of Enum Case in Swift #78118
Labels
feature
A feature request or implementation
refactoring
Area → source tooling: refactoring
source tooling
Area: IDE support, SourceKit, and other source tooling
SourceKit
Area → source tooling: SourceKit
Motivation
Enumerations are widely used in Swift for type safety and clean code. However, removing a case from an enum can be challenging, as it requires:
This process is error-prone, especially in large codebases where enums are used extensively.
Proposed solution
Update Swift’s refactoring capabilities with a "Remove Enum Case" functionality that:
a. In
switch
statements, remove the corresponding reference.b. Remove the entire
switch
statement if the removed case was its sole clause.Alternatives considered
N/A
Additional information
No response
The text was updated successfully, but these errors were encountered: