Pretty print field accesses and assignments

This commit is contained in:
Joscha 2022-11-20 23:50:53 +01:00
parent 81e2a28b06
commit 5bd43ee37a
3 changed files with 66 additions and 1 deletions

View file

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