All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalamacros.paradise.reflect.Symbols.scala Maven / Gradle / Ivy

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)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy