@@ -17,34 +17,34 @@ open Asttypes
17
17
open Typedtree
18
18
19
19
type iterator = {
20
- case : iterator -> case -> unit ;
21
- cases : iterator -> case list -> unit ;
22
- env : iterator -> Env .t -> unit ;
23
- expr : iterator -> expression -> unit ;
24
- extension_constructor : iterator -> extension_constructor -> unit ;
25
- module_binding : iterator -> module_binding -> unit ;
26
- module_coercion : iterator -> module_coercion -> unit ;
27
- module_declaration : iterator -> module_declaration -> unit ;
28
- module_expr : iterator -> module_expr -> unit ;
29
- module_type : iterator -> module_type -> unit ;
30
- module_type_declaration : iterator -> module_type_declaration -> unit ;
31
- package_type : iterator -> package_type -> unit ;
32
- pat : iterator -> pattern -> unit ;
33
- row_field : iterator -> row_field -> unit ;
34
- object_field : iterator -> object_field -> unit ;
35
- signature : iterator -> signature -> unit ;
36
- signature_item : iterator -> signature_item -> unit ;
37
- structure : iterator -> structure -> unit ;
38
- structure_item : iterator -> structure_item -> unit ;
39
- typ : iterator -> core_type -> unit ;
40
- type_declaration : iterator -> type_declaration -> unit ;
41
- type_declarations : iterator -> rec_flag * type_declaration list -> unit ;
42
- type_extension : iterator -> type_extension -> unit ;
43
- type_kind : iterator -> type_kind -> unit ;
44
- value_binding : iterator -> value_binding -> unit ;
45
- value_bindings : iterator -> rec_flag * value_binding list -> unit ;
46
- value_description : iterator -> value_description -> unit ;
47
- with_constraint : iterator -> with_constraint -> unit ;
20
+ case : iterator -> case -> unit ;
21
+ cases : iterator -> case list -> unit ;
22
+ env : iterator -> Env .t -> unit ;
23
+ expr : iterator -> expression -> unit ;
24
+ extension_constructor : iterator -> extension_constructor -> unit ;
25
+ module_binding : iterator -> module_binding -> unit ;
26
+ module_coercion : iterator -> module_coercion -> unit ;
27
+ module_declaration : iterator -> module_declaration -> unit ;
28
+ module_expr : iterator -> module_expr -> unit ;
29
+ module_type : iterator -> module_type -> unit ;
30
+ module_type_declaration : iterator -> module_type_declaration -> unit ;
31
+ package_type : iterator -> package_type -> unit ;
32
+ pat : iterator -> pattern -> unit ;
33
+ row_field : iterator -> row_field -> unit ;
34
+ object_field : iterator -> object_field -> unit ;
35
+ signature : iterator -> signature -> unit ;
36
+ signature_item : iterator -> signature_item -> unit ;
37
+ structure : iterator -> structure -> unit ;
38
+ structure_item : iterator -> structure_item -> unit ;
39
+ typ : iterator -> core_type -> unit ;
40
+ type_declaration : iterator -> type_declaration -> unit ;
41
+ type_declarations : iterator -> rec_flag * type_declaration list -> unit ;
42
+ type_extension : iterator -> type_extension -> unit ;
43
+ type_kind : iterator -> type_kind -> unit ;
44
+ value_binding : iterator -> value_binding -> unit ;
45
+ value_bindings : iterator -> rec_flag * value_binding list -> unit ;
46
+ value_description : iterator -> value_description -> unit ;
47
+ with_constraint : iterator -> with_constraint -> unit ;
48
48
}
49
49
50
50
let structure sub {str_items; str_final_env; _} =
@@ -171,7 +171,9 @@ let expr sub {exp_extra; exp_desc; exp_env; _} =
171
171
| Texp_variant (_ , expo ) -> Option. iter (sub.expr sub) expo
172
172
| Texp_record {fields; extended_expression; _} ->
173
173
Array. iter
174
- (function _ , Kept _ -> () | _ , Overridden (_ , exp ) -> sub.expr sub exp)
174
+ (function
175
+ | _ , Kept _ -> ()
176
+ | _ , Overridden (_ , exp ) -> sub.expr sub exp)
175
177
fields;
176
178
Option. iter (sub.expr sub) extended_expression
177
179
| Texp_field (exp , _ , _ ) -> sub.expr sub exp
@@ -358,4 +360,4 @@ let default_iterator =
358
360
value_bindings;
359
361
value_description;
360
362
with_constraint;
361
- }
363
+ }
0 commit comments