Package org.python.indexer.ast

Examples of org.python.indexer.ast.NBlock


    public void testAstCacheEmptyFile() throws Exception {
        AstCache cache = AstCache.get();
        NModule mod = cache.getAST(abspath("empty_file.py"));
        assertNotNull(mod);
        NBlock seq = mod.body;
        assertNotNull(seq);
        assertTrue(seq.seq.isEmpty());
    }
View Full Code Here


        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));
        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));
View Full Code Here

                if (nx != null) {
                    out.add(nx);
                }
            }
        }
        return new NBlock(out, 0, 0);
    }
View Full Code Here

TOP

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

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.