[wingide-users] Refactoring: change method signature?

Wing IDE Support support at wingware.com
Mon Feb 27 09:49:11 MST 2012


On 2/25/12 9:48 PM, Michael Hipp wrote:
> Is there anything in Wing that can help me change a bunch of method
> signatures, something like this:
>
> def foo(top, hat) -> foo(hat, top) # reordering
> def bar(top, hat) -> bar(top) # del unneeded arg
>
> Alas, the problem is even worse because some of those when subclassed
> are the same but different, but would need to be similarly changed:
>
> def foo(upper, garment)
>
> Any help? Or could we add this to the Santa Claus list?

You could use a find points of use to find all the places to change. 
Better support for this would be a nice addition to Wing's refactoring 
support; I'll add it to our TODO list.

Thanks,

John


More information about the wingide-users mailing list