mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Introduce hir::GenericParam
Unlike existing hir::GenericParams, this is a global ID.
This commit is contained in:
parent
ff609cc497
commit
c5a18c44e5
4 changed files with 19 additions and 9 deletions
|
@ -4,7 +4,8 @@
|
|||
//! Note that the reference search is possible for not all of the classified items.
|
||||
|
||||
use hir::{
|
||||
Adt, AssocItem, HasSource, Local, MacroDef, Module, ModuleDef, StructField, Ty, VariantDef,
|
||||
Adt, AssocItem, GenericParam, HasSource, Local, MacroDef, Module, ModuleDef, StructField, Ty,
|
||||
VariantDef,
|
||||
};
|
||||
use ra_syntax::{ast, ast::VisibilityOwner};
|
||||
|
||||
|
@ -18,7 +19,7 @@ pub enum NameKind {
|
|||
Def(ModuleDef),
|
||||
SelfType(Ty),
|
||||
Local(Local),
|
||||
GenericParam(u32),
|
||||
GenericParam(GenericParam),
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue