Examples of commentType


Examples of org.python.pydev.parser.jython.ast.commentType

                String s = "#end\n" +
                        "\n" +
                        "";
                Module ast = (Module) parseLegalDocStr(s);
                assertEquals(1, ast.specialsBefore.size());
                commentType c = (commentType) ast.specialsBefore.get(0);
                assertEquals("#end", c.id);
                return true;
            }
        });
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

        }
    }

    public void test1() throws Exception {
        ArrayList<Object> c = new ArrayList<Object>();
        commentType comment = new commentType("#this is foo");
        comment.beginLine = 10;
        comment.beginColumn = 20;
        c.add(comment);

        List<Name> names = ScopeAnalysis.checkComments(c, "this");
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

        assertEquals(20 + 1, names.get(0).beginColumn);
    }

    public void test2() throws Exception {
        ArrayList<Object> c = new ArrayList<Object>();
        commentType comment = new commentType("\r\n#comment with RenFoo\r\n");
        comment.beginLine = 5;
        comment.beginColumn = 22;
        c.add(comment);

        List<Name> names = ScopeAnalysis.checkComments(c, "RenFoo");
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

        assertEquals(15, names.get(0).beginColumn);
    }

    public void test3() throws Exception {
        ArrayList<Object> c = new ArrayList<Object>();
        commentType comment = new commentType("\r\n\r\n\n#comment with RenFoo\r\n");
        comment.beginLine = 5;
        comment.beginColumn = 22;
        c.add(comment);

        List<Name> names = ScopeAnalysis.checkComments(c, "RenFoo");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.