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

index 056b317652103156bc25fcbb3a01e84aa7051cbb..e12b5c4e1f38050564cf1c0f574c3f1f937e94b1 100644 (file)
@@ -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;