From 48f8e7e90d2e7d82651d30a18adb444d69e5284d Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Sat, 10 Aug 2024 00:50:33 -0400 Subject: [PATCH] fix: expose helper to pretty print mast nodes --- core/src/mast/node/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/mast/node/mod.rs b/core/src/mast/node/mod.rs index 8b42b148f..57f4327e1 100644 --- a/core/src/mast/node/mod.rs +++ b/core/src/mast/node/mod.rs @@ -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))