-
Notifications
You must be signed in to change notification settings - Fork 70
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
Method extraction #737
base: master
Are you sure you want to change the base?
Method extraction #737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This has the potential to be an awesome feature, and I like where you're going with it.
Please add some additional tests for more complex situations. I tried it out on an expression in elm-spa-example , and it generated bad code (it didn't extract a function parameter for maybeCred
).
@klazuka hope the new job is going well. If you are too busy would you like to give me or @pravdomil write permission? |
I tried out your latest branch on elm-spa-example The main issues I found are:
These issues would need to be fixed before I would merge it. My basic criteria for any refactoring is that if the refactoring is offered by the plugin, then invoking the refactoring should always generate correct code. Another small issue is that generated functions always have the name method.extraction.mov |
Thank you so much for the response. Would try to get it done ASAP. |
@klazuka I think the current push fixes the issues you highlighted. Sorry for making you check so much... I would need to give some thought for making the enumerated |
Here's a check with the exact examples you used... Can you please suggest something about the Extract.Method.mov |
No description provided.