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
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to