Skip to content

Commit

Permalink
ast/tree: Change trace prints to pretty-debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkajetanp committed Sep 10, 2024
1 parent b8fe307 commit b8883cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ast/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl FunctionDeclaration {
body,
};

log::trace!("--- Parsed function declaration: {:?}", func);
log::trace!("--- Parsed function declaration: {:#?}", func);
Ok(func)
}
}
Expand Down Expand Up @@ -201,7 +201,7 @@ impl VariableDeclaration {
expect_token(TokenKind::Semicolon, tokens)?;

let result = Self { name: ident, init };
log::trace!("-- Parsed declaration: {:?}", result);
log::trace!("-- Parsed declaration: {:#?}", result);
Ok(result)
}
}
Expand Down Expand Up @@ -309,7 +309,7 @@ impl Statement {
}
};

log::trace!("-- Parsed statement: {:?}", result);
log::trace!("-- Parsed statement: {:#?}", result);
Ok(result)
}
}
Expand Down

0 comments on commit b8883cf

Please sign in to comment.