mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Generate refcounting helper procedures for tag unions
This commit is contained in:
parent
2465fe8528
commit
5d7b4018b7
3 changed files with 296 additions and 6 deletions
|
@ -32,6 +32,12 @@ enum HelperOp {
|
|||
Eq,
|
||||
}
|
||||
|
||||
impl HelperOp {
|
||||
fn is_decref(&self) -> bool {
|
||||
matches!(self, Self::DecRef(_))
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Specialization<'a> {
|
||||
op: HelperOp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue