mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Record import aliases in symbol index
This commit is contained in:
parent
637f496a81
commit
eb6244c5f9
10 changed files with 360 additions and 18 deletions
|
@ -4,6 +4,7 @@ use hir_def::{
|
|||
attr::{AttrsWithOwner, Documentation},
|
||||
item_scope::ItemInNs,
|
||||
path::{ModPath, Path},
|
||||
per_ns::Namespace,
|
||||
resolver::{HasResolver, Resolver, TypeNs},
|
||||
AssocItemId, AttrDefId, GenericParamId, ModuleDefId,
|
||||
};
|
||||
|
@ -28,13 +29,6 @@ pub trait HasAttrs {
|
|||
) -> Option<DocLinkDef>;
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Hash, Copy, Clone, Debug)]
|
||||
pub enum Namespace {
|
||||
Types,
|
||||
Values,
|
||||
Macros,
|
||||
}
|
||||
|
||||
/// Subset of `ide_db::Definition` that doc links can resolve to.
|
||||
pub enum DocLinkDef {
|
||||
ModuleDef(ModuleDef),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue