babel/packages
Nicolò Ribaudo b0524427c1 Wrap an arrow function in parentheses if it the test of a conditional expression (#5820)
* Wrap an arrow function in parentheses if it the test of a conditional expression

Fixes #5819

* Use ConditionalExpresion to check if () => {} should be wrapped

* Move `t.isTaggedTemplateExpression()` from ArrowFunctionExpression to
  ConditionalExpresion

* [test] `await (() => {})` needs the parentheses

* [test] (a ? b : c)`` needs the parentheses
2017-06-05 12:39:28 -04:00
..
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2017-05-31 17:11:39 -04:00
2015-10-29 17:51:24 +00:00

Woah, what's going on here?

A monorepo, muhahahahahaha. See the monorepo design doc for reasoning.