Fix: Variable Declaration with initialization not correctly pretty printed
This commit is contained in:
@@ -158,7 +158,8 @@ public class PrettyPrintVisitor implements Visitor<Void> {
|
|||||||
ex.write("let " + e.name);
|
ex.write("let " + e.name);
|
||||||
|
|
||||||
if (e.expression != null) {
|
if (e.expression != null) {
|
||||||
ex.write(" = " + e.expression.welcome(this));
|
ex.write(" = ");
|
||||||
|
e.expression.welcome(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
ex.write(";");
|
ex.write(";");
|
||||||
|
|||||||
Reference in New Issue
Block a user