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

scala.meta.contrib.implicits.Converters.scala Maven / Gradle / Ivy

There is a newer version: 4.12.2
Show newest version
package scala.meta.contrib.implicits

import scala.meta._

trait Converters {
  implicit class convertName(n: Name) {
    def asTerm: Term.Name = Term.Name(n.value)
    def asType: Type.Name = Type.Name(n.value)
    def asPat: Pat.Var = Pat.Var(n.asTerm)
  }
}

object Converters extends Converters




© 2015 - 2025 Weber Informatics LLC | Privacy Policy