pub fn visible_consts<'a>(
table: &'a UnitTable,
uses: &'a [String],
used_table: impl Fn(&str) -> Option<&'a UnitTable>,
) -> HashMap<String, VisibleConst<'a>>Expand description
#2967: the constants compose_unit_consts composes, from a unit’s own
table, its uses and a lookup of the used units’ tables, each with its
owner. The project phases that run before UnitInfo is assembled
(project_model::phase_workers_ws_open_key) and the Workers emitter read
the same set through this, so the checker and the emitter agree on which
names are constants.