
plugin.Plugin.scala Maven / Gradle / Ivy
package dfhdl.plugin
import dotty.tools.dotc.plugins.*
import dotty.tools.dotc.core.Contexts.Context
class Plugin extends StandardPlugin:
val name: String = "dfhdl.plugin"
override val description: String = "Dedicated DSL capabilities for DFiant HDL"
override def initialize(options: List[String])(using Context): List[PluginPhase] =
val setting = new Setting(options.headOption)
PreTyperPhase(setting) ::
TopAnnotPhase(setting) ::
MetaContextPlacerPhase(setting) ::
CustomControlPhase(setting) ::
DesignDefsPhase(setting) ::
MetaContextDelegatePhase(setting) ::
MetaContextGenPhase(setting) ::
OnCreateEventsPhase(setting) ::
FixInterpDFValPhase(setting) ::
Nil
end Plugin
© 2015 - 2025 Weber Informatics LLC | Privacy Policy