@@ -88,7 +88,7 @@ let process_attributes_rev (attrs : t) : attr_kind * t =
8888 (Uncurry attr, acc) (* TODO: warn unused/duplicated attribute *)
8989 | ("bs.this" | "this" ), (Nothing | Meth_callback _ ) ->
9090 (Meth_callback attr, acc)
91- | ( "bs. meth" | "meth" ) , (Nothing | Method _ ) -> (Method attr, acc)
91+ | " meth" , (Nothing | Method _ ) -> (Method attr, acc)
9292 | ("bs" | "bs.this" | "this" ), _ ->
9393 Bs_syntaxerr. err loc Conflict_bs_bs_this_bs_meth
9494 | _ , _ -> (st, attr :: acc))
@@ -154,8 +154,7 @@ let rs_externals (attrs : t) pval_prim =
154154 || Ext_array. exists external_attrs (fun (x : string ) -> txt = x))
155155 || prims_to_be_encoded pval_prim
156156
157- let is_inline : attr -> bool =
158- fun ({txt} , _ ) -> txt = " bs.inline" || txt = " inline"
157+ let is_inline : attr -> bool = fun ({txt} , _ ) -> txt = " inline"
159158
160159let has_inline_payload (attrs : t ) = Ext_list. find_first attrs is_inline
161160
@@ -223,8 +222,8 @@ let iter_process_bs_string_int_unwrap_uncurry (attrs : t) =
223222 Ext_list. iter attrs (fun (({txt; loc = _ } , (payload : _ )) as attr ) ->
224223 match txt with
225224 | "bs.string" | "string" -> assign `String attr
226- | "bs.int" | " int" -> assign `Int attr
227- | "bs.ignore" | " ignore" -> assign `Ignore attr
225+ | "int" -> assign `Int attr
226+ | "ignore" -> assign `Ignore attr
228227 | "bs.unwrap" | "unwrap" -> assign `Unwrap attr
229228 | "bs.uncurry" | "uncurry" ->
230229 assign (`Uncurry (Ast_payload. is_single_int payload)) attr
0 commit comments