@@ -34,7 +34,7 @@ type iterator =
34
34
env : iterator -> Env .t -> unit ;
35
35
expr : iterator -> expression -> unit ;
36
36
extension_constructor : iterator -> extension_constructor -> unit ;
37
- jkind_annotation : iterator -> Jkind .const -> unit ;
37
+ jkind_annotation : iterator -> Jkind .annotation -> unit ;
38
38
location : iterator -> Location .t -> unit ;
39
39
module_binding : iterator -> module_binding -> unit ;
40
40
module_coercion : iterator -> module_coercion -> unit ;
@@ -578,7 +578,7 @@ let typ sub {ctyp_loc; ctyp_desc; ctyp_env; ctyp_attributes; _} =
578
578
sub.env sub ctyp_env;
579
579
match ctyp_desc with
580
580
| Ttyp_var (_ , jkind ) ->
581
- Option. iter (fun ( jkind , _ ) -> sub.jkind_annotation sub jkind ) jkind
581
+ Option. iter (sub.jkind_annotation sub) jkind
582
582
| Ttyp_arrow (_ , ct1 , ct2 ) ->
583
583
sub.typ sub ct1;
584
584
sub.typ sub ct2
@@ -592,10 +592,10 @@ let typ sub {ctyp_loc; ctyp_desc; ctyp_env; ctyp_attributes; _} =
592
592
List. iter (sub.typ sub) list
593
593
| Ttyp_alias (ct , _ , jkind ) ->
594
594
sub.typ sub ct;
595
- Option. iter (fun ( jkind , _ ) -> sub.jkind_annotation sub jkind ) jkind
595
+ Option. iter (sub.jkind_annotation sub) jkind
596
596
| Ttyp_variant (list , _ , _ ) -> List. iter (sub.row_field sub) list
597
597
| Ttyp_poly (vars , ct ) ->
598
- List. iter (fun (_ , l ) -> Option. iter (fun ( j , _ ) -> sub.jkind_annotation sub j ) l) vars;
598
+ List. iter (fun (_ , l ) -> Option. iter (sub.jkind_annotation sub) l) vars;
599
599
sub.typ sub ct
600
600
| Ttyp_package pack -> sub.package_type sub pack
601
601
@@ -649,7 +649,7 @@ let value_binding sub {vb_loc; vb_pat; vb_expr; vb_attributes; _} =
649
649
650
650
let env _sub _ = ()
651
651
652
- let jkind_annotation _sub _ = ()
652
+ let jkind_annotation sub ( _ , l ) = iter_loc sub l
653
653
654
654
let default_iterator =
655
655
{
0 commit comments