Refactor Optimizer to use Folder

Extract common AST manipulation and folding logic into a new Folder
struct. This improves code organization and reusability. The Optimizer
now delegates these tasks to the Folder.
This commit is contained in:
Michael Schimmel
2026-02-25 19:57:00 +01:00
parent d3d1497c02
commit 7f64e7e6ea
4 changed files with 112 additions and 83 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
pub mod optimizer;
pub mod engine;
pub mod folder;
pub mod substitution_map;
pub use optimizer::Optimizer;
pub use engine::Optimizer;
pub use folder::Folder;
pub use substitution_map::{SubstitutionMap, UsageInfo};