[vala] vapigen: support type_arguments for signal/delegate return types
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vapigen: support type_arguments for signal/delegate return types
- Date: Mon, 19 Apr 2010 10:13:03 +0000 (UTC)
commit 340285aec53d822d176443bff444c1919ce70374
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Mon Apr 19 02:43:25 2010 -0700
vapigen: support type_arguments for signal/delegate return types
Fixes bug 615837.
vapigen/valagidlparser.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index a309e9e..3f25d23 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -305,6 +305,11 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "1") {
return_type.value_owned = true;
}
+ } else if (nv[0] == "type_arguments") {
+ var type_args = eval (nv[1]).split (",");
+ foreach (string type_arg in type_args) {
+ return_type.add_type_argument (get_type_from_string (type_arg));
+ }
} else if (nv[0] == "instance_pos") {
cb.cinstance_parameter_position = eval (nv[1]).to_double ();
}
@@ -2248,6 +2253,11 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "1") {
sig.return_type.value_owned = true;
}
+ } else if (nv[0] == "type_arguments") {
+ var type_args = eval (nv[1]).split (",");
+ foreach (string type_arg in type_args) {
+ sig.return_type.add_type_argument (get_type_from_string (type_arg));
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]