mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-26 19:39:07 +00:00
fix: bugs with enumeration of vars
This commit is contained in:
parent
b1a9f7bf40
commit
fa2919e824
15 changed files with 107 additions and 94 deletions
|
@ -5,6 +5,7 @@ use std::mem;
|
|||
|
||||
use erg_common::config::{ErgConfig, ErgMode};
|
||||
use erg_common::dict;
|
||||
use erg_common::dict::Dict;
|
||||
use erg_common::error::{Location, MultiErrorDisplay};
|
||||
use erg_common::set;
|
||||
use erg_common::set::Set;
|
||||
|
@ -124,7 +125,7 @@ impl Runnable for ASTLowerer {
|
|||
}
|
||||
|
||||
impl ContextProvider for ASTLowerer {
|
||||
fn dir(&self) -> Vec<(&VarName, &VarInfo)> {
|
||||
fn dir(&self) -> Dict<&VarName, &VarInfo> {
|
||||
self.module.context.dir()
|
||||
}
|
||||
|
||||
|
@ -176,7 +177,7 @@ impl ASTLowerer {
|
|||
&self.module
|
||||
}
|
||||
|
||||
pub fn dir(&self) -> Vec<(&VarName, &VarInfo)> {
|
||||
pub fn dir(&self) -> Dict<&VarName, &VarInfo> {
|
||||
ContextProvider::dir(self)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue