<div dir="ltr">Hi Nahuel,<br><div> the change is not working correctly. The new tests pass, but when doing the extract method in the browser it fails and the reason is because, for the same codes as the tests, it is expecting a keyword message and the tests are using a unary message. I think you forgot to include something in the .cs because you showed me this working.</div><div> BTW, the validation of the type of selector should be in the ExtractMethod class and not in the ExtractMethodApplier. I guess you doit in the applier because you need the selector to be valid to create to create the new Message, but the validation should be in the ExtractMethod anyway and the applier should reuse that validation. It does not matter if the validation is done twice in this context. Remember that the ExtractMethod can be used from different places, not only the applier, and it should behave the same no matter who is using it. Having the tests pass and the extract from the browser fail is an example of what should not happen.</div><div><br></div><div>Cheers!</div><div>Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 7:50 PM Nahuel Garbezza via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi!<div><br></div><div>Attached is a changeset to support something that was not supported before in the Extract Method refactoring: extracting code containing temporary declaration constructions, this is possible as long as the temps being extracted are not used outside of the extraction interval.</div><div><br></div><div>The tests for it are in this PR: <a href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/pull/165" target="_blank">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/pull/165</a></div><div><br></div><div>Thanks,</div><div>Nahuel.</div></div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></span></strong></span></div><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></span></strong></span></div><div><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div></div></div></div></div>