mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
remove Expr::FunctionPointer
This commit is contained in:
parent
3739f41cac
commit
16fe609464
5 changed files with 4 additions and 61 deletions
|
@ -1095,7 +1095,6 @@ pub enum Expr<'a> {
|
|||
Literal(Literal<'a>),
|
||||
|
||||
// Functions
|
||||
FunctionPointer(Symbol, Layout<'a>),
|
||||
Call(Call<'a>),
|
||||
|
||||
Tag {
|
||||
|
@ -1193,10 +1192,6 @@ impl<'a> Expr<'a> {
|
|||
match self {
|
||||
Literal(lit) => lit.to_doc(alloc),
|
||||
|
||||
FunctionPointer(symbol, _) => alloc
|
||||
.text("FunctionPointer ")
|
||||
.append(symbol_to_doc(alloc, *symbol)),
|
||||
|
||||
Call(call) => call.to_doc(alloc),
|
||||
|
||||
Tag {
|
||||
|
@ -5392,7 +5387,7 @@ fn substitute_in_expr<'a>(
|
|||
use Expr::*;
|
||||
|
||||
match expr {
|
||||
Literal(_) | FunctionPointer(_, _) | EmptyArray | RuntimeErrorFunction(_) => None,
|
||||
Literal(_) | EmptyArray | RuntimeErrorFunction(_) => None,
|
||||
|
||||
Call(call) => substitute_in_call(arena, call, subs).map(Expr::Call),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue