@@ -19,25 +19,26 @@ include
1919 end )
2020
2121module SubtypeToInputLanguage
22- (FA : Features. T
23- (* type loop = Features.Off.loop *)
24- (* and type for_loop = Features.Off.for_loop *)
25- (* and type for_index_loop = Features.Off.for_index_loop *)
26- (* and type state_passing_loop = Features.Off.state_passing_loop *)
27- (* and type continue = Features.Off.continue *)
28- (* and type break = Features.Off.break *)
29- (* and type mutable_variable = Features.Off.mutable_variable *)
30- (* and type mutable_reference = Features.Off.mutable_reference *)
31- (* and type mutable_pointer = Features.Off.mutable_pointer *)
32- (* and type reference = Features.Off.reference *)
33- (* and type slice = Features.Off.slice *)
34- (* and type raw_pointer = Features.Off.raw_pointer *)
35- with type early_exit = Features.On. early_exit
36- and type slice = Features.On. slice
37- and type question_mark = Features.On. question_mark
38- and type macro = Features.On. macro
39- and type quote = Features.On. quote
40- and type construct_base = Features.On. construct_base
22+ (FA :
23+ Features. T
24+ (* type loop = Features.Off.loop *)
25+ (* and type for_loop = Features.Off.for_loop *)
26+ (* and type for_index_loop = Features.Off.for_index_loop *)
27+ (* and type state_passing_loop = Features.Off.state_passing_loop *)
28+ (* and type continue = Features.Off.continue *)
29+ (* and type break = Features.Off.break *)
30+ (* and type mutable_variable = Features.Off.mutable_variable *)
31+ (* and type mutable_reference = Features.Off.mutable_reference *)
32+ (* and type mutable_pointer = Features.Off.mutable_pointer *)
33+ (* and type reference = Features.Off.reference *)
34+ (* and type slice = Features.Off.slice *)
35+ (* and type raw_pointer = Features.Off.raw_pointer *)
36+ with type early_exit = Features.On. early_exit
37+ and type slice = Features.On. slice
38+ and type question_mark = Features.On. question_mark
39+ and type macro = Features.On. macro
40+ and type quote = Features.On. quote
41+ and type construct_base = Features.On. construct_base
4142(* and type as_pattern = Features.Off.as_pattern *)
4243(* and type nontrivial_lhs = Features.Off.nontrivial_lhs *)
4344(* and type arbitrary_lhs = Features.Off.arbitrary_lhs *)
@@ -179,7 +180,8 @@ module Make (Options : OPTS) : MAKE = struct
179180
180181 method pv_const name typ =
181182 string " const" ^^ space ^^ name ^^ colon ^^ space ^^ typ ^^ dot
182- (* * Print a ProVerif constant declaration of the given typ (provided as a document).*)
183+ (* * Print a ProVerif constant declaration of the given typ (provided as
184+ a document).*)
183185
184186 method pv_constructor ?(is_data = false ) ?(is_typeconverter = false )
185187 name arg_types typ =
@@ -252,8 +254,8 @@ module Make (Options : OPTS) : MAKE = struct
252254
253255 method typed_wildcard = print#wildcard ^^ string " : bitstring"
254256
255- method tuple_elem_pat'
256- : Deprecated_generic_printer_base. par_state -> pat' fn =
257+ method tuple_elem_pat' :
258+ Deprecated_generic_printer_base. par_state -> pat' fn =
257259 fun ctx ->
258260 let wrap_parens =
259261 group
@@ -266,8 +268,8 @@ module Make (Options : OPTS) : MAKE = struct
266268 p ^^ colon ^^ space ^^ print#ty ctx typ
267269 | p -> print#pat' ctx p
268270
269- method tuple_elem_pat
270- : Deprecated_generic_printer_base. par_state -> pat fn =
271+ method tuple_elem_pat :
272+ Deprecated_generic_printer_base. par_state -> pat fn =
271273 fun ctx { p; span; _ } ->
272274 print#with_span ~span (fun _ -> print#tuple_elem_pat' ctx p)
273275
@@ -657,12 +659,12 @@ module Make (Options : OPTS) : MAKE = struct
657659 ^^ underscore ^^ underscore
658660 ^^ print#name_of_concrete_ident id
659661
660- method! doc_construct_inductive
661- : is_record:bool ->
662- is_struct:bool ->
663- constructor:concrete_ident ->
664- base:document option ->
665- (global_ident * document) list fn =
662+ method! doc_construct_inductive :
663+ is_record:bool ->
664+ is_struct:bool ->
665+ constructor:concrete_ident ->
666+ base:document option ->
667+ (global_ident * document) list fn =
666668 fun ~is_record ~is_struct :_ ~constructor ~base :_ args ->
667669 if is_record then
668670 print#concrete_ident constructor
0 commit comments