[vala] Added support for static properties in Genie parser
- From: Jamie McCracken <jamiemcc src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Added support for static properties in Genie parser
- Date: Mon, 13 Apr 2009 12:22:42 -0400 (EDT)
commit a849c7912fdb4622cdac9983c49648b4ee190ea6
Author: Jamie McCracken <jamiemcc gnome org>
Date: Mon Apr 13 12:24:00 2009 -0400
Added support for static properties in Genie parser
---
vala/valagenieparser.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index 53e79ae..cef9324 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -2742,6 +2742,12 @@ public class Vala.Genie.Parser : CodeVisitor {
}
set_attributes (prop, attrs);
+
+ if (ModifierFlags.STATIC in flags) {
+ prop.binding = MemberBinding.STATIC;
+ } else if (ModifierFlags.CLASS in flags) {
+ prop.binding = MemberBinding.CLASS;
+ }
if (ModifierFlags.ABSTRACT in flags) {
prop.is_abstract = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]