> On 07 Apr 2015, at 17:20, Yuriy Tymchuk <[email protected]> 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