[Cuis-dev] Extract Method - Find Repeated Code based on Node Equivalence

Juan Vuletich juan at cuis.st
Mon Dec 9 12:46:20 PST 2024


Hi Hernán,

Only today I was able to review and integrate this. Apologies for the 
long delay!

It is now at GitHub.

Thanks!!!

On 11/5/2024 9:42 AM, Hernán Wilkinson via Cuis-dev wrote:
> Hi all,
>  attached is a .cs and its related tests that improves how the Extract 
> Method finds repeated code. Up to now it was base on string equality 
> and therefore the following code was not found as repeated when 10 
> factorial was extracted:
> 10 factorial.
> 10      factorial.
>  With this improvement, code repetition finding is based on the AST 
> nodes equivalence and therefore the previous code is found as repeated.
>
>  This work was done by Marcelo (copied) as part of his masters thesis 
> and reviewed by me. Thanks Marcelo!!
>
>  Cheers!
>  Hernan.
>
> -- 
> *Hernán Wilkinson
> Agile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241209/1117462a/attachment.htm>


More information about the Cuis-dev mailing list