mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
remove from_mutmap
This commit is contained in:
parent
7d51a6bca3
commit
26da66d73f
2 changed files with 16 additions and 14 deletions
|
@ -1498,6 +1498,16 @@ impl UnionTags {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn tag_without_arguments(subs: &mut Subs, tag_name: TagName) -> Self {
|
||||
subs.tag_names.push(tag_name);
|
||||
|
||||
Self {
|
||||
length: 1,
|
||||
tag_names_start: (subs.tag_names.len() - 1) as u32,
|
||||
variables_start: 0,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn insert_slices_into_subs<I>(subs: &mut Subs, input: I) -> Self
|
||||
where
|
||||
I: IntoIterator<Item = (TagName, VariableSubsSlice)>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue