@@ -75,7 +75,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
7575 match fst (Ast_attributes. process_attributes_rev ty.ptyp_attributes) with
7676 | Meth_callback _ ->
7777 Ast_typ_uncurry. to_method_callback_type loc self ~arity ty
78- | Method _ -> Bs_ast_mapper. default_mapper.typ self ty
7978 | Nothing -> Bs_ast_mapper. default_mapper.typ self ty)
8079 | Ptyp_object (methods , closed_flag ) ->
8180 let ( +> ) attr (typ : Parsetree.core_type ) =
@@ -90,8 +89,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
9089 let attrs, core_type =
9190 match Ast_attributes. process_attributes_rev attrs with
9291 | Nothing , attrs -> (attrs, ty) (* #1678 *)
93- | Method _ , _ ->
94- Location. raise_errorf ~loc " %@get/set conflicts with %@meth"
9592 | Meth_callback attr , attrs -> (attrs, attr +> ty)
9693 in
9794 Ast_compatible. object_field name attrs (self.typ self core_type)
@@ -100,8 +97,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
10097 let attrs, core_type =
10198 match Ast_attributes. process_attributes_rev attrs with
10299 | Nothing , attrs -> (attrs, ty)
103- | Method _ , _ ->
104- Location. raise_errorf ~loc " %@get/set conflicts with %@meth"
105100 | Meth_callback attr , attrs -> (attrs, attr +> ty)
106101 in
107102 Ast_compatible. object_field name attrs
@@ -113,7 +108,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
113108 let attrs, core_type =
114109 match Ast_attributes. process_attributes_rev ptyp_attrs with
115110 | Nothing , attrs -> (attrs, ty)
116- | Method attr , attrs -> (attrs, attr +> ty)
117111 | Meth_callback attr , attrs -> (attrs, attr +> ty)
118112 in
119113 Ast_compatible. object_field label attrs (self.typ self core_type)
0 commit comments