org.scalamacros.paradise.reflect.Symbols.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paradise_2.12.20 Show documentation
Show all versions of paradise_2.12.20 Show documentation
Empowers production Scala compiler with latest macro developments
The newest version!
package org.scalamacros.paradise
package reflect
trait Symbols {
self: Enrichments =>
import global._
import scala.reflect.internal.Flags._
implicit class ParadiseSymbol(sym: Symbol) {
def isAnnotationMacro = sym.isTermMacro && sym.owner.isMacroAnnotation && sym.name == nme.macroTransform
def isMacroAnnotation = sym.isClass && sym.hasFlag(MACRO)
}
}