[vala/wip/girparser: 16/17] girparser: Allow to specify the base_type of an alias
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/girparser: 16/17] girparser: Allow to specify the base_type of an alias
- Date: Wed, 4 Jan 2017 15:07:30 +0000 (UTC)
commit 6690332b8c554f1eccbb6b53e242ffb79824d2af
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jan 4 16:03:09 2017 +0100
girparser: Allow to specify the base_type of an alias
vala/valagirparser.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index a4150fd..0c02eef 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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]