[vala] Write type parameters of generic methods in VAPI files
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Write type parameters of generic methods in VAPI files
- Date: Sat, 5 Sep 2009 17:29:37 +0000 (UTC)
commit 79d362d521c7b8156a17fe0f83771c7b0c5cccf8
Author: Jürg Billeter <j bitron ch>
Date: Sat Sep 5 19:05:24 2009 +0200
Write type parameters of generic methods in VAPI files
vala/valacodewriter.vala | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 164a25a..50ff64f 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -912,6 +912,22 @@ public class Vala.CodeWriter : CodeVisitor {
write_string (" ");
write_identifier (m.name);
+
+ var type_params = m.get_type_parameters ();
+ if (type_params.size > 0) {
+ write_string ("<");
+ bool first = true;
+ foreach (TypeParameter type_param in type_params) {
+ if (first) {
+ first = false;
+ } else {
+ write_string (",");
+ }
+ write_identifier (type_param.name);
+ }
+ write_string (">");
+ }
+
write_string (" ");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]