nitc :: JavaCompilerVisitor :: new_expr
jexpr
.mtype
is used for the Java return variable initialization.
# Return a new local RuntimeVariable initialized with the Java expression `jexpr`.
#
# `mtype` is used for the Java return variable initialization.
fun new_expr(jexpr: String, mtype: MType): RuntimeVariable do
var res = new_var(mtype)
add("{res} = {jexpr};")
return res
end
src/compiler/java_compiler.nit:773,2--780,4