store `exposed_ident_ids in the scope itself

This commit is contained in:
Folkert 2022-04-28 20:30:02 +02:00
parent 5a613db7b6
commit fb9d60226d
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 54 additions and 151 deletions

View file

@ -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();