Function ezno_checker::features::modules::import_items

source ยท
pub fn import_items<'b, P: Iterator<Item = NamePair<'b>>, T: ReadFromFS, A: ASTImplementation>(
    environment: &mut Environment<'_>,
    partial_import_path: &str,
    import_position: Span,
    default_import: Option<(&str, Span)>,
    kind: ImportKind<'b, P>,
    checking_data: &mut CheckingData<'_, T, A>,
    also_export: bool,
    type_only: bool,
)
Expand description

Given the current environment for a module:

  • Parse the partial_import_path to a resolved module
  • Type check the module (if not already done)
  • Import names by kind (and another information)