Package org.python.indexer.ast

Examples of org.python.indexer.ast.NUnaryOp


        assertNoneType(new NStr());
        assertNoneType(new NSubscript(null, null));
        assertNoneType(new NTryExcept(null, null, null));
        assertNoneType(new NTryFinally(null, null));
        assertNoneType(new NTuple(null));
        assertNoneType(new NUnaryOp(null, null));
        assertNoneType(new NUrl(""));
        assertNoneType(new NWhile(null, null, null));
        assertNoneType(new NWith(null, null, null));
        assertNoneType(new NYield(null));
    }
View Full Code Here


        return new NTuple(convertListExpr(n.getInternalElts()), start(n), stop(n));
    }

    @Override
    public Object visitUnaryOp(UnaryOp n) throws Exception {
        return new NUnaryOp(null,  // XXX:  why null for operator?
                            convExpr(n.getInternalOperand()),
                            start(n), stop(n));
    }
View Full Code Here

TOP

Related Classes of org.python.indexer.ast.NUnaryOp

Copyright © 2018 www.massapicom. 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.