On Feb 27, 8:19 am, Kris Zyp <[email protected]> wrote: > On Oct 8 2008, 6:15 am, Kris Zyp <[email protected]> wrote: > > > What is the best way to get the AST representation > > (org.mozilla.javascript.Node or appropriate subclass) of an existing > > function (one that was created by evaluation)? Currently I am calling > > JS toString for the function and then creating a new Parser and > > parsing that string, but seems pretty awkward. Is there a better way? > > Will 1.7R2 with it's new AST API provide any assistance in getting at > the AST of a function from a live function instance? > > Thanks, > Kris
1.7R2 doesn't have the new AST API. That feature is still being developed and is targeted at 1.7R3. There are currently no plans to retain the AST after compilation, since to do so would likely result in a substantial memory cost. --N _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
