diff options
author | Juerg Billeter <j@bitron.ch> | 2008-02-05 21:24:48 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-02-05 21:24:48 +0000 |
commit | ad3b5414c24242e80d7facd1eb07fd3b5525e914 (patch) | |
tree | 31bebbbf8a4660f67d2056045abb45adcdadfab8 /vala/valaproperty.vala | |
parent | aa0e25aed22966967399cd41ea8f6c8ce7cb6b2d (diff) | |
download | vala-ad3b5414c24242e80d7facd1eb07fd3b5525e914.tar.gz |
support default values for properties, fixes bug 437434
2008-02-05 Juerg Billeter <j@bitron.ch>
* vala/parser.y, vala/valaclass.vala, vala/valaproperty.vala,
gobject/valaccodegeneratorinterface.vala: support default values
for properties, fixes bug 437434
svn path=/trunk/; revision=980
Diffstat (limited to 'vala/valaproperty.vala')
-rw-r--r-- | vala/valaproperty.vala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala index 9020a85c4..dbf0079fb 100644 --- a/vala/valaproperty.vala +++ b/vala/valaproperty.vala @@ -111,6 +111,11 @@ public class Vala.Property : Member, Lockable { public Property base_interface_property { get; set; } /** + * Specifies the default value of this property. + */ + public Expression default_expression { get; set; } + + /** * Nickname of this property. */ public string nick { @@ -177,6 +182,10 @@ public class Vala.Property : Member, Lockable { if (set_accessor != null) { set_accessor.accept (visitor); } + + if (default_expression != null) { + default_expression.accept (visitor); + } } /** |