Skip to main content

guard_no_pragma

Function guard_no_pragma 

fn guard_no_pragma(doc: &dyn GeneratedDoc, content: &str) -> Result<(), Error>
Expand description

Rejects rendered content that carries a pragma of its own.

Without this a generator could nest or close its own region, and the next run would splice into the wrong place — a corruption that --mode check would then report forever.