mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Add mono Expr::ErasedMake
This commit is contained in:
parent
3e3d3cc7f3
commit
2c838aa5c2
12 changed files with 162 additions and 12 deletions
|
@ -1109,6 +1109,9 @@ fn expr_contains_symbol(expr: &Expr, needle: Symbol) -> bool {
|
|||
Expr::EmptyArray => false,
|
||||
Expr::Reset { symbol, .. } | Expr::ResetRef { symbol, .. } => needle == *symbol,
|
||||
Expr::RuntimeErrorFunction(_) => false,
|
||||
Expr::ErasedMake { value, callee } => {
|
||||
value.map(|v| v == needle).unwrap_or(false) || needle == *callee
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue