All Downloads are FREE. Search and download functionalities are using the official Maven repository.

argonaut.internal.MacrosCompat.scala Maven / Gradle / Ivy

The newest version!
package argonaut.internal

trait MacrosCompat {
  type Context = scala.reflect.macros.blackbox.Context

  def getDeclarations(c: Context)(tpe: c.universe.Type): c.universe.MemberScope = tpe.decls

  def getParameterLists(c: Context)(method: c.universe.MethodSymbol): List[List[c.universe.Symbol]] = method.paramLists

  def getDeclaration(c: Context)(tpe: c.universe.Type, name: c.universe.Name): c.universe.Symbol = tpe.decl(name)

  def createTermName(c: Context)(name: String): c.universe.TermName = c.universe.TermName(name)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy