[vala/0.42] vala: Add source_reference to local variable of catch-clause
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] vala: Add source_reference to local variable of catch-clause
- Date: Sat, 27 Oct 2018 21:12:07 +0000 (UTC)
commit 0b63e2e83b9b2931894043fd8ea39aa1a2de5916
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]