Function preflight_resolved_hierarchy
pub fn preflight_resolved_hierarchy<I>(
source_byte_lengths: I,
alias_count: usize,
) -> Result<(), Diagnostic>where
I: IntoIterator<Item = usize>,Description
Validate the allocation footprint of one resolved hierarchy before source strings or alias records are copied into compiler-owned inputs.
This is the compiler-owned resource authority used by composition layers
that borrow source bundles. Passing this preflight does not replace the
structural and semantic checks in analyze_resolved_hierarchy.
ยงErrors
Returns a diagnostic when the source-unit count, alias count, one source length, aggregate source length, or a checked counter exceeds the compiler v1 hierarchy bounds.