@@ -19,7 +19,7 @@ use {Id, Span, SymbolQuery};
1919/// such as definitions, their mapping between spans, hierarchy and so on,
2020/// organized in a per-crate fashion.
2121#[ derive( Debug ) ]
22- crate struct Analysis {
22+ pub ( crate ) struct Analysis {
2323 /// Contains lowered data with global inter-crate `Id`s per each crate.
2424 pub per_crate : HashMap < CrateId , PerCrateAnalysis > ,
2525
@@ -30,10 +30,10 @@ crate struct Analysis {
3030 //
3131 // In the future we should handle imports, in particular aliasing ones, more
3232 // explicitly and then this can be removed.
33- crate aliased_imports : HashSet < Id > ,
33+ pub ( crate ) aliased_imports : HashSet < Id > ,
3434
3535 // Maps a crate names to the crate ids for all crates with that name.
36- crate crate_names : HashMap < String , Vec < CrateId > > ,
36+ pub ( crate ) crate_names : HashMap < String , Vec < CrateId > > ,
3737
3838 pub doc_url_base : String ,
3939 pub src_url_base : String ,
@@ -156,7 +156,7 @@ impl PerCrateAnalysis {
156156
157157 // Returns true if there is a def in this crate with the same crate-local id
158158 // and span as `def`.
159- crate fn has_congruent_def ( & self , local_id : u32 , span : & Span ) -> bool {
159+ pub ( crate ) fn has_congruent_def ( & self , local_id : u32 , span : & Span ) -> bool {
160160 let id = Id :: from_crate_and_local ( self . global_crate_num , local_id) ;
161161 match self . defs . get ( & id) {
162162 Some ( existing) => span == & existing. span ,
0 commit comments