From: Jürg Billeter Date: Tue, 14 Apr 2009 17:24:33 +0000 (+0200) Subject: Support set accessors in internal VAPI properties X-Git-Tag: 0.7.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2c6b36f57737042d01632142f4b8cc9eac26a2;p=thirdparty%2Fvala.git Support set accessors in internal VAPI properties Fixes bug 545187. --- diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala index 756ecd3c4..de017c289 100644 --- a/vala/valapropertyaccessor.vala +++ b/vala/valapropertyaccessor.vala @@ -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); }