SIRModuleAnnotation

scalus.compiler.SIRModuleAnnotation
trait SIRModuleAnnotation extends StaticAnnotation

Marker trait for annotations that should be propagated to SIR Module metadata.

The compiler plugin finds all annotations on @Compile objects whose class extends this trait and serializes their arguments generically into Module.anns.data. Adding a new annotation subclass requires zero plugin changes.

Keys in anns.data are "annotationClassName" for simple args or "annotationClassName:key" for Map entries.

Attributes

Graph
Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
In this article