Commit c5383d51 authored by Luca Bruno's avatar Luca Bruno

Support calling async methods with varargs

parent 00d0554a
......@@ -879,8 +879,11 @@ public class Vala.Method : Subroutine {
var glib_ns = CodeContext.get ().root.scope.lookup ("GLib");
var params = new ArrayList<Parameter> ();
Parameter ellipsis = null;
foreach (var param in parameters) {
if (param.direction == ParameterDirection.IN) {
if (param.ellipsis) {
ellipsis = param;
} else if (param.direction == ParameterDirection.IN) {
params.add (param);
}
}
......@@ -897,6 +900,10 @@ public class Vala.Method : Subroutine {
params.add (callback_param);
if (ellipsis != null) {
params.add (ellipsis);
}
return params;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment