]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Add source_reference to local variable of catch-clause
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 23 Oct 2018 11:46:34 +0000 (13:46 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 23 Oct 2018 16:45:49 +0000 (18:45 +0200)
vala/valacatchclause.vala

index bb8d73cb2035926cc574bd980ee7a4961008b919..1ff94211620120701e6c1e06064ce048121a66f3 100644 (file)
@@ -129,7 +129,7 @@ public class Vala.CatchClause : CodeNode {
                        }
 
                        if (variable_name != null) {
-                               error_variable = new LocalVariable (error_type.copy (), variable_name);
+                               error_variable = new LocalVariable (error_type.copy (), variable_name, null, source_reference);
 
                                body.scope.add (variable_name, error_variable);
                                body.add_local_variable (error_variable);