[Pydev-cvs] org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope CodeFoldingVisito
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-09-27 19:59:14
|
Update of /cvsroot/pydev/org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20472/tests/org/python/pydev/parser/visitors/scope Modified Files: CodeFoldingVisitorTest.java EasyASTIteratorTest.java Log Message: Synching to latest changes: Pydev <ul> <li><strong>Editor</strong>: Cursor settings no longer overridden</li> <li><strong>Code-completion</strong>: If __all__ is defined with runtime elements (and not only in a single assign statement), it's ignored for code-completion purposes</li> <li><strong>Debugger</strong>: Pythonpath the same in debug and regular modes (sys.path[0] is the same directory as the file run)</li> <li><strong>Debugger</strong>: Persist choices done in the debugger when files from the debugger are not found</li> <li><strong>Interpreter config</strong>: "email" automatically added to the "forced builtins"</li> <li><strong>Parser</strong>: Correctly recognizing absolute import with 3 or more levels</li> <li><strong>Syntax check</strong>: Option to do only on active editor</li> </ul> Also: tabs changed for spaces Index: EasyASTIteratorTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope/EasyASTIteratorTest.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EasyASTIteratorTest.java 31 Oct 2007 00:54:36 -0000 1.9 --- EasyASTIteratorTest.java 27 Sep 2008 19:58:43 -0000 1.10 *************** *** 55,72 **** EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C:\n" + ! " def met1(self):pass\n" + ! "\n" + ! "if True:\n" + ! " print 't'\n" + ! "\n" + ! "class D:\n" + ! " pass\n" + ! "class E:\n" + ! " '''t1\n" + ! " t2\n" + ! " '''\n" + ! "c = C()\n" + ! ""; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); --- 55,72 ---- EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C:\n" + ! " def met1(self):pass\n" + ! "\n" + ! "if True:\n" + ! " print 't'\n" + ! "\n" + ! "class D:\n" + ! " pass\n" + ! "class E:\n" + ! " '''t1\n" + ! " t2\n" + ! " '''\n" + ! "c = C()\n" + ! ""; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); *************** *** 88,99 **** EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C: \n"+ ! " def d(self):\n"+ ! " c = \\\n"+ ! "''' \n"+ ! "a \n"+ ! "b \n"+ ! "c \n"+ ! "''' \n"; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); --- 88,99 ---- EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C: \n"+ ! " def d(self):\n"+ ! " c = \\\n"+ ! "''' \n"+ ! "a \n"+ ! "b \n"+ ! "c \n"+ ! "''' \n"; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); *************** *** 113,127 **** EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C: \n"+ ! " def d(self): \n"+ ! " c = ''' \n"+ ! " \n"+ ! "c \n"+ ! "''' \n"+ ! " \n"+ ! "class E: \n"+ ! " '''t1 \n"+ ! " t2 \n"+ ! " ''' \n"; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); --- 113,127 ---- EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C: \n"+ ! " def d(self): \n"+ ! " c = ''' \n"+ ! " \n"+ ! "c \n"+ ! "''' \n"+ ! " \n"+ ! "class E: \n"+ ! " '''t1 \n"+ ! " t2 \n"+ ! " ''' \n"; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); *************** *** 142,150 **** EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "import test.lib\n" + ! "from test.lib import test\n" + ! "from test.lib import *\n" + ! "from test.lib import test as alias\n" + ! ""; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); --- 142,150 ---- EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "import test.lib\n" + ! "from test.lib import test\n" + ! "from test.lib import *\n" + ! "from test.lib import test as alias\n" + ! ""; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); *************** *** 188,198 **** EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C:\n" + ! " def met1(self):\n" + ! " self.attr1=1\n" + ! " self.attr2=2\n" + ! "\n" + ! " classAttr = 10\n" + ! "pass"; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); --- 188,198 ---- EasyASTIteratorVisitor visitor = new EasyASTIteratorVisitor(); String str = "" + ! "class C:\n" + ! " def met1(self):\n" + ! " self.attr1=1\n" + ! " self.attr2=2\n" + ! "\n" + ! " classAttr = 10\n" + ! "pass"; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); Index: CodeFoldingVisitorTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.parser/tests/org/python/pydev/parser/visitors/scope/CodeFoldingVisitorTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CodeFoldingVisitorTest.java 31 Oct 2007 00:54:36 -0000 1.1 --- CodeFoldingVisitorTest.java 27 Sep 2008 19:58:43 -0000 1.2 *************** *** 61,65 **** " else:\n" + " print 4\n" + ! ""; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); SimpleNode root = objects.o1; --- 61,65 ---- " else:\n" + " print 4\n" + ! ""; Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(str), false, IPythonNature.GRAMMAR_PYTHON_VERSION_2_4)); SimpleNode root = objects.o1; |