pub fn phase_bundle_composition_unprovided(
target: BuildTarget,
parsed: &[ParsedFile],
groups: &BTreeMap<String, Vec<usize>>,
kinds: &BTreeMap<String, UnitKind>,
unit_consumes: &HashMap<String, Vec<String>>,
unit_consumes_aliases: &HashMap<String, HashMap<String, String>>,
unit_tables: &HashMap<String, UnitTable>,
unit_callees: &UnitCallees,
unit_flattened: &HashMap<String, HashMap<String, String>>,
errors: &mut ErrorSink,
)Expand description
On the bundle target a context’s required local capability may be left to
the host, which supplies it through __makeSurface(deps), but only while
the bundle has no composition root (composition_root_trigger):
composeApp builds the deps of every context it composes
(composed_in_bundle_root), so once a context brings a root in, a
capability with no provider is the Workers gap again. Raised at the
given rather than left to tsc against compose.ts
(bynk.codegen.tsc_failed). Called by the driver’s run_checks and by
crate::analysis, after the per-unit checks (it reads unit_callees),
and only on an otherwise-clean program: a unit that failed to check has no
callee map, and the root is only emitted for a clean one.