normalise_call_whitespace

Function normalise_call_whitespace 

Source
pub(crate) fn normalise_call_whitespace(src: &str) -> String
Expand description

Replace name<WS>( with name( for every entry in KNOWN_CALL_NAMES. Only fires when name is on a word boundary and <WS> is non-empty whitespace (so the no-whitespace form is left alone). Skips matches inside /* */ and // comments so commented-out code stays stable.