I have the case where I want to change the package structure from:
the function name (successUi(…)) and it parameters remain unchanged. Is there any way I can express this in
ReplaceWith. What I’ve tried so far is the following:
on the old/deprecated method name. This naturally leads to duplicate package imports and furthermore puts the
body, which is a function, within the parenthesis.
Is there any way of doing this?
The only way I can think of is by using some two phase approach where I introduce some intermediate step with a different function name to led the imports be cleaned.
The actual code is found on GitHub
Message was edited by: Mark Platvoet, updated GitHub link with actual code