DeclWrapperResult

enum DeclWrapperResult

A wrapper macro's single explicit result: replace the target with one declaration, intentionally emit no declaration, or report a diagnostic.

Cases

case replace(Syntax<Decl>)

Replace the target with the supplied declaration syntax.

case remove

Intentionally emit no declaration for this target.

case failure(SyntaxFailure)

Reject the expansion with a structured diagnostic.