org.scalamacros.paradise.reflect.Mirrors.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paradise_2.10.4 Show documentation
Show all versions of paradise_2.10.4 Show documentation
Empowers production Scala compiler with latest macro developments
package org.scalamacros.paradise
package reflect
trait Mirrors {
self: Enrichments =>
import global._
import scala.language.reflectiveCalls
implicit class ParadiseMirror(m: RootsBase) {
def missingHook(owner: Symbol, name: Name): Symbol = {
val reflectiveThis = m.asInstanceOf[{ def missingHook(owner: Symbol, name: Name): Symbol }]
reflectiveThis.missingHook(owner, name)
}
}
}