diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-07-07 15:46:42 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2011-08-01 18:17:05 +0200 |
commit | dfe1ae71b17255646de0f2e705e764412a22d69c (patch) | |
tree | 98029152957379224d843c3fd1bf5ca90f9658cd /vala/valasymbol.vala | |
parent | 384c5607b79eba5695d796f5fe7f067a4845302b (diff) | |
download | vala-dfe1ae71b17255646de0f2e705e764412a22d69c.tar.gz |
On-demand Symbol.deprecated_since
Diffstat (limited to 'vala/valasymbol.vala')
-rw-r--r-- | vala/valasymbol.vala | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala index c19819aa8..a186b0125 100644 --- a/vala/valasymbol.vala +++ b/vala/valasymbol.vala @@ -98,7 +98,14 @@ public abstract class Vala.Symbol : CodeNode { /** * Specifies what version this symbol has been deprecated since. */ - public string? deprecated_since { get; set; default = null; } + public string? deprecated_since { + owned get { + return get_attribute_string ("Deprecated", "since"); + } + set { + set_attribute_string ("Deprecated", "since", value); + } + } /** * Specifies the replacement if this symbol has been deprecated. @@ -493,9 +500,6 @@ public abstract class Vala.Symbol : CodeNode { return; } - if (attr.has_argument ("since")) { - deprecated_since = attr.get_string ("since"); - } if (attr.has_argument ("replacement")) { replacement = attr.get_string ("replacement"); } |