[vala/0.10-gir: 2/2] girparser: Support alias syntax used in GIR version 1.2



commit fc21a8a659bd98927747f93aefa3e330d347cfca
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 13 20:54:19 2010 +0200

    girparser: Support alias syntax used in GIR version 1.2

 vala/valagirparser.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 5b6f54f..f213b4d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -297,9 +297,11 @@ public class Vala.GirParser : CodeVisitor {
 		start_element ("alias");
 		var st = new Struct (reader.get_attribute ("name"), get_current_src ());
 		st.access = SymbolAccessibility.PUBLIC;
-		st.base_type = parse_type_from_name (reader.get_attribute ("target"));
 		st.external = true;
 		next ();
+
+		st.base_type = parse_type (null, null, true);
+
 		end_element ("alias");
 		return st;
 	}



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