Skip to content

Commit 8fd1296

Browse files
committed
Revert binding loc change
1 parent 823a6de commit 8fd1296

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/syntax/src/jsx_v4.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,6 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
811811
(Some props_record_type, binding, new_binding))
812812
else if Jsx_common.has_attr_on_binding Jsx_common.has_attr_with_props binding
813813
then
814-
let binding_loc = binding.pvb_loc in
815814
let modified_binding =
816815
{
817816
binding with
@@ -907,7 +906,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
907906
| Recursive -> None
908907
| Nonrecursive ->
909908
Some
910-
(make_new_binding ~loc:binding_loc ~full_module_name modified_binding)
909+
(make_new_binding ~loc:empty_loc ~full_module_name modified_binding)
911910
in
912911
let binding_expr =
913912
{

0 commit comments

Comments
 (0)