feat: Update cyclic functions to be aware of being in a cycle.
Finish the creation of cyclic functions The last part is to update vars that call into a function in the cycle
This commit is contained in:
@@ -21,6 +21,10 @@ impl TreePath {
|
||||
TreePath { path: vec![] }
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.path.is_empty()
|
||||
}
|
||||
|
||||
pub fn push(&mut self, depth: usize, index: usize) {
|
||||
self.path.push((depth, index));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user