Skip to content

Commit

Permalink
test stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Sep 7, 2023
1 parent 938f593 commit ca22de0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ppx/reason_react_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ let extractChildren ?(removeLastPositionUnit = false) propsAndChildren =

let unerasableIgnore loc =
let structure_item =
Builder.pstr_eval ~loc
Builder.pstr_eval ~loc:Location.none
(Builder.pexp_constant ~loc:Location.none
(Pconst_string ("-16", Location.none, None)))
[]
Expand Down Expand Up @@ -314,7 +314,7 @@ let rec recursivelyMakeNamedArgsForExternal list args =
match list with
| (label, default, loc, interiorType) :: tl ->
recursivelyMakeNamedArgsForExternal tl
(Builder.ptyp_arrow ~loc label
(Builder.ptyp_arrow ~loc:Location.none label
(match (label, interiorType, default) with
(* ~foo=1 *)
| label, None, Some _ ->
Expand Down Expand Up @@ -1086,7 +1086,7 @@ let jsxMapper =
if hasUnit then
[
( Nolabel,
Builder.pexp_construct ~loc { loc; txt = Lident "()" } None
Builder.pexp_construct ~loc:Location.none { loc; txt = Lident "()" } None
);
]
else []
Expand Down

0 comments on commit ca22de0

Please sign in to comment.