mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
remove var_store argument
This commit is contained in:
parent
572bd66fb7
commit
f17cf9d02b
3 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ pub fn canonicalize_module_defs<'a>(
|
|||
var_store: &mut VarStore,
|
||||
) -> Result<ModuleOutput, RuntimeError> {
|
||||
let mut can_exposed_imports = MutMap::default();
|
||||
let mut scope = Scope::new(home, var_store, exposed_ident_ids);
|
||||
let mut scope = Scope::new(home, exposed_ident_ids);
|
||||
let mut env = Env::new(home, dep_idents, module_ids);
|
||||
let num_deps = dep_idents.len();
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ fn add_aliases(var_store: &mut VarStore) -> SendMap<Symbol, Alias> {
|
|||
}
|
||||
|
||||
impl Scope {
|
||||
pub fn new(home: ModuleId, _var_store: &mut VarStore, initial_ident_ids: IdentIds) -> Scope {
|
||||
pub fn new(home: ModuleId, initial_ident_ids: IdentIds) -> Scope {
|
||||
Scope {
|
||||
home,
|
||||
exposed_ident_count: initial_ident_ids.len(),
|
||||
|
|
|
@ -55,7 +55,7 @@ pub fn can_expr_with(arena: &Bump, home: ModuleId, expr_str: &str) -> CanExprOut
|
|||
// rules multiple times unnecessarily.
|
||||
let loc_expr = operator::desugar_expr(arena, &loc_expr);
|
||||
|
||||
let mut scope = Scope::new(home, &mut var_store, IdentIds::default());
|
||||
let mut scope = Scope::new(home, IdentIds::default());
|
||||
scope.add_alias(
|
||||
Symbol::NUM_INT,
|
||||
Region::zero(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue