You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a refactoring action that converts T! to T? for all types T. At first blush, this appears to be possible by converting ImplicitlyUnwrappedOptionalTypeSyntax nodes to OptionalTypeSyntax nodes without changing the underlying type syntax for T.
As an aside, I think we may not necessarily want to go the other way (T? to T!) since it's generally not great Swift style.
The text was updated successfully, but these errors were encountered:
Synced to Apple’s issue tracker as rdar://128310729
ahoppen
changed the title
Add a Refactoring Action for Converting IUOs to Proper Optionals
Add a Refactoring Action for Converting implicitly unwrapped optionals to proper optionals
Jun 8, 2024
ahoppen
changed the title
Add a Refactoring Action for Converting implicitly unwrapped optionals to proper optionals
Add a Refactoring Action for Converting Implicitly Unwrapped Optionals to Proper Optionals
Jun 8, 2024
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: