From f02d15fa8382dfac3649a1cdc28fc1ad189d02d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= <tseeker@nocternity.net>
Date: Mon, 2 Jan 2023 19:49:58 +0100
Subject: [PATCH] Interpreter - Scope change for a few functions

---
 src/interpreter/interpretable.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/interpreter/interpretable.rs b/src/interpreter/interpretable.rs
index 4480ec5..43ef08b 100644
--- a/src/interpreter/interpretable.rs
+++ b/src/interpreter/interpretable.rs
@@ -35,7 +35,7 @@ pub enum InterpreterFlowControl {
 impl InterpreterFlowControl {
     /// Return the result's value. If the flow control value does not represent
     /// a result, panic.
-    fn result(self) -> Value {
+    pub(crate) fn result(self) -> Value {
         match self {
             Self::Result(v) => v,
             other => panic!("Result expected, {:?} found instead", other),
@@ -44,7 +44,7 @@ impl InterpreterFlowControl {
 
     /// Check whether a flow control value contains actual flow control
     /// information.
-    fn is_flow_control(&self) -> bool {
+    pub(crate) fn is_flow_control(&self) -> bool {
         matches!(self, Self::Break(_) | Self::Continue(_))
     }
 }