(&self)
| 50 | |
| 51 | impl WithEndNodes for TestGraph { |
| 52 | fn end_nodes(&self) -> Vec<usize> { |
| 53 | let mut result = vec![]; |
| 54 | for node in rustc_data_structures::graph::depth_first_search(self, self.start_node()) { |
| 55 | if self.successors(node).count() == 0 { |
| 56 | result.push(node); |
| 57 | } |
| 58 | } |
| 59 | result.reverse(); |
| 60 | result |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | impl Predecessors for TestGraph { |
nothing calls this directly
no test coverage detected