@@ -36,16 +36,16 @@ let to_method_callback loc (self : Bs_ast_mapper.mapper) label
3636 match Ast_attributes. process_attributes_rev body.pexp_attributes with
3737 | Nothing , attrs -> (
3838 match body.pexp_desc with
39- | Pexp_fun {arg_label; lhs = arg ; rhs = body } ->
39+ | Pexp_fun {arg_label; lhs = arg ; rhs = body ; async } ->
4040 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
4242 | _ -> (self.expr self body, acc))
4343 | _ , _ -> (self.expr self body, acc)
4444 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
4646 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)
4949 in
5050 let arity = List. length rev_extra_args in
5151 let arity_s = string_of_int arity in
0 commit comments