[vala] Fix handling of numeric types in symbol resolver



commit 744e341fd2bad78e87b76b303f03599586f31f56
Author: Jürg Billeter <j bitron ch>
Date:   Tue May 5 23:20:27 2009 +0200

    Fix handling of numeric types in symbol resolver
---
 vala/valasymbolresolver.vala |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala
index d77c77a..f5be421 100644
--- a/vala/valasymbolresolver.vala
+++ b/vala/valasymbolresolver.vala
@@ -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);



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