com.github.ghik.silencer.SilencerPluginCompat.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silencer-plugin_2.12.20 Show documentation
Show all versions of silencer-plugin_2.12.20 Show documentation
Scala compiler plugin for annotation-based warning suppression
The newest version!
package com.github.ghik.silencer
trait SilencerPluginCompat { this: SilencerPlugin =>
import global._
protected object MaybeNamedArg {
def unapply(tree: Tree): OptRef[Tree] = tree match {
case AssignOrNamedArg(_, rhs) => OptRef(rhs)
case _ => OptRef(tree)
}
}
}