mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Allow dots in import module names
We found some issues with the private submodules part of the proposal [1], and we decided to keep module directories for now. [1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit#heading=h.x84bh32l37em
This commit is contained in:
parent
b56f029a09
commit
3217e5a3f0
18 changed files with 109 additions and 52 deletions
|
@ -2387,7 +2387,6 @@ fn update<'a>(
|
|||
exposed_symbols.insert(*symbol);
|
||||
}
|
||||
|
||||
// [modules-revamp] TODO: revise this
|
||||
// NOTE we currently re-parse the headers when a module is imported twice.
|
||||
// We need a proper solution that marks a phase as in-progress so it's not repeated
|
||||
// debug_assert!(!state.exposed_symbols_by_module.contains_key(&home));
|
||||
|
@ -5214,7 +5213,7 @@ fn parse<'a>(
|
|||
ValueDef::ModuleImport(import) => {
|
||||
let qualified_module_name = QualifiedModuleName {
|
||||
opt_package: import.name.value.package,
|
||||
module: import.name.value.name.into(),
|
||||
module: import.name.value.name.as_str().into(),
|
||||
};
|
||||
|
||||
imported.push((qualified_module_name, *region));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue