[vala] Fix declaration order of interfaces and field types



commit 83d0ac174e4b8bf24f4263689c6e6576231226d1
Author: Ali Sabil <ali sabil gmail com>
Date:   Mon Apr 6 16:20:11 2009 +0200

    Fix declaration order of interfaces and field types
---
 gobject/valagtypemodule.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gobject/valagtypemodule.vala b/gobject/valagtypemodule.vala
index 4e13ccc..e10e953 100644
--- a/gobject/valagtypemodule.vala
+++ b/gobject/valagtypemodule.vala
@@ -65,11 +65,6 @@ internal class Vala.GTypeModule : GErrorModule {
 
 		type_struct.add_field ("GTypeInterface", "parent_iface");
 
-		if (iface.source_reference.comment != null) {
-			decl_space.add_type_definition (new CCodeComment (iface.source_reference.comment));
-		}
-		decl_space.add_type_definition (type_struct);
-
 		foreach (Method m in iface.get_methods ()) {
 			if ((!m.is_abstract && !m.is_virtual) || m.coroutine) {
 				continue;
@@ -128,6 +123,11 @@ internal class Vala.GTypeModule : GErrorModule {
 			}
 		}
 
+		if (iface.source_reference.comment != null) {
+			decl_space.add_type_definition (new CCodeComment (iface.source_reference.comment));
+		}
+		decl_space.add_type_definition (type_struct);
+
 		var type_fun = new InterfaceRegisterFunction (iface, context);
 		type_fun.init_from_type ();
 		decl_space.add_type_member_declaration (type_fun.get_declaration ());



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