Rename StructDef -> Struct

This commit is contained in:
Aleksey Kladov 2020-07-30 17:50:40 +02:00
parent 1ae4721c9c
commit 216a5344c8
63 changed files with 163 additions and 163 deletions

View file

@ -57,8 +57,8 @@ impl HasSource for Field {
}
}
impl HasSource for Struct {
type Ast = ast::StructDef;
fn source(self, db: &dyn HirDatabase) -> InFile<ast::StructDef> {
type Ast = ast::Struct;
fn source(self, db: &dyn HirDatabase) -> InFile<ast::Struct> {
self.id.lookup(db.upcast()).source(db.upcast())
}
}