windjammer 0.48.0

A simple language inspired by Go, Ruby, and Elixir that transpiles to Rust - 80% of Rust's power with 20% of the complexity
Documentation
//! Optimization passes for Rust code generation
//!
//! This module contains various optimization passes:
//! - Constant folding
//! - Dead code elimination
//! - String capacity hints
//! - SmallVec optimizations
//! - Cow optimizations
//! - Clone elimination
//! - etc.

use crate::parser::*;

/// Optimization methods for CodeGenerator
pub trait OptimizationGenerator {
    fn try_fold_constant(&self, expr: &Expression) -> Option<Expression<'_>>;
}

// Implementation will be added after extracting from generator.rs