[vala/wip/effectfree: 5/19] Set parent_node of the expression of delete statements
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/effectfree: 5/19] Set parent_node of the expression of delete statements
- Date: Sat, 18 Jun 2011 07:58:43 +0000 (UTC)
commit e5df2b5c08a239fe61e03e4d848a6c9276f9747c
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Jun 15 15:05:20 2011 +0200
Set parent_node of the expression of delete statements
vala/valadeletestatement.vala | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/vala/valadeletestatement.vala b/vala/valadeletestatement.vala
index 056b317..e12b5c4 100644
--- a/vala/valadeletestatement.vala
+++ b/vala/valadeletestatement.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]