From: Finn B. <bc...@us...> - 2001-08-05 14:42:49
|
Update of /cvsroot/jython/jython/org/python/parser In directory usw-pr-cvs1:/tmp/cvs-serv19136/parser Modified Files: SimpleNode.java Log Message: Mangle the name of tuple function parameters. it now matches CPython and allow test_grammar to complete. Index: SimpleNode.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/parser/SimpleNode.java,v retrieving revision 2.13 retrieving revision 2.14 diff -C2 -d -r2.13 -r2.14 *** SimpleNode.java 2001/03/08 23:43:51 2.13 --- SimpleNode.java 2001/08/05 14:42:46 2.14 *************** *** 71,74 **** --- 71,83 ---- } + public int getChildIndex(SimpleNode child) { + for (int i = 0; i < getNumChildren(); i++) { + if (getChild(i) == child) { + return i; + } + } + return -1; + } + public Object getInfo() { return info; } |