@@ -1473,24 +1473,21 @@ and walk_expression expr t comments =
14731473 let xs = exprs |> List. map (fun e -> Expression e) in
14741474 walk_list xs t rest
14751475 | Pexp_jsx_unary_element {jsx_unary_element_props = props } ->
1476- let _ =
1477- List. map
1478- (fun prop ->
1479- match prop with
1480- | Parsetree. JSXPropPunning (_ , _ ) -> ()
1481- | Parsetree. JSXPropValue (_ , _ , expr ) ->
1482- let _leading, inside, trailing =
1483- partition_by_loc comments expr.pexp_loc
1484- in
1485- let after_expr, _ =
1486- partition_adjacent_trailing expr.pexp_loc trailing
1487- in
1488- attach t.trailing expr.pexp_loc after_expr;
1489- walk_expression expr t inside
1490- | Parsetree. JSXPropSpreading (_loc , _expr ) -> () )
1491- props
1492- in
1493- ()
1476+ List. iter
1477+ (fun prop ->
1478+ match prop with
1479+ | Parsetree. JSXPropPunning (_ , _ ) -> ()
1480+ | Parsetree. JSXPropValue (_ , _ , expr ) ->
1481+ let _leading, inside, trailing =
1482+ partition_by_loc comments expr.pexp_loc
1483+ in
1484+ let after_expr, _ =
1485+ partition_adjacent_trailing expr.pexp_loc trailing
1486+ in
1487+ attach t.trailing expr.pexp_loc after_expr;
1488+ walk_expression expr t inside
1489+ | Parsetree. JSXPropSpreading (_loc , _expr ) -> () )
1490+ props
14941491 | Pexp_jsx_container_element
14951492 {
14961493 jsx_container_element_opening_tag_end = opening_greater_than;
0 commit comments