Add back in root().
This commit is contained in:
1 parent
9b0fe183e0
commit
465d94b6ad
1 file changed
+6
@@ -49,6 +49,12 @@ impl DiagnosticGraph {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the root key.
|
||||||
|
/// Needed to do searches in the graph outside of this crate.
|
||||||
|
pub fn root(&self) -> limbo_graph::Key {
|
||||||
|
self.graph.root_key()
|
||||||
|
}
|
||||||
|
|
||||||
/// Get the value of a specific element of the graph.
|
/// Get the value of a specific element of the graph.
|
||||||
/// Will error if the key is not in the graph, or if the key
|
/// Will error if the key is not in the graph, or if the key
|
||||||
/// is the root, which doesn't have a value.
|
/// is the root, which doesn't have a value.
|
||||||
|
|||||||
Reference in new issue
Block a user