scala.meta.contrib.TreeExtractors.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
The newest version!
package scala.meta
package contrib
trait TreeExtractors {
object Select {
def unapply(tree: Tree): Option[(Term, Name)] = tree match {
case Term.Select(qual, name) => Some(qual -> name)
case Type.Select(qual, name) => Some(qual -> name)
case _ => None
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy