[Cuis-dev] Several bug fixes for ExtractMethod

Joel Camera joel.camera at 10pines.com
Tue Sep 1 13:36:13 PDT 2026


Hello folks!

Here are several bug fixes for ExtractMethod:

   1. *Extracting a method when the receiver is a **LiteralVariableNode*
   Trying to extract a method when the receiver is a LiteralVariableNode in
   the AST throws an exception. For example, if you want to extract Smalltalk
   at: #MCPTestSubject, Smalltalk is represented as a LiteralVariableNode.
   2. *Extracting multiple assignments when equivalent code exists in
   another message*
   When extracting more than one assignment and equivalent code exists in
   another message, we were trying to add two assignment blocks to the new
   method.
   3. *Using **methodNode** instead of **notOptimizedMethodNode*
   We were using methodNode instead of notOptimizedMethodNode. As a result,
   we were finding some nodes that didn't have a source range in the method.
   4. *Shadowing issue with instance variables*
   We had a shadowing issue when an instance variable was used as a
   parameter in the new message. The new message name input suggested the
   instance variable's name, which ended up causing a shadowing exception.
   5. *Extracting code with an assignment and a non-local return*
   The last issue occurred when trying to extract code containing both an
   assignment and a non-local return. The extraction failed because of an
   incorrect validation.

Have a nice day!

<https://10pines.com/>Joel CámeraAgile Software Development

Alem 896, Floor 6, Buenos Aires, Argentina

+54 9 011 6091 3125
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1 8146-CuisCore-JoelEstebanCamera-2026Aug22-16h01m-JEC.001.cs.st
Type: application/octet-stream
Size: 312 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0024.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1 UnsavedChangesTo-BaseImageTests-JEC.001.cs.st
Type: application/octet-stream
Size: 4374 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0025.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2 8146-CuisCore-JoelEstebanCamera-2026Aug23-12h50m-JEC.001.cs.st
Type: application/octet-stream
Size: 278 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0026.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3 8147-CuisCore-JoelEstebanCamera-2026Aug23-18h55m-JEC.001.cs.st
Type: application/octet-stream
Size: 949 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0027.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3 UnsavedChangesTo-BaseImageTests-JEC.001.cs.st
Type: application/octet-stream
Size: 5129 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0028.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4 8148-CuisCore-JoelEstebanCamera-2026Aug24-18h27m-JEC.001.cs.st
Type: application/octet-stream
Size: 746 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0029.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5 8148-CuisCore-JoelEstebanCamera-2026Aug24-18h54m-JEC.001.cs.st
Type: application/octet-stream
Size: 269 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0030.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5 UnsavedChangesTo-BaseImageTests-JEC.001.cs.st
Type: application/octet-stream
Size: 1018 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260901/8b4e53cd/attachment-0031.obj>


More information about the Cuis-dev mailing list