nitc :: JavaCompilerVisitor :: variable
# Return the local RuntimeVariable associated to a Nit local variable
fun variable(variable: Variable): RuntimeVariable do
if variables.has_key(variable) then
return variables[variable]
else
var name = get_name("var_{variable.name}")
var mtype = variable.declared_type.as(not null)
mtype = anchor(mtype)
var res = decl_var(name, mtype)
variables[variable] = res
return res
end
end
src/compiler/java_compiler.nit:420,2--432,4