mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-13 07:16:18 +00:00
add NullPointer to mono::ir::Expr
This commit is contained in:
parent
63cdd00d13
commit
09779f65ad
9 changed files with 28 additions and 3 deletions
|
@ -1878,6 +1878,7 @@ pub enum Expr<'a> {
|
|||
arguments: &'a [Symbol],
|
||||
},
|
||||
Struct(&'a [Symbol]),
|
||||
NullPointer,
|
||||
|
||||
StructAtIndex {
|
||||
index: u64,
|
||||
|
@ -2016,6 +2017,7 @@ impl<'a> Expr<'a> {
|
|||
.append(alloc.space())
|
||||
.append(alloc.intersperse(it, " "))
|
||||
}
|
||||
NullPointer => alloc.text("NullPointer"),
|
||||
Reuse {
|
||||
symbol,
|
||||
tag_id,
|
||||
|
@ -7462,6 +7464,8 @@ fn substitute_in_expr<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
NullPointer => None,
|
||||
|
||||
Reuse { .. } | Reset { .. } => unreachable!("reset/reuse have not been introduced yet"),
|
||||
|
||||
Struct(args) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue