scala.reflect.macros.runtime.Names.scala Maven / Gradle / Ivy
package scala.reflect.macros
package runtime
trait Names {
self: Context =>
lazy val freshNameCreator = callsiteTyper.context.unit.fresh
def fresh(): String =
freshNameCreator.newName()
def fresh(name: String): String =
freshNameCreator.newName(name)
def fresh[NameType <: Name](name: NameType): NameType =
name.mapName(freshNameCreator.newName(_)).asInstanceOf[NameType]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy