Add doc-alias based completion

This commit is contained in:
hecatia-elegua 2023-03-29 14:08:25 +02:00
parent 7a98e24777
commit 0863389dd1
18 changed files with 330 additions and 36 deletions

View file

@ -1644,6 +1644,7 @@ impl<'a> SemanticsScope<'a> {
VisibleTraits(resolver.traits_in_scope(self.db.upcast()))
}
/// Calls the passed closure `f` on all names in scope.
pub fn process_all_names(&self, f: &mut dyn FnMut(Name, ScopeDef)) {
let scope = self.resolver.names_in_scope(self.db.upcast());
for (name, entries) in scope {