[vala] codewriter: Write type parameters for struct declaration



commit 1dd69762c6a3447735b2b1686b212eac40e9b241
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Aug 17 09:15:21 2011 +0200

    codewriter: Write type parameters for struct declaration
    
    Based on patch by Andre Masella.
    
    Fixes bug 656708.

 vala/valacodewriter.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 3a849e0..f79c2af 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -291,6 +291,8 @@ public class Vala.CodeWriter : CodeVisitor {
 		write_string ("struct ");
 		write_identifier (st.name);
 
+		write_type_parameters (st.get_type_parameters ());
+
 		if (st.base_type != null) {
 			write_string (" : ");
 			write_type (st.base_type);



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