pub struct InterpLocatableError {
pub error: Box<InterpError>,
pub location: TextLocation,
pub context: MelInterpContext,
}Fields§
§error: Box<InterpError>§location: TextLocation§context: MelInterpContextTrait 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 InterpLocatableError
impl Debug for InterpLocatableError
Source§impl Display for InterpLocatableError
impl Display for InterpLocatableError
Source§impl Error for InterpLocatableError
impl Error for InterpLocatableError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for InterpLocatableError
impl !Send for InterpLocatableError
impl !Sync for InterpLocatableError
impl !UnwindSafe for InterpLocatableError
impl Freeze for InterpLocatableError
impl Unpin for InterpLocatableError
impl UnsafeUnpin for InterpLocatableError
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