Skip to content

Commit 6d0da78

Browse files
committed
mlx: do not shadow tag location
1 parent 5123969 commit 6d0da78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlx/jsx_helper.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let rec equal_longindent a b =
2828
| Lapply _, _ | _, Lapply _ -> assert false
2929
| _ -> false
3030

31-
let make_jsx_element ~raise ~loc ~tag ~end_tag ~props ~children () =
31+
let make_jsx_element ~raise ~loc:_ ~tag ~end_tag ~props ~children () =
3232
let () =
3333
match end_tag with
3434
| None -> ()
@@ -71,8 +71,8 @@ let make_jsx_element ~raise ~loc ~tag ~end_tag ~props ~children () =
7171
props
7272
in
7373
let unit =
74-
mkexp ~loc
75-
(Pexp_construct ({ txt = Lident "()"; loc = make_loc loc }, None))
74+
Exp.mk ~loc:Location.none
75+
(Pexp_construct ({ txt = Lident "()"; loc = Location.none }, None))
7676
in
7777
let props = (Labelled "children", children) :: props in
7878
Pexp_apply (tag, (Nolabel, unit) :: props)

0 commit comments

Comments
 (0)