Hi all,

I'm working on a JavaScript compressor which uses Rhino for parsing source 
code. So far, things are working pretty well, with just a few challenging 
things to manage.

But, there is one thing that is driving me crazy, and I think it's related 
to my small knowledge about Rhino.

Here is the small piece of the code:

switch ( node.getType() )
{
       case Token.FUNCTION :

               var fnIndex = node.getExistingIntProp( Node.FUNCTION_PROP );
               node = tree.getFunctionNode(fnIndex);

}

At this point, "node" has the function node and I'm able to walk into its 
body. But I'm not able in any way to retrieve the argument names list here.

Any hint on this?

Some notes:

 - I cannot use NodeTransformer because I need the untransformed tree.
 - I'm coding it in JavaScript, and running it with Rhino.

Thanks for help!

Fred

Frederico Caldeira Knabben
Project Manager, FCKeditor
----
http://www.fckeditor.net 


_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to