diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-09 16:06:34 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-09 16:06:34 +0100 |
| commit | 0f6e6d0b2f6887e025a08a862b55288f871e62ca (patch) | |
| tree | 2422d38e5bec456b42f6db574df99ed453409041 /lib/xixanta/src | |
| parent | 8b1c270910fce13077864bf39d6e88971a6eb062 (diff) | |
| download | tools.nes-0f6e6d0b2f6887e025a08a862b55288f871e62ca.tar.gz tools.nes-0f6e6d0b2f6887e025a08a862b55288f871e62ca.zip | |
Remove ContextErrorReason as it was unused
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src')
| -rw-r--r-- | lib/xixanta/src/assembler.rs | 11 | ||||
| -rw-r--r-- | lib/xixanta/src/errors.rs | 13 |
2 files changed, 1 insertions, 23 deletions
diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index d82be73..e472323 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -1,4 +1,4 @@ -use crate::errors::{ContextError, ContextErrorReason, Error, EvalError}; +use crate::errors::{ContextError, Error, EvalError}; use crate::mapping::{get_mapping_configuration, Mapping}; use crate::node::{ControlType, NodeType, OperationType, PNode}; use crate::object::{Bundle, Context, Object, ObjectType}; @@ -231,7 +231,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadScope, }); } @@ -295,7 +294,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadScope, })); } } @@ -309,7 +307,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadScope, })); continue; } @@ -344,7 +341,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadStart, })); continue; } @@ -369,7 +365,6 @@ impl<'a> Assembler<'a> { line: node.value.line, source: self.source_for(node), global: false, - reason: ContextErrorReason::BadStart, })); continue; } @@ -393,7 +388,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadScope, })); } @@ -444,7 +438,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadScope, }); } } @@ -483,7 +476,6 @@ impl<'a> Assembler<'a> { line: node.value.line, global: false, source: self.source_for(node), - reason: ContextErrorReason::BadScope, })); } @@ -716,7 +708,6 @@ impl<'a> Assembler<'a> { message, source: self.source_for(node), global: false, - reason: ContextErrorReason::BadScope, })]); } } diff --git a/lib/xixanta/src/errors.rs b/lib/xixanta/src/errors.rs index 3ca00bc..544b9b4 100644 --- a/lib/xixanta/src/errors.rs +++ b/lib/xixanta/src/errors.rs @@ -68,21 +68,8 @@ impl fmt::Display for ParseError { } #[derive(Debug, Clone, PartialEq)] -pub enum ContextErrorReason { - Redefinition, - UnknownVariable, - BadScope, - Label, - Bounds, - BadStart, - BadEnd, - Other, -} - -#[derive(Debug, Clone, PartialEq)] pub struct ContextError { pub line: usize, - pub reason: ContextErrorReason, pub message: String, pub global: bool, pub source: SourceInfo, |
