Fix: Variable Declaration with initialization not correctly pretty printed

This commit is contained in:
Marvin Kaiser
2019-12-18 10:37:05 +01:00
parent 9f68e6b8d1
commit 3f2987074d

View File

@@ -158,7 +158,8 @@ public class PrettyPrintVisitor implements Visitor<Void> {
ex.write("let " + e.name);
if (e.expression != null) {
ex.write(" = " + e.expression.welcome(this));
ex.write(" = ");
e.expression.welcome(this);
}
ex.write(";");