Interpreter - Use EnvironmentRef in Callable
This commit is contained in:
parent
34619a8125
commit
1ad55e95f5
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ use std::fmt::Debug;
|
||||||
|
|
||||||
use crate::errors::InterpreterError;
|
use crate::errors::InterpreterError;
|
||||||
|
|
||||||
use super::{Environment, Value};
|
use super::{EnvironmentRef, Value};
|
||||||
|
|
||||||
/// A callable is some object that supports being called.
|
/// A callable is some object that supports being called.
|
||||||
pub trait Callable: Debug + ToString {
|
pub trait Callable: Debug + ToString {
|
||||||
|
@ -13,7 +13,7 @@ pub trait Callable: Debug + ToString {
|
||||||
/// arguments.
|
/// arguments.
|
||||||
fn call(
|
fn call(
|
||||||
&self,
|
&self,
|
||||||
environment: &mut Environment,
|
environment: &EnvironmentRef,
|
||||||
arguments: &Vec<Value>,
|
arguments: &Vec<Value>,
|
||||||
) -> Result<Value, InterpreterError>;
|
) -> Result<Value, InterpreterError>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue