Write out any aliases to the given target, including indirect aliases
(
w: &mut dyn Write,
aliases: &SecondaryMap<Value, Vec<Value>>,
target: Value,
indent: usize,
)
| 316 | |
| 317 | /// Write out any aliases to the given target, including indirect aliases |
| 318 | fn write_value_aliases( |
| 319 | w: &mut dyn Write, |
| 320 | aliases: &SecondaryMap<Value, Vec<Value>>, |
| 321 | target: Value, |
| 322 | indent: usize, |
| 323 | ) -> fmt::Result { |
| 324 | let mut todo_stack = vec![target]; |
| 325 | while let Some(target) = todo_stack.pop() { |
| 326 | for &a in &aliases[target] { |
| 327 | writeln!(w, "{1:0$}{2} -> {3}", indent, "", a, target)?; |
| 328 | todo_stack.push(a); |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | Ok(()) |
| 333 | } |
| 334 | |
| 335 | fn write_instruction( |
| 336 | w: &mut dyn Write, |
no test coverage detected