[Pharo-project] RenameMethodRefactoring Comment
Here's a free bonus class comment: I do just what my name says. Example Usage: refactoring := RenameMethodRefactoring renameMethod: oldSelector in: class to: newSelector permutation: (0 to: oldSelector numArgs). refactoring execute. A few things to keep in mind: - even though a class is specified, my action is system-wide. The only thing I do with the class is make sure it defines oldSelector - the permutation should be a collection that specifies what order the arguments from the oldSelector should appear in the newSelector. If the argument order doesn't change, you can just use the interval shortcut shown above in the example. Example when arguement order changes: oldSelector: arg1 with: arg2 with: arg3 newSelector: arg2 with: arg3 with: arg1 permutation := { 2. 3. 1 } -- View this message in context: http://forum.world.st/RenameMethodRefactoring-Comment-tp4117939p4117939.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Sean P. DeNigris wrote
permutation: (0 to: oldSelector numArgs).
should be: permutation: (1 to: oldSelector numArgs). -- View this message in context: http://forum.world.st/RenameMethodRefactoring-Comment-tp4117939p4117958.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (1)
-
Sean P. DeNigris