Which ones?

In my tool each node has property oldNodes, which holds collection of obviously AST nodes:)
When I replace one of node I have to update source interval in some way.
1)If I update it with reparsing, I loose all data about oldNodes for each node of my AST.
So I have to save old AST with all oldNodes, and somehow detect which nodes were not changed and reassign their lost oldNodes.
But sometimes it's difficult to detect where and what you have to assign, as sometimes AST may be changed in dramatic way.
2) But if source interval is updated automatically I don't bother with losing data for all AST.
I just have to update oldNodes for node that was replaced.

That is way I'd like to have automatically updated source interval.
��

No it shouldn't. If the source has not been regenerated from the modified AST, then

'source copyFrom: theBarASTNode start to: theBarASTNode stop'

end past the end of it (20 to 23 with source ending at 19).

If you regenerate the source, then you can parse it and you'll have correct intervals.
��
Marcus, do I have to redo everything back, or you can somehow remove that slice from newest version?��

Mark

��