Pretty print variable accesses and assignments

This commit is contained in:
Joscha 2022-11-21 00:02:10 +01:00
parent 5bd43ee37a
commit c7fc8584ff
3 changed files with 47 additions and 1 deletions

View file

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