<div dir="ltr"><div><p class="gmail-isSelectedEnd">Hello folks!</p><p class="gmail-isSelectedEnd">Here are several bug fixes for <code dir="ltr">ExtractMethod</code>:</p><ol start="1"><li><strong>Extracting a method when the receiver is a </strong><code dir="ltr"><strong>LiteralVariableNode</strong></code><br>Trying to extract a method when the receiver is a <code dir="ltr">LiteralVariableNode</code> in the AST throws an exception. For example, if you want to extract <code dir="ltr">Smalltalk at: #MCPTestSubject</code>, <code dir="ltr">Smalltalk</code> is represented as a <code dir="ltr">LiteralVariableNode</code>.</li><li><strong>Extracting multiple assignments when equivalent code exists in another message</strong><br>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.</li><li><strong>Using </strong><code dir="ltr"><strong>methodNode</strong></code><strong> instead of </strong><code dir="ltr"><strong>notOptimizedMethodNode</strong></code><br>We were using <code dir="ltr">methodNode</code> instead of <code dir="ltr">notOptimizedMethodNode</code>. As a result, we were finding some nodes that didn't have a source range in the method.</li><li><strong>Shadowing issue with instance variables</strong><br>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.</li><li><strong>Extracting code with an assignment and a non-local return</strong><br>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.</li></ol><p>Have a nice day!</p></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><a href="https://10pines.com/" style="font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium" target="_blank"><img width="108" src="https://10pines.github.io/email-signature/10pines-firma@2x.png" style="margin-bottom:0.5em"></a><h1 style="margin:0px;font-size:14px"><font color="#999999">Joel Cámera</font></h1><h2 style="color:rgb(100,100,100);margin:0px 0px 1em;font-size:14px">Agile Software Development</h2><h1 style="margin:0px;font-size:14px"><font style="font-weight:normal" color="#666666"><p style="margin:0px;font-size:12px">Alem 896, Floor 6, Buenos Aires, Argentina</p><p style="margin:0px;font-size:12px">+54 9 011 6091 3125</p></font></h1></div></div></div></div>