Development Tool

Karl karl.ramberg at comhem.se
Thu Nov 8 17:26:11 UTC 2007


Alejandro Gonzalez wrote:
> By duplication I meant:
>   aParseTree equalTo: anotherParseTree exceptForVariables: #()
> I don't know if this implies the same byte code on both methods, does it?
>
> And about dynamic protocols...it shows me the duplicated methods
> between a class and its super classes. What I'm looking for is
> something that tells me what are the duplicated methods in a
> collection of classes not necessarily related by hierarchy.
>   
MethodFinder and MessageNames show all methods with equal names.
MethodFinder will also show results based on a pattern separated by full 
stop:    1. 3. 4

Karl
>
> On Nov 8, 2007 11:44 AM, Damien Cassou <damien.cassou at gmail.com> wrote:
>   
>> It depends what you really means by duplication. If you mean the
>> bytecode are equals, you can use dynamic protocols for that (included
>> in all squeak-dev images). I can help you about that if you need to.
>>
>> 2007/11/8, Alejandro Gonzalez <mrgonza78 at gmail.com>:
>>
>>     
>>> Does anyone know what tool I can use to find all the duplicated code
>>> in a class hierarchy? Lint? what rule?
>>> Thanks in advance
>>> Alejandro
>>>
>>>
>>>       
>> --
>> Damien Cassou
>>
>>
>>     
>
>
>   




More information about the Squeak-dev mailing list