MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / end_nodes

Method end_nodes

src/analysis/controldep/tests.rs:52–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

50
51impl 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
64impl Predecessors for TestGraph {

Callers

nothing calls this directly

Calls 2

start_nodeMethod · 0.45
successorsMethod · 0.45

Tested by

no test coverage detected