Currently, every AST node carries a source location that records the portion of a string that corresponds to it. However, the origin of that string is lost, as the source location contains only textual position.
It would be very useful to have source location objects that also carry an origin. This could be used for instance for recording within an AST the handle to the database item from which it was created.
Logged In: YES
user_id=2102738
Originator: NO
Implemented. Committed on 2008-07-09.