@@ -179,7 +179,7 @@ let process_derive_type (attrs : t) : derive_attr * t =
179179 st, attr::acc
180180 )
181181
182- let iter_process_derive_type (attrs : t ) =
182+ (* let iter_process_derive_type (attrs : t) =
183183 let st = ref {explict_nonrec = false; bs_deriving = None } in
184184 Ext_list.iter attrs
185185 (fun ({txt ; loc}, payload as attr) ->
@@ -203,7 +203,7 @@ let iter_process_derive_type (attrs : t) =
203203 (* non bs attribute, no need to mark its use *)
204204 | _ -> ()
205205 ) ;
206- ! st
206+ !st *)
207207
208208
209209(* duplicated [bs.uncurry] [bs.string] not allowed,
@@ -345,23 +345,17 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
345345 ! st
346346
347347let locg = Location. none
348- let bs : attr
349- = {txt = " bs" ; loc = locg}, Ast_payload. empty
348+ (* let bs : attr
349+ = {txt = "bs" ; loc = locg}, Ast_payload.empty *)
350350
351351let is_bs (attr : attr ) =
352352 match attr with
353353 | {Location. txt = "bs" ; _} , _ -> true
354354 | _ -> false
355355
356- let is_optional (attr : attr ) =
357- match attr with
358- | {Location. txt = "bs.optional" ; _} , _ -> true
359- | _ -> false
360356
361- let is_bs_as (attr : attr ) =
362- match attr with
363- | {Location. txt = "bs.as" ; _} , _ -> true
364- | _ -> false
357+
358+
365359
366360let bs_get : attr
367361 = {txt = " bs.get" ; loc = locg}, Ast_payload. empty
@@ -396,12 +390,3 @@ let bs_return_undefined : attr
396390 },[] )
397391 ; pstr_loc = locg}]
398392
399- let deprecated s : attr =
400- {txt = " ocaml.deprecated" ; loc = locg },
401- PStr
402- [
403- {pstr_desc =
404- Pstr_eval (
405- Ast_compatible. const_exp_string ~loc: locg s,
406- [] )
407- ; pstr_loc = locg}]
0 commit comments