File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
tests/syntax_tests/data/printer/expr/expected Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ let jsx_child_expr expr =
371371 when starts_with_minus x ->
372372 Parenthesized
373373 | _ when ParsetreeViewer. expr_is_await expr -> Parenthesized
374+ | _ when ParsetreeViewer. has_spread_attr expr.pexp_attributes -> Parenthesized
374375 | {
375376 Parsetree. pexp_desc =
376377 ( Pexp_constant _ | Pexp_field _ | Pexp_construct _
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ let x =
209209
210210let x =
211211 <div>
212- { ident}
212+ ident
213213 "constant"
214214 {
215215 let a = 1
@@ -492,14 +492,14 @@ let fragmented_moo =
492492
493493let arrow_with_fragment = el => <>
494494 {t(nbsp ++ "(")}
495- {el}
495+ el
496496 {t(")")}
497497</>
498498
499499let arrow_with_container_tag = el =>
500500 <div>
501501 {t(nbsp ++ "(")}
502- {el}
502+ el
503503 {t(")")}
504504 </div>
505505
You can’t perform that action at this time.
0 commit comments