Skip to content

Commit

Permalink
fix: expose helper to pretty print mast nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Aug 10, 2024
1 parent cec3309 commit 48f8e7e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/mast/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ impl MastNode {
matches!(self, Self::Block(_))
}

pub(crate) fn to_pretty_print<'a>(
&'a self,
mast_forest: &'a MastForest,
) -> impl PrettyPrint + 'a {
pub fn to_pretty_print<'a>(&'a self, mast_forest: &'a MastForest) -> impl PrettyPrint + 'a {
match self {
MastNode::Block(basic_block_node) => {
MastNodePrettyPrint::new(Box::new(basic_block_node))
Expand Down

0 comments on commit 48f8e7e

Please sign in to comment.