atom-javascript-refactor icon indicating copy to clipboard operation
atom-javascript-refactor copied to clipboard

Support for moving functions?

Open theotherdon opened this issue 8 years ago • 3 comments

Does this module support moving functions from one file to another? If not, would there be any interest in a PR for this functionality?

theotherdon avatar Nov 08 '17 18:11 theotherdon

Absolutely. This functionality is definitely possible. Forking https://github.com/jurassix/refactoring-codemods to add a new transform is a good starting point.

Once the codemod is working then we need something added to this lib that can trigger this new codebod on move.

jurassix avatar Nov 10 '17 13:11 jurassix

Fantastic. I'll check it out and work on a PR. How would you like to track this? Shall we create an issue?

theotherdon avatar Nov 17 '17 16:11 theotherdon

Yeah issue and/or open a PR and keep committing along the way

jurassix avatar Nov 21 '17 19:11 jurassix