[vala/0.48] vala: Handle unlock() statement in CodeWriter
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] vala: Handle unlock() statement in CodeWriter
- Date: Sun, 5 Apr 2020 05:48:07 +0000 (UTC)
commit 7f26d94becdb5dca083c80906ca34c036aa75d58
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Mar 29 14:30:49 2020 +0200
vala: Handle unlock() statement in CodeWriter
vala/valacodewriter.vala | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 844fba8d4..f98b26fc5 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1165,6 +1165,14 @@ public class Vala.CodeWriter : CodeVisitor {
write_newline ();
}
+ public override void visit_unlock_statement (UnlockStatement stmt) {
+ write_indent ();
+ write_string ("unlock (");
+ stmt.resource.accept (this);
+ write_string (");");
+ write_newline ();
+ }
+
public override void visit_delete_statement (DeleteStatement stmt) {
write_indent ();
write_string ("delete ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]