pub fn reconstruct(
dependencies: &[&PackageDeclaration],
ta: &TypedAst,
usage: &DependencyUsage,
intrinsics: IntrinsicTypeIndices,
file: FileId,
types: &mut TypeSection,
next_type_idx: &mut u32,
imports: &mut ImportSection,
next_func_idx: &mut u32,
next_global_idx: &mut u32,
symbols: &mut SymbolTable,
) -> Result<BTreeMap<MangledName, ImportedClassLayout>, CompilerFailure>Expand description
Reconstruct every imported class reachable from this module: emit its rec
group, record type/slot indices, and import its functions. Returns the
resolved layout of each, keyed by mangled name, for classes::ClassPlan.