<div dir="ltr"><div>As <span style="font-family:monospace">MethodNode>>sourceText</span> uses <span style="font-family:monospace">#printString</span>, it can return a string with invalid syntax if the method is very large. I attach some example code to see this in a workspace (<span style="font-family:monospace"><a href="http://example1.workspace.st">example1.workspace.st</a></span>).</div><div><br></div><div>Note that it's not needed to have a method literally that large to trigger this bug.</div><div>For example, I've found this when running some tests with the CodeCoverage package. The code of the method was not so long, but as the coverage tool instruments the method, it increased its size by a considerable amount.</div><div>Another example of a short method triggering the bug can be found in <span style="font-family:monospace"><a href="http://example2.workspace.st">example2.workspace.st</a></span>.</div><div><br></div><div></div><div>The fix is to use <span style="font-family:monospace">#fullPrintString</span> instead of <span style="font-family:monospace">#printString</span>. I attach a changeset to do this.</div><div><br></div><div>Cheers!<br></div><div>Facu</div><div><br></div><div><br></div></div>