diff options
author | Jürg Billeter <j@bitron.ch> | 2009-04-14 19:24:33 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-04-14 19:24:33 +0200 |
commit | 1f2c6b36f57737042d01632142f4b8cc9eac26a2 (patch) | |
tree | b47a0d2da3acc783efff4cee5ef9be5b0bdeb3c9 /vala/valapropertyaccessor.vala | |
parent | 8ec934d773e4bb4e43463fe1455e037dcb26f49f (diff) | |
download | vala-1f2c6b36f57737042d01632142f4b8cc9eac26a2.tar.gz |
Support set accessors in internal VAPI properties
Fixes bug 545187.
Diffstat (limited to 'vala/valapropertyaccessor.vala')
-rw-r--r-- | vala/valapropertyaccessor.vala | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |