Populates `counts` with the number of uses of each local identifier in `expr`.
(
expr: &MirRelationExpr,
counts: &mut std::collections::BTreeMap<LocalId, usize>,
)
| 238 | |
| 239 | /// Populates `counts` with the number of uses of each local identifier in `expr`. |
| 240 | pub(super) fn count_local_id_uses( |
| 241 | expr: &MirRelationExpr, |
| 242 | counts: &mut std::collections::BTreeMap<LocalId, usize>, |
| 243 | ) { |
| 244 | for_local_id(expr, |i| *counts.entry(i).or_insert(0) += 1) |
| 245 | } |
| 246 | |
| 247 | /// Visit `LetRec` stages and determine and update type information for `Get` nodes. |
| 248 | /// |
no test coverage detected