]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Implement get_*_variables() for ConditionalExpression 6c68de5e98f0231be41a8ba5ae130f8a2f1dc4b7
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 24 Oct 2018 12:51:17 +0000 (14:51 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 24 Oct 2018 12:51:17 +0000 (14:51 +0200)
vala/valaconditionalexpression.vala

index a0f0dbba75d2c7ee1692dab202bd9447dfba7f5b..ce1ee10adbb81333e1f318ad05ba15608caddfdf 100644 (file)
@@ -126,6 +126,18 @@ public class Vala.ConditionalExpression : Expression {
                }
        }
 
+       public override void get_defined_variables (Collection<Variable> collection) {
+               condition.get_defined_variables (collection);
+               true_expression.get_defined_variables (collection);
+               false_expression.get_defined_variables (collection);
+       }
+
+       public override void get_used_variables (Collection<Variable> collection) {
+               condition.get_used_variables (collection);
+               true_expression.get_used_variables (collection);
+               false_expression.get_used_variables (collection);
+       }
+
        public override bool check (CodeContext context) {
                if (checked) {
                        return !error;