diff --git a/crates/aiken-lang/src/gen_uplc/decision_tree.rs b/crates/aiken-lang/src/gen_uplc/decision_tree.rs index ccb2e830..19f5353e 100644 --- a/crates/aiken-lang/src/gen_uplc/decision_tree.rs +++ b/crates/aiken-lang/src/gen_uplc/decision_tree.rs @@ -14,7 +14,7 @@ struct Occurrence { } #[derive(Clone, Debug, Eq, PartialEq)] -enum Path { +pub enum Path { Pair(usize), Tuple(usize), } @@ -34,7 +34,7 @@ struct RowItem<'a> { } #[derive(Clone, Debug)] -struct Assign { +pub struct Assign { path: Vec, assigned: String, } @@ -80,7 +80,7 @@ impl Ord for CaseTest { } } -enum DecisionTree<'a> { +pub enum DecisionTree<'a> { Switch { subject_name: String, subject_tipo: Rc, @@ -228,7 +228,7 @@ pub fn build_tree<'a>( do_build_tree(subject_name, &subject_tipo, PatternMatrix { rows }) } -pub fn do_build_tree<'a>( +fn do_build_tree<'a>( subject_name: &String, subject_tipo: &Rc, matrix: PatternMatrix<'a>,