pub fn new(ident: ModuleIdent, alias_opt: Option<ModuleName>) -> Self {
        let alias = match alias_opt {
            Some(alias) => alias,
            None => *ident.name(),
        };
        ImportDefinition { ident, alias }
    }
/// Creates a new import definition from a module identifier and an optional alias
/// If the alias is `None`, the alias will be a cloned copy of the identifiers module name
Creates a new import definition from a module identifier and an optional alias
If the alias is `None`, the alias will be a cloned copy of the identifiers module name
Creates a new import definition from a module identifier and an optional alias If the alias is ` None ` the alias will be a cloned copy of the identifiers module name
pub fn new(ident: ModuleIdent, alias_opt: Option<ModuleName>) -> Self {
        let alias = match alias_opt {
            Some(alias) => alias,
            None => *ident.name(),
        };
        ImportDefinition { ident, alias }
    }
pub fn new ( ident : ModuleIdent , alias_opt : Option < ModuleName > ) -> Self { let alias = match alias_opt { Some ( alias ) => alias , None => * ident . name ( ) , } ; ImportDefinition { ident , alias } }
Creates a new import definition from a module identifier and an optional alias
If the alias is `None`, the alias will be a cloned copy of the identifiers module name
Creates a new import definition from a module identifier and an optional alias If the alias is ` None ` the alias will be a cloned copy of the identifiers module name
ident
ModuleIdent
alias_opt
Option<ModuleName>