Hey Ryan! 

That definitely did the trick! Here is the final version of the code:

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

                var fnIndex = node.getExistingIntProp( Node.FUNCTION_PROP ),
                        fn = tree.getFunctionNode(fnIndex),
                        args = [];

                if ( fn.symbolTable != null ) 
                {
                        var iter = fn.symbolTable.keySet().iterator();
                        while ( args.length < fn.getParamCount() )
                                args.push( String( iter.next() ) );
                }

                // at this point, args has the argument names
}

I'll be releasing it open source in the future anyway, but I hope it may
help others.

Thanks for the tip! 

Fred


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

Reply via email to