Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created December 6, 2013 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeno-by/7823928 to your computer and use it in GitHub Desktop.
Save xeno-by/7823928 to your computer and use it in GitHub Desktop.
private[this] val r1: reflect.runtime.universe.Tree = {
import scala.reflect.api.Liftable;
{
final class $anon extends AnyRef with scala.reflect.api.Liftable[A] {
def <init>(): <$anon: scala.reflect.api.Liftable[A]> = {
$anon.super.<init>();
()
};
def apply(universe: scala.reflect.api.Universe, cc: A): universe.Tree = {
val ttree: universe.TypeTree = universe.TypeTree(universe.typeOf[A]({
val $u: universe.type = universe;
val $m: $u.Mirror = universe.rootMirror;
$u.TypeTag.apply[A]($m, {
final class $typecreator1 extends TypeCreator {
def <init>(): $typecreator1 = {
$typecreator1.super.<init>();
()
};
def apply[U <: scala.reflect.api.Universe with Singleton]($m$untyped: scala.reflect.api.Mirror[U]): U#Type = {
val $u: U = $m$untyped.universe;
val $m: $u.Mirror = $m$untyped.asInstanceOf[$u.Mirror];
$m.staticClass("A").asType.toTypeConstructor
}
};
new $typecreator1()
})
}));
universe.Apply.apply(universe.Select.apply(universe.New.apply(ttree), universe.nme.CONSTRUCTOR), immutable.this.Nil)
}
};
new $anon().apply(scala.reflect.runtime.`package`.universe, Test.this.c1)
}
}.asInstanceOf[reflect.runtime.universe.Tree];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment