Prepare SourceAnalyzer for macros

This commit is contained in:
Aleksey Kladov 2019-11-16 00:40:54 +03:00
parent ad10c4b8e2
commit 1c819fc8f6

View file

@ -90,7 +90,6 @@ fn def_with_body_from_child_node(
/// original source files. It should not be used inside the HIR itself. /// original source files. It should not be used inside the HIR itself.
#[derive(Debug)] #[derive(Debug)]
pub struct SourceAnalyzer { pub struct SourceAnalyzer {
// FIXME: this doesn't handle macros at all
file_id: HirFileId, file_id: HirFileId,
resolver: Resolver, resolver: Resolver,
body_owner: Option<DefWithBody>, body_owner: Option<DefWithBody>,