File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
tests/syntax_tests/data/printer/expr/expected Expand file tree Collapse file tree 2 files changed +5
-4
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
@@ -364,7 +364,7 @@ module App = {
364
364
</div>
365
365
366
366
<Animated> ...{x => <div />} </Animated>
367
- <div> ...c </div>
367
+ <div>{ ...c} </div>
368
368
369
369
<Animated initialValue=0.0 value>
370
370
...{ReactDOMRe.Style.make(
@@ -558,14 +558,14 @@ let fragmented_moo =
558
558
559
559
let arrow_with_fragment = el => <>
560
560
{t(nbsp ++ "(")}
561
- {el}
561
+ el
562
562
{t(")")}
563
563
</>
564
564
565
565
let arrow_with_container_tag = el =>
566
566
<div>
567
567
{t(nbsp ++ "(")}
568
- {el}
568
+ el
569
569
{t(")")}
570
570
</div>
571
571
You can’t perform that action at this time.
0 commit comments