org.scalamacros.paradise.Plugin.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
import scala.tools.nsc.{Global, Phase, SubComponent}
import scala.tools.nsc.plugins.{Plugin => NscPlugin, PluginComponent => NscPluginComponent}
import scala.collection.{mutable, immutable}
import org.scalamacros.paradise.typechecker.AnalyzerPlugins
class Plugin(val global: Global) extends NscPlugin with AnalyzerPlugins {
import global._
val name = "macroparadise"
val description = "Empowers production Scala compiler with latest macro developments"
val components = Nil
analyzer.addAnalyzerPlugin(AnalyzerPlugin)
analyzer.addMacroPlugin(MacroPlugin)
}