Skip to main content

merge_programs

Function merge_programs 

Source
pub fn merge_programs(graph: &ModuleGraph) -> Result<MirProgram, ModuleError>
Expand description

Merge multiple module ASTs into a single combined MIR program.

Processes modules in topological order (dependencies first). Symbols from non-entry modules are prefixed with module_path:: to avoid collisions.

Returns a merged MirProgram ready for execution.