Skip to content

OnAttributeAttribute

1 min read

Import: import system.codegen;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

OnAttributeAttribute

Runs the generator when a declaration carries one of the named @attribute types.

public struct OnAttributeAttribute

declaration

Attribute type whose uses select declarations for the generator.

public declaration: DeclarationPath

additional_declarations

Additional declarations made available to the generator.

public additional_declarations: List<DeclarationPath>