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:
@@ -52,7 +52,7 @@ pub enum HoistableFunction {
|
||||
deps: Vec<(FunctionAccessKey, Variant)>,
|
||||
},
|
||||
Link((FunctionAccessKey, Variant)),
|
||||
CyclicLink((FunctionAccessKey, Variant)),
|
||||
CyclicLink(FunctionAccessKey),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
|
||||
|
||||
@@ -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