mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Merge branch 'trunk' into list-append
This commit is contained in:
commit
36a259b56b
31 changed files with 1659 additions and 789 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