@@ -36,16 +36,16 @@ let to_method_callback loc (self : Bs_ast_mapper.mapper) label
36
36
match Ast_attributes. process_attributes_rev body.pexp_attributes with
37
37
| Nothing , attrs -> (
38
38
match body.pexp_desc with
39
- | Pexp_fun {arg_label; lhs = arg ; rhs = body } ->
39
+ | Pexp_fun {arg_label; lhs = arg ; rhs = body ; async } ->
40
40
Bs_syntaxerr. optional_err loc arg_label;
41
- aux ((arg_label, self.pat self arg, attrs) :: acc) body
41
+ aux ((arg_label, self.pat self arg, attrs, async ) :: acc) body
42
42
| _ -> (self.expr self body, acc))
43
43
| _ , _ -> (self.expr self body, acc)
44
44
in
45
- let result, rev_extra_args = aux [(label, self_pat, [] )] body in
45
+ let result, rev_extra_args = aux [(label, self_pat, [] , false )] body in
46
46
let body =
47
- Ext_list. fold_left rev_extra_args result (fun e (label , p , attrs ) ->
48
- Ast_helper.Exp. fun_ ~loc ~attrs ~arity: None label None p e)
47
+ Ext_list. fold_left rev_extra_args result (fun e (label , p , attrs , async ) ->
48
+ Ast_helper.Exp. fun_ ~loc ~attrs ~arity: None ~async label None p e)
49
49
in
50
50
let arity = List. length rev_extra_args in
51
51
let arity_s = string_of_int arity in
0 commit comments