[Pydev-cvs] org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope EasyASTIteratorTe
Brought to you by:
fabioz
From: Sean H. <se...@us...> - 2006-06-26 20:01:56
|
Update of /cvsroot/pydev/org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22866/tests/org/python/pydev/parser/visitors/scope Modified Files: Tag: SoC_2006 EasyASTIteratorTest.java Log Message: Index: EasyASTIteratorTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope/EasyASTIteratorTest.java,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** EasyASTIteratorTest.java 20 Mar 2006 19:37:36 -0000 1.4 --- EasyASTIteratorTest.java 26 Jun 2006 20:01:50 -0000 1.4.2.1 *************** *** 9,12 **** --- 9,13 ---- import org.eclipse.jface.text.Document; + import org.python.pydev.core.Tuple; import org.python.pydev.parser.PyParser; import org.python.pydev.parser.jython.SimpleNode; *************** *** 68,73 **** ""; ! Object[] objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = (SimpleNode) objects[0]; root.accept(visitor); Iterator iterator = visitor.getIterator(); --- 69,74 ---- ""; ! Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = objects.o1; root.accept(visitor); Iterator iterator = visitor.getIterator(); *************** *** 95,100 **** "''' \n"; ! Object[] objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = (SimpleNode) objects[0]; root.accept(visitor); Iterator iterator = visitor.getIterator(); --- 96,101 ---- "''' \n"; ! Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = objects.o1; root.accept(visitor); Iterator iterator = visitor.getIterator(); *************** *** 123,128 **** " ''' \n"; ! Object[] objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = (SimpleNode) objects[0]; root.accept(visitor); Iterator iterator = visitor.getIterator(); --- 124,129 ---- " ''' \n"; ! Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = objects.o1; root.accept(visitor); Iterator iterator = visitor.getIterator(); *************** *** 146,151 **** ""; ! Object[] objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = (SimpleNode) objects[0]; root.accept(visitor); Iterator iterator = visitor.getIterator(); --- 147,152 ---- ""; ! Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = objects.o1; root.accept(visitor); Iterator iterator = visitor.getIterator(); *************** *** 167,172 **** "\n"; ! Object[] objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = (SimpleNode) objects[0]; root.accept(visitor); Iterator iterator = visitor.getIterator(); --- 168,176 ---- "\n"; ! Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! if(objects.o2 != null){ ! throw new RuntimeException(objects.o2); ! } ! SimpleNode root = objects.o1; root.accept(visitor); Iterator iterator = visitor.getIterator(); *************** *** 191,196 **** "pass"; ! Object[] objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = (SimpleNode) objects[0]; root.accept(visitor); Iterator iterator = visitor.getIterator(); --- 195,200 ---- "pass"; ! Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, null)); ! SimpleNode root = objects.o1; root.accept(visitor); Iterator iterator = visitor.getIterator(); |