[vala/0.48] codewriter: Append new-line for nested block statements



commit a5f75ba50191611f3f98ebadbc9cd129824408d2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jan 25 21:11:55 2021 +0100

    codewriter: Append new-line for nested block statements

 vala/valacodewriter.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 1a6ca5691..24f204147 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -978,6 +978,9 @@ public class Vala.CodeWriter : CodeVisitor {
                }
 
                write_end_block ();
+               if (b.parent_node is Block) {
+                       write_newline ();
+               }
        }
 
        public override void visit_empty_statement (EmptyStatement stmt) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]