Pretty print function definitions

This commit is contained in:
Joscha 2022-11-21 00:16:15 +01:00
parent c45a45f0b6
commit b3eaa40902
3 changed files with 100 additions and 1 deletions

View file

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