Skip to main content

Module codegen_shim

Module codegen_shim 

Source
Expand description

Codegen Shim - pure logic separated from I/O

Extracts testable logic from codegen.rs

Structs§

ScopeTracker
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