mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use ItemOrMacro in item resolution
This commit is contained in:
parent
c0dc14ba5a
commit
b72074a715
4 changed files with 214 additions and 94 deletions
|
@ -13,7 +13,7 @@ use crate::{
|
|||
adt::{EnumVariantId, StructFieldId, VariantDef},
|
||||
generics::HasGenericParams,
|
||||
docs::{Documentation, Docs, docs_from_ast},
|
||||
ids::{FunctionId, StructId, EnumId, AstItemDef, ConstId, StaticId, TraitId, TypeAliasId},
|
||||
ids::{FunctionId, StructId, EnumId, AstItemDef, ConstId, StaticId, TraitId, TypeAliasId, MacroDefId},
|
||||
impl_block::ImplBlock,
|
||||
resolve::Resolver,
|
||||
diagnostics::{DiagnosticSink},
|
||||
|
@ -937,6 +937,11 @@ impl Docs for TypeAlias {
|
|||
docs_from_ast(&*self.source(db).1)
|
||||
}
|
||||
}
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct MacroDef {
|
||||
pub(crate) id: MacroDefId,
|
||||
}
|
||||
|
||||
|
||||
pub enum Container {
|
||||
Trait(Trait),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue