mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
error message for record update and missing module
This commit is contained in:
parent
27317110f2
commit
331a8ed5eb
8 changed files with 153 additions and 8 deletions
|
@ -346,6 +346,10 @@ impl ModuleIds {
|
|||
pub fn get_name(&self, id: ModuleId) -> Option<&InlinableString> {
|
||||
self.by_id.get(id.0 as usize)
|
||||
}
|
||||
|
||||
pub fn available_modules(&self) -> impl Iterator<Item = &InlinableString> {
|
||||
self.by_id.iter()
|
||||
}
|
||||
}
|
||||
|
||||
/// An ID that is assigned to interned string identifiers within a module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue