]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Support set accessors in internal VAPI properties
authorJürg Billeter <j@bitron.ch>
Tue, 14 Apr 2009 17:24:33 +0000 (19:24 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 14 Apr 2009 17:24:33 +0000 (19:24 +0200)
Fixes bug 545187.

vala/valapropertyaccessor.vala

index 756ecd3c424c4fbb896dc0933fe45c59432baff6..de017c289a0f894e81ece32934fac12ca345d64a 100644 (file)
@@ -190,14 +190,14 @@ public class Vala.PropertyAccessor : CodeNode {
                                        body.add_statement (new ExpressionStatement (assignment));
                                }
                        }
+               }
 
-                       if (body != null && (writable || construction)) {
+               if (body != null) {
+                       if (writable || construction) {
                                value_parameter = new FormalParameter ("value", value_type, source_reference);
                                body.scope.add (value_parameter.name, value_parameter);
                        }
-               }
 
-               if (body != null) {
                        body.check (analyzer);
                }