From: Baptiste L. <gai...@fr...> - 2003-04-23 19:22:42
|
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. 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). Baptiste. ----- Original Message ----- From: "Sven Reichard" <rei...@ma...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Wednesday, April 23, 2003 6:56 PM Subject: [Cpptool-develop] space problem > I looked into the white space problem when removing the first declarator > in a declarator expression. The problem is that when rewriting, we don't > have access to the removed element anymore. Maybe we can just mark things > as removed, without replacing them by null pointers. > > Sven. > > -- > Sven Reichard > Dept. of Math. Sci. > University of Delaware > rei...@ma... |