mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Use InFile for AstId
This commit is contained in:
parent
16030528b5
commit
e823c578c9
6 changed files with 16 additions and 47 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue