Package org.python.indexer.ast

Examples of org.python.indexer.ast.NCall


        assertNoneType(new NBinOp(null, null, null));
        assertNoneType(new NBlock(null));
        assertNoneType(new NBody((List<NNode>)null));
        assertNoneType(new NBoolOp(null, null));
        assertNoneType(new NBreak());
        assertNoneType(new NCall(null, null, null, null, null));
        assertNoneType(new NClassDef(null, null, null));
        assertNoneType(new NCompare(null, null, null));
        assertNoneType(new NComprehension(null, null, null));
        assertNoneType(new NContinue());
        assertNoneType(new NDelete(null));
View Full Code Here


        assertEquals(nthIndexOf(src, "deco1", 1), d1.start());
        assertEquals("deco1".length(), d1.length());
        assertEquals("deco1", d1.id);

        assertTrue(decos.get(1) instanceof NCall);
        NCall d2 = (NCall)decos.get(1);
        assertTrue(d2.func instanceof NName);
        assertEquals("deco2", ((NName)d2.func).id);
    }
View Full Code Here

        return new NBreak(start(n), stop(n));
    }

    @Override
    public Object visitCall(Call n) throws Exception {
        return new NCall(convExpr(n.getInternalFunc()),
                         convertListExpr(n.getInternalArgs()),
                         convertListKeyword(n.getInternalKeywords()),
                         convExpr(n.getInternalKwargs()),
                         convExpr(n.getInternalStarargs()),
                         start(n), stop(n));
View Full Code Here

TOP

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

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.