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

org.scalamacros.paradise.reflect.Names.scala Maven / Gradle / Ivy

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)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy