mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Expose ability names
This commit is contained in:
parent
95395ffc5f
commit
1beb0551cb
3 changed files with 19 additions and 4 deletions
|
@ -518,8 +518,16 @@ pub fn canonicalize_module_defs<'a>(
|
|||
aliases.insert(symbol, alias);
|
||||
}
|
||||
|
||||
for member in scope.abilities_store.root_ability_members().keys() {
|
||||
exposed_but_not_defined.remove(member);
|
||||
for (ability, members) in scope
|
||||
.abilities_store
|
||||
.iter_abilities()
|
||||
.filter(|(ab, _)| ab.module_id() == home)
|
||||
{
|
||||
exposed_but_not_defined.remove(&ability);
|
||||
members.iter().for_each(|member| {
|
||||
debug_assert!(member.module_id() == home);
|
||||
exposed_but_not_defined.remove(member);
|
||||
});
|
||||
}
|
||||
|
||||
// By this point, all exposed symbols should have been removed from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue