April 7, 2015
3:24 p.m.
On 07 Apr 2015, at 17:20, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi, I need to change source code of a method by for example adding a pragma. Can I just manipulate itâs AST without carrying about source code anchors? Because it seems that I have to set from/to values and it looks painful.
I would do the change, print the code and recompile it⦠not nice, but for now the easiest. (this way they old AST gets garbage collected and the new one has all the offsets into the text correct). I would like to explore if we canât build a system where everything we manipulate is ASTs⦠Marcus