]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Update parsing of alias element to 1.2 syntax
authorEvan Nemerson <evan@coeus-group.com>
Sun, 17 Oct 2010 20:41:31 +0000 (13:41 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 8 Nov 2010 09:43:20 +0000 (01:43 -0800)
vala/valagirparser.vala

index 83e01e8ae9343b9e69aed04387bd687c1d2595f8..950545dc865be54f8a5c42c32b5d6e9137fef924 100644 (file)
@@ -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;
        }