[Cuis-dev] Extract method fix
Hernán Wilkinson
hernan.wilkinson at 10pines.com
Fri Jun 13 06:18:01 PDT 2025
Hi,
currently the extract method refactoring does not recognize same blocks as
repeated code. For example:
m1
[ 1+2 ].
[ 1+2 ].
If one [ 1+2 ] is selected to extract, the other [ 1+2 ] will not be
recognized as repeated.
The attached .cs fixes this problem. It also includes a test for the case.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250613/2671dbab/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnsavedChangesTo-BaseImageTests-HAW.001.cs.st
Type: application/octet-stream
Size: 3560 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250613/2671dbab/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7264-FindsRepeatedBlocks-HernanWilkinson-2025Jun12-14h25m-HAW.001.cs.st
Type: application/octet-stream
Size: 4756 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250613/2671dbab/attachment-0001.obj>
More information about the Cuis-dev
mailing list