summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-11-13 23:55:14 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-11-14 15:29:04 +0100
commit5dd7f7789a76de5ef93d1b3cfd11682c925e8b3d (patch)
tree76c31a98ff3d391508d722ca136ba323df51d622
parentdec92cb1ab3e1f4cda796cd5efb703efbae51d98 (diff)
downloadvala-5dd7f7789a76de5ef93d1b3cfd11682c925e8b3d.tar.gz
vala: Make sure parent_symbol for special async parameters is available
-rw-r--r--vala/valamethod.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index d4771681a..5f8dce29a 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -1232,6 +1232,7 @@ public class Vala.Method : Subroutine, Callable {
callback_param.initializer.target_type = callback_type.copy ();
callback_param.set_attribute_double ("CCode", "pos", -1);
callback_param.set_attribute_double ("CCode", "delegate_target_pos", -0.9);
+ scope.add (null, callback_param);
async_begin_parameters.add (callback_param);
if (ellipsis != null) {
@@ -1255,6 +1256,7 @@ public class Vala.Method : Subroutine, Callable {
var result_param = new Parameter ("_res_", result_type);
result_param.set_attribute_double ("CCode", "pos", get_attribute_double ("CCode", "async_result_pos", 0.1));
+ scope.add (null, result_param);
async_end_parameters.add (result_param);
foreach (var param in parameters) {