Le 25/06/2012 09:35, Marcus Denker a écrit :
On Jun 21, 2012, at 4:38 PM, Goubier Thierry wrote:
Ok, this is where I may see things.
To insert things in the AST, I can subclass the RBProgramNodeVisitor ?
Or you could use the RBParseTreeRewriter...
Well, I used the RBProgramNodeVisitor : worked perfectly, since the original code was based on VW's ProgramNodeVisitor. Reimplemented part of the RBParseTreeRewriter rewritter, in fact, but then it avoided reimplementing all the rewritting rules as RB patterns and blocks. So far, Opal works fine, thanks for the work done. Except for one thing : recompiling an instrumented method erase the original source in the method (and force a decompilation); I could not find how to force it to still use the original (non modified) source. Regards, Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95