[vala/wip/effectfree: 5/33] Set parent_node of the expression of delete statements



commit 9e30b3aa5df3320dd48093fe700704830428fbbf
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 15 15:05:20 2011 +0200

    Set parent_node of the expression of delete statements

 vala/valadeletestatement.vala |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/vala/valadeletestatement.vala b/vala/valadeletestatement.vala
index 056b317..e12b5c4 100644
--- a/vala/valadeletestatement.vala
+++ b/vala/valadeletestatement.vala
@@ -27,7 +27,15 @@ public class Vala.DeleteStatement : CodeNode, Statement {
 	/**
 	 * Expression representing the instance to be freed.
 	 */
-	public Expression expression { get; set; }
+	public Expression expression {
+		get { return _expression; }
+		set {
+			_expression = value;
+			_expression.parent_node = this;
+		}
+	}
+
+	private Expression _expression;
 
 	public DeleteStatement (Expression expression, SourceReference? source_reference = null) {
 		this.expression = expression;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]