Finalize union grammar

This commit is contained in:
Aleksey Kladov 2020-07-30 17:36:46 +02:00
parent 8ddbf06e39
commit 1ae4721c9c
23 changed files with 51 additions and 51 deletions

View file

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