org.scalamacros.paradise.reflect.Names.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
The newest version!
package org.scalamacros.paradise
package reflect
trait Names {
self: Enrichments =>
import global._
object TermName {
def apply(s: String): TermName = newTermName(s)
def unapply(name: TermName): Some[String] = Some(name.toString)
}
object TypeName {
def apply(s: String): TypeName = newTypeName(s)
def unapply(name: TypeName): Some[String] = Some(name.toString)
}
}