mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
visitor: Add debug log for FmtVisitor::visit_stmt()
This commit is contained in:
parent
7f0d87cc51
commit
80c56a01ff
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user