From: Sven R. <rei...@ma...> - 2003-04-23 22:49:15
|
On Wed, 23 Apr 2003, Baptiste Lepilleur wrote: > I'm not sure I understand what you want. The Change structure stored the > original source range of the element is what was parsed (set in the > setElementIsFromSource() method of CodeElement). That way the old text can > be retrieved if needed, as well as its range for deletion. What I want is to avoid reparsing the source code. > > Problem with keeping the old pointer around is that a common practice of > refactoring is to move things around (for example, remove a statement and > insert it somewhere else). So what? That's why use smart pointers, isn't it? Maybe I'm again missing something major here :) Sven. > Baptiste. -- Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |