Skip to main content

sign_source

Function sign_source 

Source
pub fn sign_source(source: &str) -> Result<String, Diagnostic>
Expand description

Add or replace budget signatures without reformatting source. Existing quotes, Markdown, comments, line endings, and attribute order are preserved. Removes signatures from elements that no longer declare a local limit. Invalid syntax or missing reasons return an error without any output.