mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
use more specific function to get symbols/regions
This commit is contained in:
parent
6ffe14809f
commit
8720462839
2 changed files with 4 additions and 7 deletions
|
@ -88,10 +88,6 @@ impl Scope {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn idents(&self) -> impl Iterator<Item = (&Ident, &(Symbol, Region))> {
|
||||
self.idents.iter()
|
||||
}
|
||||
|
||||
pub fn symbols(&self) -> impl Iterator<Item = (&Symbol, &Region)> {
|
||||
self.symbols.iter()
|
||||
}
|
||||
|
@ -181,7 +177,8 @@ impl Scope {
|
|||
opt_defined_alias: Option<Region>,
|
||||
) -> RuntimeError {
|
||||
let opaques_in_scope = self
|
||||
.idents()
|
||||
.idents
|
||||
.iter()
|
||||
.filter(|(_, (sym, _))| {
|
||||
self.aliases
|
||||
.get(sym)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue