scala.tools.nsc.transform.Delambdafy
Adapt tree
to expected type pt
.
Adapt tree
to expected type pt
.
the given tree
the expected type
the adapted tree
Generate a synthetic cast operation from tree.
Generate a synthetic cast operation from tree.tpe to pt.
Creates a bridge method if needed.
Creates a bridge method if needed. The bridge method forwards from apply(x1: Object, x2: Object...xn: Object): Object to apply(x1: T1, x2: T2...xn: Tn): T0 using type adaptation on each input and output. The only time a bridge isn't needed is when the original lambda is already erased to type Object, Object, Object... => Object