mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Expr::FunctionPointer
This commit is contained in:
parent
55fa8098d3
commit
cf30f02e01
11 changed files with 176 additions and 5 deletions
|
@ -1097,7 +1097,7 @@ fn expr_contains_symbol(expr: &Expr, needle: Symbol) -> bool {
|
|||
Some(ru) => ru.symbol == needle || arguments.contains(&needle),
|
||||
},
|
||||
Expr::Struct(fields) => fields.contains(&needle),
|
||||
Expr::NullPointer => false,
|
||||
Expr::NullPointer | Expr::FunctionPointer { .. } => false,
|
||||
Expr::StructAtIndex { structure, .. }
|
||||
| Expr::GetTagId { structure, .. }
|
||||
| Expr::UnionAtIndex { structure, .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue