Skip to content

Commit

Permalink
fix(IR): remove api reexport
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhchchc committed Dec 1, 2023
1 parent 6d455c5 commit 203b226
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/ir/generator/execution.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
use super::{jvm_frame::JvmStackFrame, MokaIRGenerationError, MokaIRGenerator};
use crate::{
ir::{expression::*, Argument, Condition, Expression, LocalDef, MokaInstruction as IR},
ir::{
expression::{
ArrayOperation, Condition, ConversionOperation, Expression, FieldAccess, LockOperation,
MathOperation, NaNTreatment,
},
Argument, LocalDef, MokaInstruction as IR,
},
jvm::{
code::{Instruction, ProgramCounter},
field::ConstantValue,
Expand Down
3 changes: 2 additions & 1 deletion src/ir/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ use self::jvm_frame::{Entry, JvmStackFrame};

pub use jvm_frame::JvmFrameError;

use super::{Argument, Expression, Identifier, MokaIRMethod, MokaInstruction};
use super::expression::Expression;
use super::{Argument, Identifier, MokaIRMethod, MokaInstruction};

#[derive(Debug, thiserror::Error)]
pub enum MokaIRGenerationError {
Expand Down
1 change: 0 additions & 1 deletion src/ir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mod moka_instruction;

use std::collections::BTreeMap;

pub use expression::*;
pub use generator::{MokaIRGenerationError, MokaIRMethodExt};
pub use moka_instruction::*;

Expand Down
3 changes: 2 additions & 1 deletion src/ir/moka_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ use std::{
ops::BitOr,
};

use super::{Condition, Expression};
use crate::jvm::code::ProgramCounter;
use itertools::{Either, Itertools};

use super::expression::{Condition, Expression};

/// Represents a single instruction in the Moka IR.
#[derive(Debug, Clone, PartialEq)]
pub enum MokaInstruction {
Expand Down

0 comments on commit 203b226

Please sign in to comment.