Use InFile for AstId

This commit is contained in:
Aleksey Kladov 2019-11-28 16:00:03 +03:00
parent 16030528b5
commit e823c578c9
6 changed files with 16 additions and 47 deletions

View file

@ -105,7 +105,7 @@ impl HasSource for TypeAlias {
impl HasSource for MacroDef {
type Ast = ast::MacroCall;
fn source(self, db: &impl DefDatabase) -> InFile<ast::MacroCall> {
InFile { file_id: self.id.ast_id.file_id(), value: self.id.ast_id.to_node(db) }
InFile { file_id: self.id.ast_id.file_id, value: self.id.ast_id.to_node(db) }
}
}
impl HasSource for ImplBlock {