]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Bug 575098: Allow is_ref and is_out for delegate parameters
authorEvan Nemerson <evan@coeus-group.com>
Wed, 11 Mar 2009 20:46:14 +0000 (13:46 -0700)
committerJürg Billeter <j@bitron.ch>
Thu, 26 Mar 2009 12:30:06 +0000 (13:30 +0100)
vapigen/valagidlparser.vala

index 81d38eb83b7c67cde95de41d2591d0d3f1aaa03f..c5a27a6d0d169e247e5123496034af984e2fc7da 100644 (file)
@@ -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;