mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
store `exposed_ident_ids in the scope itself
This commit is contained in:
parent
5a613db7b6
commit
fb9d60226d
9 changed files with 54 additions and 151 deletions
|
@ -108,12 +108,7 @@ impl GeneratedInfo {
|
|||
}
|
||||
|
||||
let effect_symbol = scope
|
||||
.introduce(
|
||||
name.into(),
|
||||
&env.exposed_ident_ids,
|
||||
&mut env.ident_ids,
|
||||
Region::zero(),
|
||||
)
|
||||
.introduce(name.into(), &mut env.ident_ids, Region::zero())
|
||||
.unwrap();
|
||||
|
||||
{
|
||||
|
@ -177,7 +172,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);
|
||||
let mut scope = Scope::new(home, var_store, exposed_ident_ids.clone());
|
||||
let mut env = Env::new(home, dep_idents, module_ids, exposed_ident_ids);
|
||||
let num_deps = dep_idents.len();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue