Improve code structure

Make sure that there's only one entry point, analyze, remove awkard
analyzer2 name
This commit is contained in:
Aleksey Kladov 2020-12-11 16:50:47 +03:00
parent 15a644d606
commit 4015ff0e0b
2 changed files with 23 additions and 25 deletions

View file

@ -37,7 +37,7 @@ use base_db::CrateId;
/// original source files. It should not be used inside the HIR itself.
#[derive(Debug)]
pub(crate) struct SourceAnalyzer {
file_id: HirFileId,
pub(crate) file_id: HirFileId,
pub(crate) resolver: Resolver,
body: Option<Arc<Body>>,
body_source_map: Option<Arc<BodySourceMap>>,