[Cuis-dev] [ChangeSet] source code intervals + changes on refactorings

Nahuel Garbezza n.garbezza at gmail.com
Sun May 10 11:23:36 PDT 2020


Hi!

I'm attaching a changeset (+ tests changeset) with the following:

Main changes:

Introduce the SourceCodeInterval class as a specialization of Interval,
capable of dealing with source code transformations. Start to use
SourceCodeInterval in the source ranges reported by the Parser, and on the
intervals created on refactorings. This helped us to reduce utility methods
related to source code on the Refactoring and ParseNode classes.

Changes on refactorings:

* [extract temporary] allow extracting entire statements without
introducing an unnecessary extra statement
* [extract temporary] do not allow the user to extract on a smalltalk
editor that does not contain a method
* [extract temporary] change the #apply message to return the updated
source code
* [extract method] allow extracting expressions with multiple levels of
parentheses and spaces between them
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200510/ba706b39/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4134-CuisCore-NahuelGarbezza-2020May04-19h23m-RNG.001.cs.st
Type: application/octet-stream
Size: 21109 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200510/ba706b39/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnsavedChangesTo-BaseImageTests-RNG.001.cs.st
Type: application/octet-stream
Size: 10925 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200510/ba706b39/attachment-0003.obj>


More information about the Cuis-dev mailing list