[vala] Fix declaration order of classes and field types
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix declaration order of classes and field types
- Date: Sun, 5 Apr 2009 16:26:41 -0400 (EDT)
commit db086d961820326ee4468f0eecb7e3c4e172b7bf
Author: Jürg Billeter <j bitron ch>
Date: Sun Apr 5 22:22:46 2009 +0200
Fix declaration order of classes and field types
---
gobject/valagobjectmodule.vala | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/gobject/valagobjectmodule.vala b/gobject/valagobjectmodule.vala
index 5214307..d6904ee 100644
--- a/gobject/valagobjectmodule.vala
+++ b/gobject/valagobjectmodule.vala
@@ -204,15 +204,6 @@ internal class Vala.GObjectModule : GTypeModule {
}
}
- if (cl.source_reference.comment != null) {
- decl_space.add_type_definition (new CCodeComment (cl.source_reference.comment));
- }
- decl_space.add_type_definition (instance_struct);
-
- if (is_gtypeinstance) {
- decl_space.add_type_definition (type_struct);
- }
-
foreach (Method m in cl.get_methods ()) {
generate_virtual_method_declaration (m, decl_space, type_struct);
}
@@ -292,6 +283,15 @@ internal class Vala.GObjectModule : GTypeModule {
type_struct.add_field (field_ctype, f.get_cname ());
}
}
+
+ if (cl.source_reference.comment != null) {
+ decl_space.add_type_definition (new CCodeComment (cl.source_reference.comment));
+ }
+ decl_space.add_type_definition (instance_struct);
+
+ if (is_gtypeinstance) {
+ decl_space.add_type_definition (type_struct);
+ }
}
public virtual void generate_virtual_method_declaration (Method m, CCodeDeclarationSpace decl_space, CCodeStruct type_struct) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]