Skip to content

Code action to convert between computed property and stored property #1245

Closed
swiftlang/swift-syntax
#2712
@DougGregor

Description

@DougGregor

Description

A stored property with an initializer, e.g.,

static let defaultColor: Color = .red

might be better off as a computed property:

static var defaultColor: Color { .red }

or vice versa. Let's create a pair of code actions to go from the first to second or vice-versa.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions