mod fix_conflicts;
mod fix_imports;
mod fix_params;
mod fix_symbol;
mod fix_vars;

use fix_symbol::BindingInfo;

use super::{NoUnusedVars, Symbol};

// source text will never be large enough for this usize to be truncated when
// getting cast to a u32
#[expect(clippy::cast_possible_truncation)]
fn count_whitespace_or_commas<I: Iterator<Item = char>>(iter: I) -> u32 {
    iter.take_while(|c| *c == ',' || c.is_whitespace()).map(|c| c.len_utf8() as u32).sum()
}
