[vala] girparser: Handle the abstract attribute of the gir for classes



commit f5b38fcd3b7cf23c1b630e93736ceeae118a608a
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Jul 17 20:31:03 2011 +0200

    girparser: Handle the abstract attribute of the gir for classes

 vala/valagirparser.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 044f2d4..8495ab2 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2207,6 +2207,7 @@ public class Vala.GirParser : CodeVisitor {
 			if (metadata.has_argument (ArgumentType.CPREFIX)) {
 				cl.set_lower_case_cprefix (metadata.get_string (ArgumentType.CPREFIX));
 			}
+			cl.is_abstract = reader.get_attribute ("abstract") == "1";
 
 			if (parent != null) {
 				cl.add_base_type (parse_type_from_gir_name (parent));



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