-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Refactoring] Extract class #22053
Comments
FYI @wli3 |
This is a intermediate step to extract to a new class |
Isn't this just a specialization of a Extract Class refactoring? I wouldn't expect that we'd have a separate refactoring just for selecting static methods to produce a static class. Instead, I would expect this to be knobs on a dialog for a more general Extract Class refactoring. |
@DustinCampbell agree, it does not need to be a separate refactoring. Although "Extract Class" is very hard, you need to have a better separation(abstraction) in the beginning. I have not seem a good automatic refactoring implementation of extract class. (end up with "new" a new class, pass the old one into constructor of the new class and call as usual. -- A circular dependency generator.) |
@jmarolf I believe we can close this now? We have extract base class, extract to new static class, and are adding extract static to existing class in 17.4 (it barely missed 17.3) |
This would let you select static methods and extract them into a static class.
Also would be nice to include "extract base class".
The text was updated successfully, but these errors were encountered: