Pretty print function calls

This commit is contained in:
Joscha 2022-11-20 23:45:28 +01:00
parent fc139c31f4
commit 81e2a28b06
3 changed files with 34 additions and 1 deletions

View file

@ -26,7 +26,7 @@ impl<'a, D: DocAllocator<'a>> Pretty<'a, D> for Expr {
fn pretty(self, allocator: &'a D) -> DocBuilder<'a, D> {
match self {
Self::Lit(lit) => lit.pretty(allocator),
Self::Call(call) => allocator.text("<call>"),
Self::Call(call) => call.pretty(allocator),
Self::Field(field) => allocator.text("<field>"),
Self::Var(var) => allocator.text("<var>"),
Self::TableConstr(constr) => constr.pretty(allocator),