@@ -33,16 +33,20 @@ module Make = struct
33
33
inherit ['a] Misc_sections_visitor. folder
34
34
method fold_options_clause : (options_clause, 'a) fold = default
35
35
method fold_configuration_section : (configuration_section, 'a) fold = default
36
+ method fold_configuration_section' : (configuration_section with_loc, 'a) fold = default
36
37
method fold_special_names_paragraph : (special_names_paragraph, 'a) fold = default
37
38
method fold_special_names_clause : (special_names_clause, 'a) fold = default
38
39
method fold_special_names_clause' : (special_names_clause with_loc, 'a) fold = default
39
40
method fold_repository_paragraph : (repository_paragraph, 'a) fold = default
41
+ method fold_repository_paragraph' : (repository_paragraph with_loc, 'a) fold = default
40
42
method fold_specifier : (specifier, 'a) fold = default
41
43
method fold_expands : (expands, 'a) fold = default
42
44
method fold_select : (select, 'a) fold = default
43
45
method fold_select_clause : (select_clause, 'a) fold = default
44
46
method fold_file_control_paragraph : (file_control_paragraph, 'a) fold = default
47
+ method fold_file_control_paragraph' : (file_control_paragraph with_loc, 'a) fold = default
45
48
method fold_io_control_paragraph : (io_control_paragraph, 'a) fold = default
49
+ method fold_io_control_paragraph' : (io_control_paragraph with_loc, 'a) fold = default
46
50
method fold_io_control_entry : (io_control_entry, 'a) fold = default
47
51
method fold_rerun_clause : (rerun_clause, 'a) fold = default
48
52
method fold_rerun_frequency : (rerun_frequency, 'a) fold = default
@@ -51,6 +55,7 @@ module Make = struct
51
55
method fold_multiple_file_clause : (multiple_file_clause, 'a) fold = default
52
56
method fold_file_portion : (file_portion, 'a) fold = default
53
57
method fold_input_output_section : (input_output_section, 'a) fold = default
58
+ method fold_input_output_section' : (input_output_section with_loc, 'a) fold = default
54
59
method fold_alphabet_specification : (alphabet_specification, 'a) fold = default
55
60
end
56
61
@@ -77,6 +82,10 @@ module Make = struct
77
82
handle v#fold_file_control_paragraph
78
83
~continue: (fold_list ~fold: fold_select v)
79
84
85
+ let fold_file_control_paragraph' (v : _ #folder ) =
86
+ handle' v#fold_file_control_paragraph' v
87
+ ~fold: fold_file_control_paragraph
88
+
80
89
let fold_rerun_frequency (v : _ #folder ) =
81
90
handle v#fold_rerun_frequency
82
91
~continue: begin function
@@ -133,15 +142,23 @@ module Make = struct
133
142
handle v#fold_io_control_paragraph
134
143
~continue: (fold_option ~fold: fold_io_control_entry v)
135
144
145
+ let fold_io_control_paragraph' (v : _ #folder ) =
146
+ handle' v#fold_io_control_paragraph' v
147
+ ~fold: fold_io_control_paragraph
148
+
136
149
let fold_input_output_section (v : _ #folder ) =
137
150
handle v#fold_input_output_section
138
151
~continue: begin fun { file_control_paragraph; io_control_paragraph } x -> x
139
152
>> fold_option v file_control_paragraph
140
- ~fold: fold_file_control_paragraph
153
+ ~fold: fold_file_control_paragraph'
141
154
>> fold_option v io_control_paragraph
142
- ~fold: fold_io_control_paragraph
155
+ ~fold: fold_io_control_paragraph'
143
156
end
144
157
158
+ let fold_input_output_section' (v : _ #folder ) =
159
+ handle' v#fold_input_output_section' v
160
+ ~fold: fold_input_output_section
161
+
145
162
(* --- *)
146
163
147
164
let fold_informational_paragraphs (v : _ #folder ) =
@@ -189,6 +206,10 @@ module Make = struct
189
206
handle v#fold_repository_paragraph
190
207
~continue: (fold_list ~fold: fold_specifier v)
191
208
209
+ let fold_repository_paragraph' (v : _ #folder ) =
210
+ handle' v#fold_repository_paragraph' v
211
+ ~fold: fold_repository_paragraph
212
+
192
213
let fold_special_names_clause (v : _ #folder ) =
193
214
handle v#fold_special_names_clause
194
215
~continue: begin fun c x -> match c with
@@ -217,14 +238,18 @@ module Make = struct
217
238
ignore special_names_paragraph;
218
239
x
219
240
>> partial __LINE__ " fold_configuration_section"
220
- >> fold_option ~fold: fold_repository_paragraph v repository_paragraph
241
+ >> fold_option ~fold: fold_repository_paragraph' v repository_paragraph
221
242
end
222
243
244
+ let fold_configuration_section' (v : _ #folder ) =
245
+ handle' v#fold_configuration_section' v
246
+ ~fold: fold_configuration_section
247
+
223
248
let fold_environment_division (v : _ #folder ) =
224
249
handle v#fold_environment_division
225
250
~continue: begin fun { env_configuration; env_input_output } x -> x
226
- >> fold_option ~fold: fold_configuration_section v env_configuration
227
- >> fold_option ~fold: fold_input_output_section v env_input_output
251
+ >> fold_option ~fold: fold_configuration_section' v env_configuration
252
+ >> fold_option ~fold: fold_input_output_section' v env_input_output
228
253
end
229
254
230
255
let fold_alphabet_specification (v : _ #folder ) =
0 commit comments