From: Jamie McCracken Date: Mon, 13 Apr 2009 16:12:22 +0000 (-0400) Subject: Added property attributes to Genie parser X-Git-Tag: 0.7.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc712e944d5a5ce086546fa77092020ce5a730a8;p=thirdparty%2Fvala.git Added property attributes to Genie parser --- diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala index 653320a14..7c5925f35 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; } }