use super::{MirInstruction, EffectMask, Effect, ConstValue, ValueId}; use crate::ast::ASTNode; impl super::MirBuilder { pub(super) fn build_print_statement(&mut self, expression: ASTNode) -> Result { self.build_print_statement_legacy(expression) } pub(super) fn build_block(&mut self, statements: Vec) -> Result { self.build_block_legacy(statements) } pub(super) fn build_if_statement(&mut self, condition: ASTNode, then_branch: ASTNode, else_branch: Option) -> Result { self.build_if_statement_legacy(condition, then_branch, else_branch) } pub(super) fn build_loop_statement(&mut self, condition: ASTNode, body: Vec) -> Result { self.build_loop_statement_legacy(condition, body) } pub(super) fn build_try_catch_statement(&mut self, try_body: Vec, catch_clauses: Vec, finally_body: Option>) -> Result { self.build_try_catch_statement_legacy(try_body, catch_clauses, finally_body) } pub(super) fn build_throw_statement(&mut self, expression: ASTNode) -> Result { self.build_throw_statement_legacy(expression) } pub(super) fn build_local_statement(&mut self, variables: Vec, initial_values: Vec>>) -> Result { self.build_local_statement_legacy(variables, initial_values) } pub(super) fn build_return_statement(&mut self, value: Option>) -> Result { self.build_return_statement_legacy(value) } pub(super) fn build_nowait_statement(&mut self, variable: String, expression: ASTNode) -> Result { self.build_nowait_statement_legacy(variable, expression) } pub(super) fn build_await_expression(&mut self, expression: ASTNode) -> Result { self.build_await_expression_legacy(expression) } pub(super) fn build_me_expression(&mut self) -> Result { self.build_me_expression_legacy() } }