Refactorings
stéphane ducasse
ducasse at iam.unibe.ch
Fri Feb 25 18:15:07 UTC 2005
Ones that I would like is:
move to class
move to instance
A clever extract method that takes into account that you have different
parameter values
- extract + compare the part changing and in that case adding parameter
Example:
Imagine I have the method
sameStubValue: nmm in: mm
self assert: ((nmm entityWithName: (FAMIXNameResolver
famixFullClassNameForSmalltalkClass: UI.Model)) = ((mm
entityWithName: (FAMIXNameResolver
famixFullClassNameForSmalltalkClass: UI.Model))
when I select
self assert: ((nmm entityWithName: (FAMIXNameResolver
famixFullClassNameForSmalltalkClass: Object))
= ((mm entityWithName: (FAMIXNameResolver
famixFullClassNameForSmalltalkClass: Object))
=> should propose to create the extract with arguments
sameStubValue: nmm in: mm with: anObject
self assert: ((nmm entityWithName: (FAMIXNameResolver
famixFullClassNameForSmalltalkClass: anObject))
= ((mm entityWithName: (FAMIXNameResolver
famixFullClassNameForSmalltalkClass: anObject))
Stef
On 25 févr. 05, at 18:59, Jason Rogers wrote:
> I would like to introduce some refactorings into Squeak. Is there a
> document describing the process of extending the Refactory?
not really
You have some classes representing refactoring and you have the rewrite
rules engine (there is a doc about it
on the refactory web site)
You can also contact nial Ross since there was a CampSmalltalk project
on adding new refactoring to rb
nfr at bigwig.net
Stef
>
> --
> Jason Rogers
>
> "I am crucified with Christ: nevertheless I live; yet not I,
> but Christ liveth in me: and the life which I now live in the flesh I
> live by the faith of the Son of God, who loved me, and gave himself
> for me."
> Galatians 2:20
>
>
More information about the Squeak-dev
mailing list
|