rustc: Add an accessor to get the diagnostic handler from the session

This commit is contained in:
Brian Anderson 2012-03-22 17:39:45 -07:00
parent 8f809f89d9
commit cb2840bcaf
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ impl session for session {
fn next_node_id() -> ast::node_id {
ret syntax::parse::parser::next_node_id(self.parse_sess);
}
fn diagnostic() -> diagnostic::span_handler {
self.span_diagnostic
}
}
// Seems out of place, but it uses session, so I'm putting it here