Skip to main content

rename_consumed_decl

Function rename_consumed_decl 

Source
pub fn rename_consumed_decl(
    decl: &Arc<TypeDecl>,
    key: &str,
    renames: &HashMap<String, String>,
) -> Arc<TypeDecl>
Expand description

#2887: a consumed export’s declaration as the consuming unit sees it: filed under key (its alias, or its own name) with the references it makes to its unit’s other aliased exports renamed to their aliases.