> On 27 Feb 2015, at 21:24, stepharo <[email protected]> wrote:
> 
> FYI  latest update broke rename method.
> 
> privateRenameMethodFor: aMethod
>    | class selector oldMethodName newMethodName tempOldArguments oldArguments 
> argumentPermutation |
>    class := aMethod methodClass.
>    selector := aMethod selector.
>    oldArguments := aMethod ast arguments collect: [ :each | each token value 
> ].
>                                   ^^^^^
>    tempOldArguments := aMethod ast arguments collect: [ :each | each token 
> value ].
>    oldMethodName := RBMethodName selector: selector arguments: oldArguments.
>    (newMethodName := self requestMethodNameFor: oldMethodName) ifNil: [ ^ nil 
> ].
>    argumentPermutation := newMethodName arguments collect: [ :each | 
> tempOldArguments indexOf: each ].
>    ^ RBRenameMethodRefactoring
>        model: environment
>        renameMethod: selector
>        in: class
>        to: newMethodName selector
>        permutation: argumentPermutation
> 


https://pharo.fogbugz.com/f/cases/15025

Reply via email to