pub fn modify_dependency_item_ids<'ast, N>(
node: &'ast mut N,
id_map: &BTreeMap<CatalogItemId, CatalogItemId>,
) -> boolwhere
N: VisitMutNode<'ast, Raw>,
Expand description
Updates any references in the provided AST node that are keys in id_map
.
If an id is found it will be updated to the value of the key in id_map
.
This assumes the names of the reference(s) are unmodified (e.g. each pair of
ids refer to an item of the same name, whose id has changed).