mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
impl From<ImportedModuleName> for QualifiedModuleName
This commit is contained in:
parent
6fffaa6dda
commit
0f89d3558a
4 changed files with 20 additions and 12 deletions
|
@ -5225,12 +5225,7 @@ fn parse<'a>(
|
|||
for (def, region) in ast::RecursiveValueDefIter::new(&parsed_defs) {
|
||||
match def {
|
||||
ValueDef::ModuleImport(import) => {
|
||||
let qualified_module_name = QualifiedModuleName {
|
||||
opt_package: import.name.value.package,
|
||||
module: import.name.value.name.as_str().into(),
|
||||
};
|
||||
|
||||
imported.push((qualified_module_name, *region));
|
||||
imported.push((import.name.value.into(), *region));
|
||||
}
|
||||
|
||||
ValueDef::IngestedFileImport(_) => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue