From: Rico Tzschichholz Date: Sun, 29 Mar 2020 12:30:49 +0000 (+0200) Subject: vala: Handle unlock() statement in CodeWriter X-Git-Tag: 0.49.1~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762887dc8bcc3565402d9231a32f451c9498a6b3;p=thirdparty%2Fvala.git vala: Handle unlock() statement in CodeWriter --- 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 ");