summaryrefslogtreecommitdiff
path: root/vala/valathrowstatement.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-11-14 18:22:29 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-11-14 18:22:29 +0000
commit08fe68bb64ae76c619bce587ac701ccd726ce6dc (patch)
tree74616d962574205455d1c77be03c26c4759f5324 /vala/valathrowstatement.vala
parent773507ce6043e1e05f7fccceaf01723b1dbe81de (diff)
downloadvala-08fe68bb64ae76c619bce587ac701ccd726ce6dc.tar.gz
Report use of possibly uninitialized variables, fixes bug 508477 and bug
2008-11-14 Jürg Billeter <j@bitron.ch> * vala/Makefile.am: * vala/valaassignment.vala: * vala/valabasicblock.vala: * vala/valabinaryexpression.vala: * vala/valacastexpression.vala: * vala/valacatchclause.vala: * vala/valacodenode.vala: * vala/valadeclarationstatement.vala: * vala/valaelementaccess.vala: * vala/valaexpressionstatement.vala: * vala/valaflowanalyzer.vala: * vala/valaforeachstatement.vala: * vala/valainvocationexpression.vala: * vala/valamemberaccess.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valaphifunction.vala: * vala/valapointerindirection.vala: * vala/valareferencetransferexpression.vala: * vala/valareturnstatement.vala: * vala/valathrowstatement.vala: * vala/valaunaryexpression.vala: * compiler/valacompiler.vala: Report use of possibly uninitialized variables, fixes bug 508477 and bug 556861 svn path=/trunk/; revision=2018
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r--vala/valathrowstatement.vala10
1 files changed, 9 insertions, 1 deletions
diff --git a/vala/valathrowstatement.vala b/vala/valathrowstatement.vala
index 3f27778db..3732b1135 100644
--- a/vala/valathrowstatement.vala
+++ b/vala/valathrowstatement.vala
@@ -20,7 +20,7 @@
* Jürg Billeter <j@bitron.ch>
*/
-using GLib;
+using Gee;
/**
* Represents a throw statement in the source code.
@@ -94,4 +94,12 @@ public class Vala.ThrowStatement : CodeNode, Statement {
return !error;
}
+
+ public override void get_defined_variables (Collection<LocalVariable> collection) {
+ error_expression.get_defined_variables (collection);
+ }
+
+ public override void get_used_variables (Collection<LocalVariable> collection) {
+ error_expression.get_used_variables (collection);
+ }
}