/** * Should be called when decending into a loop that defines * also a scope. Calls pushVariableScope and prepares labels * for a loop structure. Creates a element for the state stack * so pop has to be called later */ protected void pushLoop(VariableScope el, String labelName) { pushVariableScope(el); initLoopLabels(labelName); }
/** * Should be called when decending into a loop that defines * also a scope. Calls pushVariableScope and prepares labels * for a loop structure. Creates a element for the state stack * so pop has to be called later */ protected void pushLoop(VariableScope el, String labelName) { pushVariableScope(el); initLoopLabels(labelName); }
/** * Should be called when decending into a loop that defines * also a scope. Calls pushVariableScope and prepares labels * for a loop structure. Creates a element for the state stack * so pop has to be called later */ protected void pushLoop(VariableScope el, String labelName) { pushVariableScope(el); initLoopLabels(labelName); }
public void visitBlockStatement(BlockStatement block) { onLineNumber(block, "visitBlockStatement"); visitStatement(block); compileStack.pushVariableScope(block.getVariableScope()); super.visitBlockStatement(block); compileStack.pop(); }
public void visitBlockStatement(BlockStatement block) { onLineNumber(block, "visitBlockStatement"); visitStatement(block); compileStack.pushVariableScope(block.getVariableScope()); super.visitBlockStatement(block); compileStack.pop(); }
public void visitBlockStatement(BlockStatement block) { onLineNumber(block, "visitBlockStatement"); visitStatement(block); compileStack.pushVariableScope(block.getVariableScope()); super.visitBlockStatement(block); compileStack.pop(); }
/** * initializes this class for a MethodNode. This method will * automatically define varibales for the method parameters * and will create references if needed. the created variables * can be get by getVariable * */ protected void init(VariableScope el, Parameter[] parameters, MethodVisitor mv, ClassNode cn) { if (!clear) throw new GroovyBugError("CompileStack#init called without calling clear before"); clear=false; pushVariableScope(el); this.mv = mv; this.helper = new BytecodeHelper(mv); defineMethodVariables(parameters,el.isInStaticContext()); this.className = BytecodeHelper.getTypeDescription(cn); }
/** * initializes this class for a MethodNode. This method will * automatically define varibales for the method parameters * and will create references if needed. the created variables * can be get by getVariable * */ protected void init(VariableScope el, Parameter[] parameters, MethodVisitor mv, ClassNode cn) { if (!clear) throw new GroovyBugError("CompileStack#init called without calling clear before"); clear=false; pushVariableScope(el); this.mv = mv; this.helper = new BytecodeHelper(mv); defineMethodVariables(parameters,el.isInStaticContext()); this.className = BytecodeHelper.getTypeDescription(cn); }
/** * initializes this class for a MethodNode. This method will * automatically define varibales for the method parameters * and will create references if needed. the created variables * can be get by getVariable * */ protected void init(VariableScope el, Parameter[] parameters, MethodVisitor mv, ClassNode cn) { if (!clear) throw new GroovyBugError("CompileStack#init called without calling clear before"); clear=false; pushVariableScope(el); this.mv = mv; this.helper = new BytecodeHelper(mv); defineMethodVariables(parameters,el.isInStaticContext()); this.className = BytecodeHelper.getTypeDescription(cn); currentClassIndex = -1; currentMetaClassIndex = -1; }
public void visitClosureListExpression(ClosureListExpression expression) { compileStack.pushVariableScope(expression.getVariableScope());
public void visitClosureListExpression(ClosureListExpression expression) { compileStack.pushVariableScope(expression.getVariableScope());
compileStack.pushVariableScope(clExpr.getVariableScope());
compileStack.pushVariableScope(clExpr.getVariableScope());
public void visitClosureListExpression(ClosureListExpression expression) { compileStack.pushVariableScope(expression.getVariableScope());
compileStack.pushVariableScope(clExpr.getVariableScope());