Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-6307] Tuple-to-struct refactoring action #48857

Open
jckarter opened this issue Nov 6, 2017 · 0 comments
Open

[SR-6307] Tuple-to-struct refactoring action #48857

jckarter opened this issue Nov 6, 2017 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@jckarter
Copy link
Member

jckarter commented Nov 6, 2017

Previous ID SR-6307
Radar None
Original Reporter @jckarter
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee None
Priority Medium

md5: 701d403f5b4225929b391d26b288a4ee

Issue Description:

A refactoring action that automated turning a tuple-typed declaration into a struct would be useful, since it's common to "outgrow" a tuple and need the features of a named struct type. If you could point at a tuple-typed variable, argument, or return type, and ask the refactoring engine to replace it with a struct type, ideally with a choice to either use an existing one or create a new struct declaration too, it could update the declaration and automatically map any tuple literal/element expressions to the equivalent struct initializer/property expressions.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant