[vala] girparser: Mark bitfield to be Flags



commit dfded94ee153e82aab83a31cb2a771bf329401fb
Author: Luca Bruno <lucabru src gnome org>
Date:   Tue Dec 28 19:19:23 2010 +0100

    girparser: Mark bitfield to be Flags

 vala/valagirparser.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 53de7c1..60cc49e 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1707,6 +1707,8 @@ public class Vala.GirParser : CodeVisitor {
 		start_element ("bitfield");
 		var en = new Enum (reader.get_attribute ("name"), get_current_src ());
 		en.access = SymbolAccessibility.PUBLIC;
+		en.is_flags = true;
+
 		next ();
 		var old_symbol = current_symbol;
 		current_symbol = en;



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