[vala/staging] vala: Add source_reference to local variable of catch-clause



commit 5d3cefe7015553c94dae67691a31d965fd185577
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Oct 23 13:46:34 2018 +0200

    vala: Add source_reference to local variable of catch-clause

 vala/valacatchclause.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valacatchclause.vala b/vala/valacatchclause.vala
index bb8d73cb2..1ff942116 100644
--- a/vala/valacatchclause.vala
+++ b/vala/valacatchclause.vala
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]