scala.meta.contrib.implicits.ReplaceExtensions.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalameta_native0.5_2.12 Show documentation
Show all versions of scalameta_native0.5_2.12 Show documentation
Scalameta umbrella module that includes all public APIs
The newest version!
package scala.meta.contrib.implicits
import scala.meta._
import scala.meta.contrib._
trait ReplaceExtensions {
type StatReplacer[A] = Replace[A, Stat]
type ModReplacer[A] = Replace[A, Mod]
implicit class ExtensionReplacers[A](a: A) {
def withStats(bs: List[Stat])(implicit ev: Replace[A, Stat]): A = ev.replace(a, bs)
def withMods(bs: List[Mod])(implicit ev: Replace[A, Mod]): A = ev.replace(a, bs)
}
}
object ReplaceExtensions extends ReplaceExtensions
© 2015 - 2025 Weber Informatics LLC | Privacy Policy