Expose more of the save analysis module

This commit is contained in:
Garming Sam 2015-08-03 20:05:57 +12:00
parent 8b98256f64
commit ed9f8f83c9

View file

@ -28,8 +28,8 @@ use syntax::print::pprust::ty_to_string;
use self::span_utils::SpanUtils;
mod span_utils;
mod recorder;
pub mod span_utils;
pub mod recorder;
mod dump_csv;
@ -661,7 +661,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
}
#[inline]
fn enclosing_scope(&self, id: NodeId) -> NodeId {
pub fn enclosing_scope(&self, id: NodeId) -> NodeId {
self.tcx.map.get_enclosing_scope(id).unwrap_or(0)
}
}