Skip to content

Commit 36d6747

Browse files
committed
Fix recursion in jsx props and children.
1 parent 61408d5 commit 36d6747

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

analysis/src/SemanticTokens.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,7 @@ let parser ~debug ~emitter ~path =
232232
|> emitJsxClose ~debug ~lid:lident.txt
233233
~pos:(lineEndWhole, colEndWhole - 1));
234234
(* only process again arguments, not the jsx label *)
235-
let _ =
236-
args
237-
|> List.map (fun (_lbl, arg) ->
238-
Ast_mapper.default_mapper.expr mapper arg)
239-
in
235+
let _ = args |> List.map (fun (_lbl, arg) -> mapper.expr mapper arg) in
240236
e
241237
| Pexp_apply ({pexp_loc}, _) when Res_parsetree_viewer.isBinaryExpression e
242238
->

0 commit comments

Comments
 (0)