[vala/wip/effectfree: 4/38] Add get_defined_variables in PostfixExpression
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/effectfree: 4/38] Add get_defined_variables in PostfixExpression
- Date: Sun, 19 Jun 2011 14:54:09 +0000 (UTC)
commit 2546bdd9ab7f1da8fe5612ca81d7ee26b9be5104
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Jun 15 13:30:49 2011 +0200
Add get_defined_variables in PostfixExpression
vala/valapostfixexpression.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vala/valapostfixexpression.vala b/vala/valapostfixexpression.vala
index 37745c3..3fe8900 100644
--- a/vala/valapostfixexpression.vala
+++ b/vala/valapostfixexpression.vala
@@ -64,6 +64,14 @@ public class Vala.PostfixExpression : Expression {
return false;
}
+ public override void get_defined_variables (Collection<LocalVariable> collection) {
+ inner.get_defined_variables (collection);
+ var local = inner.symbol_reference as LocalVariable;
+ if (local != null) {
+ collection.add (local);
+ }
+ }
+
public override void get_used_variables (Collection<LocalVariable> collection) {
inner.get_used_variables (collection);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]