Promises can have a second type, which is the progress type
parse_type(ls));
pop_type(ls);
}
+ else if(tpid == KW_promise && test_next(ls, ','))
+ {
+ def->subtypes = eina_list_append(def->subtypes,
+ parse_type(ls));
+ pop_type(ls);
+ }
check_match(ls, '>', '<', bline, bcol);
}
}
struct Generated_Promise_Data {};
typedef struct Generated_Promise_Data Generated_Promise_Data;
+static void _generated_promise_method_progress_type(Eo *obj EINA_UNUSED, Generated_Promise_Data *pd EINA_UNUSED,
+ Eina_Promise_Owner *promise1 EINA_UNUSED)
+{
+}
+
static Eina_Promise * _generated_promise_prop1_get(Eo *obj EINA_UNUSED, Generated_Promise_Data *pd EINA_UNUSED)
{
return NULL;
@inout promise1: promise<int>;
}
}
+ method_progress_type {
+ params {
+ @inout promise1: promise<int, double>;
+ }
+ }
method_multiple_args_1 {
params {
@inout promise1: promise<int>;