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 =
371
371
when starts_with_minus x ->
372
372
Parenthesized
373
373
| _ when ParsetreeViewer. expr_is_await expr -> Parenthesized
374
+ | _ when ParsetreeViewer. has_spread_attr expr.pexp_attributes -> Parenthesized
374
375
| {
375
376
Parsetree. pexp_desc =
376
377
( Pexp_constant _ | Pexp_field _ | Pexp_construct _
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ let x =
209
209
210
210
let x =
211
211
<div>
212
- { ident}
212
+ ident
213
213
"constant"
214
214
{
215
215
let a = 1
@@ -492,14 +492,14 @@ let fragmented_moo =
492
492
493
493
let arrow_with_fragment = el => <>
494
494
{t(nbsp ++ "(")}
495
- {el}
495
+ el
496
496
{t(")")}
497
497
</>
498
498
499
499
let arrow_with_container_tag = el =>
500
500
<div>
501
501
{t(nbsp ++ "(")}
502
- {el}
502
+ el
503
503
{t(")")}
504
504
</div>
505
505
You can’t perform that action at this time.
0 commit comments