[Cuis-dev] Re : Extract Method - Find Repeated Code based on Node Equivalence
H. Fernandes
hfern at free.fr
Tue Nov 5 06:59:35 PST 2024
Great!
Thanks
Dr. Geo -- http://gnu.org/s/dr-geo
----- Hernán Wilkinson via Cuis-dev <cuis-dev at lists.cuis.st> a écrit :
> 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 WilkinsonAgile 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
More information about the Cuis-dev
mailing list