From: Evan Nemerson Date: Wed, 11 Mar 2009 20:46:14 +0000 (-0700) Subject: vapigen: Bug 575098: Allow is_ref and is_out for delegate parameters X-Git-Tag: 0.6.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7409fe27f393af8164716e1f01a3c0cbdb59fab1;p=thirdparty%2Fvala.git vapigen: Bug 575098: Allow is_ref and is_out for delegate parameters --- diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 81d38eb83..c5a27a6d0 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -357,6 +357,14 @@ public class Vala.GIdlParser : CodeVisitor { } else if (eval (nv[1]) == "0") { show_param = true; } + } else if (nv[0] == "is_out") { + if (eval (nv[1]) == "1") { + p.direction = ParameterDirection.OUT; + } + } else if (nv[0] == "is_ref") { + if (eval (nv[1]) == "1") { + p.direction = ParameterDirection.REF; + } } else if (nv[0] == "takes_ownership") { if (eval (nv[1]) == "1") { param_type.value_owned = true;