We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a03879 commit 8ba3b79Copy full SHA for 8ba3b79
1 file changed
crates/oak_index/src/use_def_map.rs
@@ -285,6 +285,11 @@ impl UseDefMapBuilder {
285
/// created inside the body). Those new definitions are added to all
286
/// uses of that symbol from `first_use` onwards, which covers exactly
287
/// the uses recorded during the body.
288
+ ///
289
+ /// This runs after the body (not eagerly at each definition) because
290
+ /// the body may contain branches. A diff at the end captures the
291
+ /// converged state after all snapshot/restore/merge within the body
292
+ /// has resolved.
293
pub(crate) fn finish_loop_defs(&mut self, pre_loop: &FlowSnapshot, first_use: UseId) {
294
for i in 0..self.symbol_states.len() {
295
let symbol_id = SymbolId::new(i);
0 commit comments