scala.meta.contrib.instances.ReplaceModsInstances.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.13 Show documentation
Show all versions of scalameta_native0.5_2.13 Show documentation
Scalameta umbrella module that includes all public APIs
package scala.meta.contrib.instances
import scala.meta._
import scala.meta.contrib._
trait ReplaceModsInstances {
implicit val replaceClassMods: Replace[Defn.Class, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceTraitMods: Replace[Defn.Trait, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceObjectMods: Replace[Defn.Object, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceDefMods: Replace[Defn.Def, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceValMods: Replace[Defn.Val, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceVarMods: Replace[Defn.Var, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceTypeMod: Replace[Defn.Type, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceTypeParamMod: Replace[Type.Param, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceTermParamMod: Replace[Term.Param, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceDeclDefMod: Replace[Decl.Def, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceDeclVarMod: Replace[Decl.Var, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceDeclValMod: Replace[Decl.Val, Mod] = Replace((a, bs) => a.copy(mods = bs))
implicit val replaceDeclTypeMod: Replace[Decl.Type, Mod] = Replace((a, bs) => a.copy(mods = bs))
}
object ReplaceModsInstances extends ReplaceModsInstances
© 2015 - 2025 Weber Informatics LLC | Privacy Policy