[vala/switch-to-gir: 33/36] girparser: Update parsing of alias element to 1.2 syntax



commit bc35bf42e05a57d0eba614c83c1d9b8b59df0d54
Author: Evan Nemerson <evan coeus-group com>
Date:   Sun Oct 17 13:41:31 2010 -0700

    girparser: Update parsing of alias element to 1.2 syntax

 vala/valagirparser.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 7a36dfc..583b2e4 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1423,9 +1423,11 @@ public class Vala.GirParser : CodeVisitor {
 		var alias = new Alias ();
 		alias.source_reference = get_current_src ();
 		alias.name = reader.get_attribute ("name");
-		alias.base_type = element_get_type (parse_type_from_gir_name (reader.get_attribute ("target")), true);
 		alias.parent_namespace = current_namespace;
 		next ();
+
+		alias.base_type = element_get_type (parse_type (null, null, true), true);
+
 		end_element ("alias");
 		return alias;
 	}



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