From: Luca Bruno Date: Thu, 7 Jul 2011 13:46:42 +0000 (+0200) Subject: On-demand Symbol.deprecated_since X-Git-Tag: 0.13.2~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfe1ae71b17255646de0f2e705e764412a22d69c;p=thirdparty%2Fvala.git On-demand Symbol.deprecated_since --- 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"); }