[vala] girwriter: Do not write generic type parameters
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girwriter: Do not write generic type parameters
- Date: Mon, 12 Jul 2010 18:04:17 +0000 (UTC)
commit 1797925133b7237cda8a95698bce68419c9b9057
Author: Jürg Billeter <j bitron ch>
Date: Mon Jul 12 20:03:12 2010 +0200
girwriter: Do not write generic type parameters
Fixes bug 624109.
codegen/valagirwriter.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 395c567..b01eb47 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -882,6 +882,10 @@ public class Vala.GIRWriter : CodeVisitor {
var deleg_type = (DelegateType) type;
write_indent ();
buffer.append_printf ("<type name=\"%s\" c:type=\"%s\"/>\n", gi_type_name (deleg_type.delegate_symbol), type.get_cname ());
+ } else if (type is GenericType) {
+ // generic type parameters not supported in GIR
+ write_indent ();
+ buffer.append ("<type name=\"any\" c:type=\"gpointer\"/>\n");
} else {
write_indent ();
buffer.append_printf ("<type name=\"%s\"/>\n", type.to_string ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]