]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Set parent_node of the postfix inner expression
authorLuca Bruno <lucabru@src.gnome.org>
Wed, 15 Jun 2011 13:07:15 +0000 (15:07 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 6 Jul 2011 20:32:27 +0000 (22:32 +0200)
vala/valapostfixexpression.vala

index 3fe89002a8335f12d86f144bde4ef7c85cbaf612..9ac0113d001baa8a4e05b46c07f9c63b15139b19 100644 (file)
@@ -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.
         *