scala> import scala.reflect.runtime.universe._ import scala.reflect.runtime.universe._ scala> showCode(reify { | for{ | x <- 1 to 5 | _ = print("hi") | } print(x) | }.tree) res1: String = Predef.intWrapper(1).to(5).map(((x) => { val x$1 = Predef.print("hi"); Tuple2.apply(x, x$1) }))(IndexedSeq.canBuildFrom).foreach(((x$2) => (x$2: @unchecked) match { case Tuple2((x @ _), _) => Predef.print(x) }))