From: Rico Tzschichholz Date: Wed, 4 Jan 2017 15:03:09 +0000 (+0100) Subject: girparser: Allow to specify the base_type of an alias X-Git-Tag: 0.35.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6690332b8c554f1eccbb6b53e242ffb79824d2af;p=thirdparty%2Fvala.git girparser: Allow to specify the base_type of an alias --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index a4150fd98..0c02eef16 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -2179,6 +2179,10 @@ public class Vala.GirParser : CodeVisitor { bool array_null_terminated = false; current.base_type = element_get_type (parse_type (null, null, true), true, ref no_array_length, ref array_null_terminated); + if (metadata.has_argument (ArgumentType.BASE_TYPE)) { + current.base_type = parse_type_from_string (metadata.get_string (ArgumentType.BASE_TYPE), true, metadata.get_source_reference (ArgumentType.BASE_TYPE)); + } + pop_node (); end_element ("alias"); }