mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Add doc-alias based completion
This commit is contained in:
parent
7a98e24777
commit
0863389dd1
18 changed files with 330 additions and 36 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue