compileStack.defineVariable(catchStatement.getVariable(), true);
compileStack.defineVariable(catchStatement.getVariable(), true);
i++; if (defineVariable) { compileStack.defineVariable(var, true); } else { visitVariableExpression(var); compileStack.defineVariable(var, true); } else {
i++; if (defineVariable) { compileStack.defineVariable(var, true); } else { visitVariableExpression(var); compileStack.defineVariable(var, true); } else {
v = compileStack.defineVariable(param, true); param.setClosureSharedVariable(true); v.setHolder(true);
v = compileStack.defineVariable(param, true); param.setClosureSharedVariable(true); v.setHolder(true);
Variable variable = compileStack.defineVariable(loop.getVariable(), false);
public void visitDeclarationExpression(DeclarationExpression expression) { onLineNumber(expression, "visitDeclarationExpression: \"" + expression.getVariableExpression().getName() + "\""); Expression rightExpression = expression.getRightExpression(); // no need to visit left side, just get the variable name VariableExpression vex = expression.getVariableExpression(); ClassNode type = vex.getType(); // let's not cast for primitive types as we handle these in field setting etc if (ClassHelper.isPrimitiveType(type)) { rightExpression.visit(this); } else { if (type != ClassHelper.OBJECT_TYPE) { visitCastExpression(new CastExpression(type, rightExpression)); } else { visitAndAutoboxBoolean(rightExpression); } } compileStack.defineVariable(vex, true); }
Variable variable = compileStack.defineVariable(loop.getVariable(), false);
compileStack.defineVariable(catchStatement.getVariable(), true);
v = compileStack.defineVariable(param, true); param.setClosureSharedVariable(true); v.setHolder(true);
Variable variable = compileStack.defineVariable(loop.getVariable(), false);