Skip to content

Commit 710e69e

Browse files
committed
tast_{iterator,mapper} were missing locs in jkind annotations
1 parent 439417b commit 710e69e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocaml/typing/tast_iterator.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ let value_binding sub {vb_loc; vb_pat; vb_expr; vb_attributes; _} =
649649

650650
let env _sub _ = ()
651651

652-
let jkind_annotation _sub _ = ()
652+
let jkind_annotation sub l = iter_loc sub l
653653

654654
let default_iterator =
655655
{

ocaml/typing/tast_mapper.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ let value_binding sub x =
914914

915915
let env _sub x = x
916916

917-
let jkind_annotation _sub l = l
917+
let jkind_annotation sub l = map_loc sub l
918918

919919
let default =
920920
{

0 commit comments

Comments
 (0)