Package org.python.pydev.parser.jython.ast

Examples of org.python.pydev.parser.jython.ast.WithItem


        if (arity > 0) {
            asExpr = expr;
            expr = (exprType) stack.popNode();
            ctx.setStore(asExpr);
        }
        return new WithItem(expr, asExpr);
    }
View Full Code Here


        if (node.with_item != null) {
            for (int i = 0; i < node.with_item.length; i++) {
                if (i > 0) {
                    doc.addRequire(",", lastNode);
                }
                WithItem withItem = (WithItem) node.with_item[i];
                withItem.accept(this);
            }
        }

        doc.addRequire(":", lastNode);
        this.doc.addRequireIndent(":", lastNode);
View Full Code Here

                }

                suiteType s = new Suite(suite.body);
                addSpecialsAndClearOriginal(suite, s);

                return new With(new WithItem[] { new WithItem(expr, asOrExpr) }, s);
            case JJTWITH_VAR:
                expr = (exprType) stack.popNode(); //expr
                if (expr != null) {
                    ctx.setStore(expr);
                }
View Full Code Here

                }

                suiteType s = new Suite(suite.body);
                addSpecialsAndClearOriginal(suite, s);

                return new With(new WithItem[] { new WithItem(expr, asOrExpr) }, s);
            case JJTWITH_VAR:
                expr = (exprType) stack.popNode(); //expr
                if (expr != null) {
                    ctx.setStore(expr);
                }
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.jython.ast.WithItem

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.