]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Added property attributes to Genie parser
authorJamie McCracken <jamiemcc gnome org>
Mon, 13 Apr 2009 16:12:22 +0000 (12:12 -0400)
committerJamie McCracken <jamiemcc gnome org>
Mon, 13 Apr 2009 16:12:22 +0000 (12:12 -0400)
vala/valagenieparser.vala

index 653320a14183fbe187557cabab2a916c64aac560..7c5925f351678ce62d3e7b109e492025f1617324 100644 (file)
@@ -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;
                                }
                        }