Package org.python.indexer.ast

Examples of org.python.indexer.ast.NQname


        assertNoneType(new NName(""));
        assertNoneType(new NNum(-1));
        assertNoneType(new NPass());
        assertNoneType(new NPlaceHolder());
        assertNoneType(new NPrint(null, null));
        assertNoneType(new NQname(null, new NName("")));
        assertNoneType(new NRaise(null, null, null));
        assertNoneType(new NRepr(null));
        assertNoneType(new NReturn(null));
        assertNoneType(new NSlice(null, null, null));
        assertNoneType(new NStr());
View Full Code Here


    private NQname convertQname(List<Name> in) throws Exception {
        if (in == null) {
            return null;
        }
        // This would be less ugly if we generated Qname nodes in the antlr ast.
        NQname out = null;
        int end = -1;
        for (int i = in.size() - 1; i >= 0; i--) {
            Name n = in.get(i);
            if (end == -1) {
                end = n.getCharStopIndex();
            }
            @SuppressWarnings("unchecked")
            NName nn = (NName)n.accept(this);
            out = new NQname(out, nn, n.getCharStartIndex(), end);
        }
        return out;
    }
View Full Code Here

TOP

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

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.