Expand description
Codegen Shim - pure logic separated from I/O
Extracts testable logic from codegen.rs
Structs§
- Scope
Tracker - Scope tracker for variable declarations
Functions§
- body_
uses_ hashmap - Check if function body uses HashMap
- expr_
complexity - Estimate expression complexity (for optimization decisions)
- expr_
uses_ hashmap - Check if expression uses HashMap
- extract_
var_ name - Extract variable name from assign target
- is_
constant_ expr - Check if expression is a constant (can be evaluated at compile time)
- is_
primitive_ type - Check if type is a primitive (Copy) type
- is_
reference_ type - Check if type is a reference type
- is_
simple_ literal - Check if expression is a simple literal
- needs_
boxing - Check if type needs to be boxed (for recursive types)
- stmt_
uses_ hashmap - Check if statement uses HashMap
- uses_
hashmap - Check if a type uses HashMap