[vala/wip/effectfree: 8/43] 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: 8/43] Set parent_node of the postfix inner expression
- Date: Tue, 5 Jul 2011 21:53:15 +0000 (UTC)
commit 4b730a2cec8c18a6d3d7ae7e8dc41c97dd410974
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]