]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Support alias syntax used in GIR version 1.2
authorJürg Billeter <j@bitron.ch>
Mon, 13 Sep 2010 18:54:19 +0000 (20:54 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 15 Sep 2010 19:31:24 +0000 (21:31 +0200)
vala/valagirparser.vala

index 5b6f54f6c83a0068c23f8aecfbf54d5defa0da86..f213b4da4763a3923ee556e189bfb2db77d90491 100644 (file)
@@ -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;
        }