I learned a ton by looking at the Node.toString() methods.  Try the
following addition to your code

> 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);
                 //if the symbolTable is not null then there are some
variables added
                 if (fn.symbolTable != null) {
                    //iterate through the values
                    Iterator iter =
fn.symbolTable.keySet().iterator();
                    while (iter.hasNext())
                        System.out.println(iter.next());
                 };
>
> }
>


Hope this helps.

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

Reply via email to