Skip to main content

normalize_semantics

Function normalize_semantics 

Source
pub fn normalize_semantics(file: File, registry: &CommandRegistry) -> File
Expand description

Reduce a parsed file to its semantic skeleton: drop standalone comments and blank lines, zero out spans, lowercase command names, and normalise each command’s literals and keyword casing. Two files that behave identically in CMake produce equal skeletons.