Skip to main content

Module comptime_extends

Module comptime_extends 

Source
Expand description

Comptime annotation expansion utilities.

This transform extracts direct extend ... { ... } directives from annotation ... comptime pre/post(...) { ... } handler bodies and materializes them as synthetic top-level Item::Extend entries. It is intentionally static/AST-driven and does not execute comptime code.

Functionsยง

augment_program_with_generated_extends
Return a cloned program augmented with synthetic Item::Extend items derived from direct comptime handler directives on annotated targets.
collect_generated_annotation_extends
Collect synthetic extends generated by directly declared annotation comptime handlers.