[vala/0.48] codewriter: Append new-line for nested block statements
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] codewriter: Append new-line for nested block statements
- Date: Sun, 28 Feb 2021 17:26:25 +0000 (UTC)
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]