Examples of NAssert


Examples of org.python.indexer.ast.NAssert

    // Make sure node types all have NType None when constructed,
    // to ensure that no nodes are relying on a particular type when being
    // resolved (since deserialization won't call the constructor).
    public void testConstructedTypes() throws Exception {
        assertNoneType(new NAlias(null, null, null));
        assertNoneType(new NAssert(null, null));
        assertNoneType(new NAssign(null, null));
        assertNoneType(new NAttribute(new NStr(), new NName("")));
        assertNoneType(new NAugAssign(null, null, null));
        assertNoneType(new NBinOp(null, null, null));
        assertNoneType(new NBlock(null));
View Full Code Here

Examples of org.python.indexer.ast.NAssert

        return tree.getCharStopIndex();
    }

    @Override
    public Object visitAssert(Assert n) throws Exception {
        return new NAssert(convExpr(n.getInternalTest()),
                           convExpr(n.getInternalMsg()),
                           start(n), stop(n));
    }
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.