Skip to content

Commit

Permalink
Pass id_map more
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed May 22, 2024
1 parent a94cde8 commit 4973fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/dijkstra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ pub(crate) fn mark_syntax<'a>(
.collect_vec()
);

populate_change_map(&route, change_map);
populate_change_map(&route, change_map, id_map);
Ok(())
}

Expand Down
1 change: 1 addition & 0 deletions src/diff/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ pub(crate) fn set_neighbours<'s, 'b>(
pub(crate) fn populate_change_map<'s, 'b>(
route: &[(Edge, &'b Vertex<'s, 'b>)],
change_map: &mut ChangeMap<'s>,
id_map: &DftHashMap<SyntaxId, &'s Syntax<'s>>,
) {
for (e, v) in route {
match e {
Expand Down

0 comments on commit 4973fd3

Please sign in to comment.