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::Extenditems derived from direct comptime handler directives on annotated targets. - collect_
generated_ annotation_ extends - Collect synthetic extends generated by directly declared annotation comptime handlers.