[vala/wip/effectfree: 6/15] Set parent_node of the postfix inner expression
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/effectfree: 6/15] Set parent_node of the postfix inner expression
- Date: Fri, 17 Jun 2011 13:11:15 +0000 (UTC)
commit 0ccc196ccbaa15b3583b6eca4b0cdb1df71076a5
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]