[vala/wip/attributes: 17/31] On-demand Symbol.deprecated_since
- From: Luca Bruno <lucabru src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [vala/wip/attributes: 17/31] On-demand Symbol.deprecated_since
 
- Date: Wed, 27 Jul 2011 18:31:38 +0000 (UTC)
 
commit a38df11bbd58de2c7abf0176c4d2930ab951b305
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Jul 7 15:46:42 2011 +0200
    On-demand Symbol.deprecated_since
 vala/valasymbol.vala |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala
index c19819a..a186b01 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");
 		}
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]