mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
also sort by stack size
This commit is contained in:
parent
3ca2140b69
commit
c09acb255c
2 changed files with 34 additions and 11 deletions
|
@ -926,6 +926,16 @@ impl RecordFields {
|
|||
field_types_start,
|
||||
}
|
||||
}
|
||||
#[inline(always)]
|
||||
pub fn unsorted_iterator<'a>(
|
||||
&'a self,
|
||||
subs: &'a Subs,
|
||||
ext: Variable,
|
||||
) -> impl Iterator<Item = (&Lowercase, RecordField<Variable>)> + 'a {
|
||||
let (it, _) = crate::types::gather_fields_unsorted_iter(subs, *self, ext);
|
||||
|
||||
it
|
||||
}
|
||||
|
||||
/// Get a sorted iterator over the fields of this record type
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue