Skip to content

Add a Refactoring Action for Converting Implicitly Unwrapped Optionals to Proper Optionals #1320

Open
@CodaFi

Description

@CodaFi

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code actionCode action provided by LSPenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions