Add a Refactoring Action for Converting Implicitly Unwrapped Optionals to Proper Optionals #1320
Labels
code action
Code action provided by LSP
enhancement
New feature or request
good first issue
Good for newcomers
Description
Add a refactoring action that converts
T!
toT?
for all typesT
. At first blush, this appears to be possible by convertingImplicitlyUnwrappedOptionalTypeSyntax
nodes toOptionalTypeSyntax
nodes without changing the underlying type syntax forT
.As an aside, I think we may not necessarily want to go the other way (
T?
toT!
) since it's generally not great Swift style.The text was updated successfully, but these errors were encountered: