@@ -19,25 +19,26 @@ include
19
19
end )
20
20
21
21
module 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
41
42
(* and type as_pattern = Features.Off.as_pattern *)
42
43
(* and type nontrivial_lhs = Features.Off.nontrivial_lhs *)
43
44
(* and type arbitrary_lhs = Features.Off.arbitrary_lhs *)
@@ -179,7 +180,8 @@ module Make (Options : OPTS) : MAKE = struct
179
180
180
181
method pv_const name typ =
181
182
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).*)
183
185
184
186
method pv_constructor ?(is_data = false ) ?(is_typeconverter = false )
185
187
name arg_types typ =
@@ -252,8 +254,8 @@ module Make (Options : OPTS) : MAKE = struct
252
254
253
255
method typed_wildcard = print#wildcard ^^ string " : bitstring"
254
256
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 =
257
259
fun ctx ->
258
260
let wrap_parens =
259
261
group
@@ -266,8 +268,8 @@ module Make (Options : OPTS) : MAKE = struct
266
268
p ^^ colon ^^ space ^^ print#ty ctx typ
267
269
| p -> print#pat' ctx p
268
270
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 =
271
273
fun ctx { p; span; _ } ->
272
274
print#with_span ~span (fun _ -> print#tuple_elem_pat' ctx p)
273
275
@@ -657,12 +659,12 @@ module Make (Options : OPTS) : MAKE = struct
657
659
^^ underscore ^^ underscore
658
660
^^ print#name_of_concrete_ident id
659
661
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 =
666
668
fun ~is_record ~is_struct :_ ~constructor ~base :_ args ->
667
669
if is_record then
668
670
print#concrete_ident constructor
0 commit comments