scala.meta.contrib.instances.ExtractAnnotationInstances.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.instances
import scala.meta._
import scala.meta.contrib._
trait ExtractAnnotationInstances {
implicit def extractAnnotationsFromMods[A](implicit ev: Extract[A, Mod]): Extract[A, Mod.Annot] =
Extract(a => ev.extract(a).collect { case m: Mod.Annot => m })
}
object ExtractAnnotationInstances extends ExtractAnnotationInstances
© 2015 - 2025 Weber Informatics LLC | Privacy Policy