mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
get basic wiring of a value through the compiler
This commit is contained in:
parent
5354637cec
commit
f4411afbbc
8 changed files with 22 additions and 5 deletions
|
@ -44,6 +44,7 @@ impl<'a> Formattable for Expr<'a> {
|
|||
| MalformedClosure
|
||||
| Tag(_)
|
||||
| OpaqueRef(_)
|
||||
| IngestedFile(_)
|
||||
| Crash => false,
|
||||
|
||||
// These expressions always have newlines
|
||||
|
@ -477,6 +478,7 @@ impl<'a> Formattable for Expr<'a> {
|
|||
}
|
||||
MalformedClosure => {}
|
||||
PrecedenceConflict { .. } => {}
|
||||
IngestedFile(_) => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -658,6 +658,7 @@ impl<'a> RemoveSpaces<'a> for Expr<'a> {
|
|||
is_negative,
|
||||
},
|
||||
Expr::Str(a) => Expr::Str(a.remove_spaces(arena)),
|
||||
Expr::IngestedFile(a) => Expr::Str(a.remove_spaces(arena)),
|
||||
Expr::RecordAccess(a, b) => Expr::RecordAccess(arena.alloc(a.remove_spaces(arena)), b),
|
||||
Expr::AccessorFunction(a) => Expr::AccessorFunction(a),
|
||||
Expr::TupleAccess(a, b) => Expr::TupleAccess(arena.alloc(a.remove_spaces(arena)), b),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue