mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
rename type to type_alias in the AST as well
This commit is contained in:
parent
7ffff9c74c
commit
78f10fcdc4
45 changed files with 293 additions and 108 deletions
|
@ -22,7 +22,7 @@ pub struct HirInterner {
|
|||
consts: LocationIntener<ItemLoc<ast::ConstDef>, ConstId>,
|
||||
statics: LocationIntener<ItemLoc<ast::StaticDef>, StaticId>,
|
||||
traits: LocationIntener<ItemLoc<ast::TraitDef>, TraitId>,
|
||||
types: LocationIntener<ItemLoc<ast::TypeDef>, TypeId>,
|
||||
types: LocationIntener<ItemLoc<ast::TypeAliasDef>, TypeId>,
|
||||
}
|
||||
|
||||
impl HirInterner {
|
||||
|
@ -278,8 +278,8 @@ impl AstItemDef<ast::TraitDef> for TraitId {
|
|||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct TypeId(RawId);
|
||||
impl_arena_id!(TypeId);
|
||||
impl AstItemDef<ast::TypeDef> for TypeId {
|
||||
fn interner(interner: &HirInterner) -> &LocationIntener<ItemLoc<ast::TypeDef>, Self> {
|
||||
impl AstItemDef<ast::TypeAliasDef> for TypeId {
|
||||
fn interner(interner: &HirInterner) -> &LocationIntener<ItemLoc<ast::TypeAliasDef>, Self> {
|
||||
&interner.types
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue