[vala/staging] codewriter: Append new-line for nested block statements
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codewriter: Append new-line for nested block statements
- Date: Mon, 25 Jan 2021 20:15:07 +0000 (UTC)
commit cc5a56e1959471d2a13011c4d407d336a261bf7c
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 cc2196347..0f624c010 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]