Pretty print table constructors

This commit is contained in:
Joscha 2022-11-20 23:41:39 +01:00
parent 412eaffc07
commit fc139c31f4
3 changed files with 44 additions and 1 deletions

View file

@ -29,7 +29,7 @@ impl<'a, D: DocAllocator<'a>> Pretty<'a, D> for Expr {
Self::Call(call) => allocator.text("<call>"),
Self::Field(field) => allocator.text("<field>"),
Self::Var(var) => allocator.text("<var>"),
Self::TableConstr(constr) => allocator.text("<constr>"),
Self::TableConstr(constr) => constr.pretty(allocator),
Self::TableDestr(destr) => allocator.text("<destr>"),
Self::FuncDef(def) => allocator.text("<def>"),
Self::Paren {