[vala] vapigen: Bug 575098: Allow is_ref and is_out for delegate parameters



commit 7409fe27f393af8164716e1f01a3c0cbdb59fab1
Author: Evan Nemerson <evan coeus-group com>
Date:   Wed Mar 11 13:46:14 2009 -0700

    vapigen: Bug 575098: Allow is_ref and is_out for delegate parameters
---
 vapigen/valagidlparser.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 81d38eb..c5a27a6 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]