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-6308] "Replace Call with Method Body" refactoring action #48858

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

[SR-6308] "Replace Call with Method Body" refactoring action #48858

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-6308
Radar None
Original Reporter @jckarter
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee None
Priority Medium

md5: 85649cc3193fadf28abe8e4fd8a4a042

Issue Description:

DRY is great and all, but sometimes repetition and local modification is preferable for maintenance and understandability. Expanding a function definition in-place can also be a useful learning aid for understanding abstractions in unfamiliar codebases. It would be cool to have a "de-factoring" action to replace a function call with the function's expanded definition, replacing the parameters (both value and generic type parameters) with their values from the call site.

@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