collect_global_array_edits

Function collect_global_array_edits 

Source
pub(crate) fn collect_global_array_edits(
    tu: &TranslationUnit,
    src: &str,
    edits: &mut Vec<TextEdit>,
)
Expand description

Walk every top-level Item::GlobalVar with an array length + InitList and emit one text edit per match. Shared between [lower_array_globals] (the standalone pass) and apply_lowerings (the combined pass used by apply_all).