]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix handling of numeric types in symbol resolver
authorJürg Billeter <j@bitron.ch>
Tue, 5 May 2009 21:20:27 +0000 (23:20 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 5 May 2009 21:24:51 +0000 (23:24 +0200)
vala/valasymbolresolver.vala

index d77c77aac8acf944cd172b3c0b5d8cf01f8f28b6..f5be4211f782b8e3bb037d38ad5c749084bc65b4 100644 (file)
@@ -289,11 +289,12 @@ public class Vala.SymbolResolver : CodeVisitor {
                                type = new ObjectType ((Interface) sym);
                        } else if (sym is Struct) {
                                var st = (Struct) sym;
-                               if (st.is_boolean_type ()) {
+                               // attributes are not processed yet, access them directly
+                               if (st.get_attribute ("BooleanType") != null) {
                                        type = new BooleanType (st);
-                               } else if (st.is_integer_type ()) {
+                               } else if (st.get_attribute ("IntegerType") != null) {
                                        type = new IntegerType (st);
-                               } else if (st.is_floating_type ()) {
+                               } else if (st.get_attribute ("FloatingType") != null) {
                                        type = new FloatingType (st);
                                } else {
                                        type = new StructValueType (st);