get basic wiring of a value through the compiler

This commit is contained in:
Brendan Hansknecht 2023-03-22 22:26:02 -07:00
parent 5354637cec
commit f4411afbbc
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
8 changed files with 22 additions and 5 deletions

View file

@ -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(_) => {}
}
}
}

View file

@ -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),