[vala] Added property attributes to Genie parser



commit dc712e944d5a5ce086546fa77092020ce5a730a8
Author: Jamie McCracken <jamiemcc gnome org>
Date:   Mon Apr 13 12:12:22 2009 -0400

    Added property attributes to Genie parser
---
 vala/valagenieparser.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index 653320a..7c5925f 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -2756,7 +2756,7 @@ public class Vala.Genie.Parser : CodeVisitor {
 			expect (TokenType.INDENT);
 			while (current () != TokenType.DEDENT) {
 				var accessor_begin = get_location ();
-				parse_attributes ();
+				var attribs = parse_attributes ();
 
 				var value_type = type.copy ();
 				value_type.value_owned = false;
@@ -2770,6 +2770,7 @@ public class Vala.Genie.Parser : CodeVisitor {
 						block = parse_block ();
 					}
 					prop.get_accessor = new PropertyAccessor (true, false, false, type.copy (), block, get_src (accessor_begin));
+					set_attributes (prop.get_accessor, attribs);
 					prop.get_accessor.access = SymbolAccessibility.PUBLIC;
 				} else {
 					bool _construct = false;
@@ -2793,6 +2794,7 @@ public class Vala.Genie.Parser : CodeVisitor {
 						block = parse_block ();
 					}
 					prop.set_accessor = new PropertyAccessor (false, !readonly, _construct, value_type, block, get_src (accessor_begin));
+					set_attributes (prop.set_accessor, attribs);
 					prop.set_accessor.access = SymbolAccessibility.PUBLIC;
 				}
 			}



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