visitor: Add debug log for FmtVisitor::visit_stmt()

This commit is contained in:
Kamal Marhubi 2016-05-25 20:41:26 +02:00
parent 7f0d87cc51
commit 80c56a01ff

View File

@ -42,6 +42,10 @@ pub struct FmtVisitor<'a> {
impl<'a> FmtVisitor<'a> {
fn visit_stmt(&mut self, stmt: &ast::Stmt) {
debug!("visit_stmt: {:?} {:?}",
self.codemap.lookup_char_pos(stmt.span.lo),
self.codemap.lookup_char_pos(stmt.span.hi));
match stmt.node {
ast::StmtKind::Decl(ref decl, _) => {
if let ast::DeclKind::Item(ref item) = decl.node {