]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Accept method call children
authorLuca Bruno <luca.bruno@immobiliare.it>
Mon, 3 Feb 2014 12:03:21 +0000 (13:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 1 Apr 2020 08:17:51 +0000 (10:17 +0200)
codegen/valaccodetransformer.vala

index 56578683ac8a66f1a20e44a5978b34430d88f918..ac938907a1a2356a35b675471d9fac49090026bf 100644 (file)
@@ -222,8 +222,11 @@ public class Vala.CCodeTransformer : CodeTransformer {
                                var replacement = return_temp_access (local, expr.value_type, target_type, formal_target_type);
 
                                end_replace_expression (replacement);
+                               return;
                        }
                }
+
+               expr.accept_children (this);
        }
 
        public override void visit_conditional_expression (ConditionalExpression expr) {
@@ -341,8 +344,11 @@ public class Vala.CCodeTransformer : CodeTransformer {
                                var replacement = return_temp_access (local, expr.value_type, target_type, formal_target_type);
 
                                end_replace_expression (replacement);
+                               return;
                        }
                }
+
+               expr.accept_children (this);
        }
 
        public override void visit_template (Template expr) {