[vala/0.40] vala: Handle unlock() statement in CodeWriter
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] vala: Handle unlock() statement in CodeWriter
- Date: Tue, 21 Apr 2020 07:48:13 +0000 (UTC)
commit 5949087fa00b112a070229f9043704fb226a4381
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 9e881b656..b2f07ca93 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1177,6 +1177,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]