mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Move current file to MacroResolver
This commit is contained in:
parent
debf95eb1b
commit
b3175b7077
3 changed files with 27 additions and 21 deletions
|
@ -40,8 +40,8 @@ pub(crate) fn body_with_source_map_query(
|
|||
(src.file_id, src.ast.body())
|
||||
}
|
||||
};
|
||||
let resolver = hir_def::body::MacroResolver::new(db, def.module(db).id);
|
||||
let (body, source_map) = Body::new(db, resolver, file_id, params, body);
|
||||
let resolver = hir_def::body::MacroResolver::new(db, file_id, def.module(db).id);
|
||||
let (body, source_map) = Body::new(db, resolver, params, body);
|
||||
(Arc::new(body), Arc::new(source_map))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue