[vala/0.36] 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.36] vala: Add source_reference to local variable of catch-clause
- Date: Sun, 28 Oct 2018 11:46:58 +0000 (UTC)
commit de857c9048145bbdf7bc1e76fb577deb906d2795
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 84e4ba340..dfc8e72ea 100644
--- a/vala/valacatchclause.vala
+++ b/vala/valacatchclause.vala
@@ -123,7 +123,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]