Open Wilfred opened 9 years ago
That's an interesting idea. I think there is some complexity in it, for example if the expression being moved references variables defined in the function scope.
If you would like to add this capability, we would gratefully accept a pull request.
This seems to have already been supported by the IntroduceParameter refactoring.
It is currently undocumented and I don't think currently there are any editor integration currently that implements them though.
I'd like to be able to do the following refactoring:
Could this be added to rope?
Additional acceptance criteria: