[vala] girparser: Allow specifying type for property in metadata



commit e0d2efa66f44b2e952f313a9983f7eb9b42a5a3d
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed May 25 23:58:45 2011 +0200

    girparser: Allow specifying type for property in metadata

 vala/valagirparser.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index fa76ffe..dc7cfe7 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2325,6 +2325,7 @@ public class Vala.GirParser : CodeVisitor {
 		bool no_array_length;
 		bool array_null_terminated;
 		var type = parse_type (null, null, false, out no_array_length, out array_null_terminated);
+		type = element_get_type (type, true, ref no_array_length);
 		var prop = new Property (current.name, type, null, null, current.source_reference);
 		prop.access = SymbolAccessibility.PUBLIC;
 		prop.external = true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]