[vala/wip/effectfree: 6/38] Set parent_node of the postfix inner expression



commit 7dd12f7407c2061d3cadc7a356bfed52feb90a24
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 15 15:07:15 2011 +0200

    Set parent_node of the postfix inner expression

 vala/valapostfixexpression.vala |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/vala/valapostfixexpression.vala b/vala/valapostfixexpression.vala
index 3fe8900..9ac0113 100644
--- a/vala/valapostfixexpression.vala
+++ b/vala/valapostfixexpression.vala
@@ -29,13 +29,21 @@ public class Vala.PostfixExpression : Expression {
 	/**
 	 * The operand, must be a variable or a property.
 	 */
-	public Expression inner { get; set; }
+	public Expression inner {
+		get { return _inner; }
+		set {
+			_inner = value;
+			_inner.parent_node = this;
+		}
+	}
 	
 	/**
 	 * Specifies whether value should be incremented or decremented.
 	 */
 	public bool increment { get; set; }
 
+	private Expression _inner;
+
 	/**
 	 * Creates a new postfix expression.
 	 *



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