pub fn unit_table_uses_emit(
table: &UnitTable,
callees: Option<&HashMap<ExprId, Callee>>,
) -> boolExpand description
Events track, slice 0 (spine #936): does any handler in this unit emit?
The UnitTable-level analogue of emitter::commons_uses_emit, needed
because compose works from the project-wide UnitTable map, not a single
unit’s TypedCommons. It is
bynk_check::project_model::unit_table_uses_emit, which decides the
four emission gates here (the fan-out DO, the dispatchToEventsFanout
import, the EVENTS_FANOUT binding and the __eventsDispatch field) and
whether a bundle has a composition root for the
bynk.capability.not_provided check, which the editor runs too. One
predicate, so the check and the emitter cannot disagree.
emitter::block_uses_emit — the per-handler twin deciding
emit_service/emit_agent’s own deps.__eventsDispatch parameter
threading — reads the same resolved Callee
(1204_events_emit_shadowed_by_local_type), so the two stay in
agreement on every input.