mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
revise pushing of recursive groups
This commit is contained in:
parent
bc44175bf9
commit
59187e3fd8
2 changed files with 34 additions and 45 deletions
|
@ -1980,6 +1980,8 @@ impl Declarations {
|
|||
}
|
||||
}
|
||||
|
||||
/// To store a recursive group in the vectors without nesting, we first push a "header"
|
||||
/// here, then push the definitions that are part of that recursive group
|
||||
pub fn push_recursive_group(&mut self, length: u16, cycle_mark: IllegalCycleMark) -> usize {
|
||||
let index = self.declarations.len();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue