pub struct MelInterpContext {
pub val: Option<TypedValue>,
pub scopes: Scopes<TypedValue>,
pub log: LogMsgs,
}Fields§
§val: Option<TypedValue>§scopes: Scopes<TypedValue>§log: LogMsgsImplementations§
Source§impl MelInterpContext
impl MelInterpContext
pub fn update_val(self, new: Option<TypedValue>) -> Self
pub fn update_scopes(self, new: &Scopes<TypedValue>) -> Self
pub fn update_log(self, new: LogMsgs) -> Self
Trait Implementations§
Source§impl AstVisitor<MelInterpContext, Analyzed, Box<InterpLocatableError>> for MelInterp
impl AstVisitor<MelInterpContext, Analyzed, Box<InterpLocatableError>> for MelInterp
fn visit_function_call( &self, ast: &FunctionCall<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_identifier( &self, ast: &Identifier<Analyzed>, context: MelInterpContext, _driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_argument_list( &self, ast: &ArgumentList<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_argument( &self, ast: &Argument<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_binary_expr( &self, ast: &BinaryExpr<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_literal( &self, ast: (&Literal, &TextLocation, &Analyzed), context: MelInterpContext, _driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_ternary_expr( &self, ast: &TernaryExpr<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_member_access_expr( &self, ast: &MemberAccessExpression<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
Source§impl Debug for MelInterpContext
impl Debug for MelInterpContext
Source§impl Default for MelInterpContext
impl Default for MelInterpContext
Source§fn default() -> MelInterpContext
fn default() -> MelInterpContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MelInterpContext
impl !Send for MelInterpContext
impl !Sync for MelInterpContext
impl !UnwindSafe for MelInterpContext
impl Freeze for MelInterpContext
impl Unpin for MelInterpContext
impl UnsafeUnpin for MelInterpContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more