We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8100772 commit 555ed36Copy full SHA for 555ed36
jscomp/syntax/src/res_parens.ml
@@ -180,6 +180,7 @@ let flattenOperandRhs parentOperator rhs =
180
let precParent = ParsetreeViewer.operatorPrecedence parentOperator in
181
let precChild = ParsetreeViewer.operatorPrecedence operator in
182
precParent >= precChild || rhs.pexp_attributes <> []
183
+ | Pexp_construct ({ txt = Lident "Function$" }, Some _) -> true
184
| Pexp_constraint ({pexp_desc = Pexp_pack _}, {ptyp_desc = Ptyp_package _}) ->
185
false
186
| Pexp_fun _ when ParsetreeViewer.isUnderscoreApplySugar rhs -> false
0 commit comments