[vala/wip/effectfree: 4/40] Add get_defined_variables in PostfixExpression
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/effectfree: 4/40] Add get_defined_variables in PostfixExpression
- Date: Fri, 1 Jul 2011 11:56:15 +0000 (UTC)
commit 79206b14cea554cc8468b1ad34d2e7d566193ac9
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]