aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/assembler.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-18 11:46:29 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-18 11:46:29 +0100
commit864702da68ec69ee92e47e77a65c5a86ba200201 (patch)
tree0a89dcb9dcb8bb0455f649c1cfd63ce8f4a02cad /lib/xixanta/src/assembler.rs
parenteb7fff6c62e028e6cdc412266937402412be500d (diff)
downloadtools.nes-864702da68ec69ee92e47e77a65c5a86ba200201.tar.gz
tools.nes-864702da68ec69ee92e47e77a65c5a86ba200201.zip
Remove unneeded public references
Some of the functions are actually private, so don't export them. Moreover, there was an import cycle which was not needed and was forcing a public import. Remove that as well. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/assembler.rs')
-rw-r--r--lib/xixanta/src/assembler.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs
index 2f09295..24653e2 100644
--- a/lib/xixanta/src/assembler.rs
+++ b/lib/xixanta/src/assembler.rs
@@ -1,7 +1,7 @@
use crate::errors::{Error, EvalError};
use crate::mapping::Mapping;
use crate::node::{ControlType, NodeType, PNode, PString};
-pub use crate::object::{Bundle, Context, Object, ObjectType};
+use crate::object::{Bundle, Context, Object, ObjectType};
use crate::opcodes::{AddressingMode, INSTRUCTIONS};
use crate::parser::Parser;
use std::cmp::Ordering;
@@ -116,7 +116,7 @@ impl Assembler {
self.fill()
}
- pub fn eval_context(&mut self, nodes: &[PNode]) -> Result<(), Vec<Error>> {
+ fn eval_context(&mut self, nodes: &[PNode]) -> Result<(), Vec<Error>> {
let mut errors = Vec::new();
let mut current_macro = None;
@@ -223,7 +223,7 @@ impl Assembler {
}
}
- pub fn bundle(&mut self, nodes: &Vec<PNode>) -> Result<(), Vec<Error>> {
+ fn bundle(&mut self, nodes: &Vec<PNode>) -> Result<(), Vec<Error>> {
let mut errors = Vec::new();
for node in nodes {