scala.meta.prettyprinters.Syntax.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common_2.11 Show documentation
Show all versions of common_2.11 Show documentation
Bag of private and public helpers used in scala.meta's APIs and implementations
package scala.meta
package prettyprinters
import scala.annotation.implicitNotFound
@implicitNotFound(msg = "don't know how to show[Syntax] for ${T}")
trait Syntax[-T] extends Show[T]
object Syntax {
def apply[T](f: T => Show.Result): Syntax[T] = new Syntax[T] {
def apply(input: T) = f(input)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy