[vala] girparser: Update parsing of alias element to 1.2 syntax
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Update parsing of alias element to 1.2 syntax
- Date: Mon, 8 Nov 2010 10:04:25 +0000 (UTC)
commit 8a6402634b1d138667b5827eb584f702ddd693d0
Author: Evan Nemerson <evan coeus-group com>
Date: Sun Oct 17 13:41:31 2010 -0700
girparser: Update parsing of alias element to 1.2 syntax
vala/valagirparser.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 83e01e8..950545d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]