[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors AbstractV
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-03-22 13:41:15
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29015/src/org/python/pydev/editor/codecompletion/revisited/visitors Modified Files: AbstractVisitor.java Log Message: Code completion recursion bugs fixed. Index: AbstractVisitor.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors/AbstractVisitor.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AbstractVisitor.java 17 Mar 2005 17:07:54 -0000 1.5 --- AbstractVisitor.java 22 Mar 2005 13:41:06 -0000 1.6 *************** *** 162,166 **** * @throws Exception */ ! public static IToken[] getTokens(SimpleNode ast, int which, String moduleName) throws Exception { AbstractVisitor modelVisitor; if(which == INNER_DEFS){ --- 162,166 ---- * @throws Exception */ ! public static IToken[] getTokens(SimpleNode ast, int which, String moduleName) { AbstractVisitor modelVisitor; if(which == INNER_DEFS){ *************** *** 171,175 **** if (ast != null){ ! ast.accept(modelVisitor); return (SourceToken[]) modelVisitor.tokens.toArray(new SourceToken[0]); }else{ --- 171,179 ---- if (ast != null){ ! try { ! ast.accept(modelVisitor); ! } catch (Exception e) { ! throw new RuntimeException(e); ! } return (SourceToken[]) modelVisitor.tokens.toArray(new SourceToken[0]); }else{ |