Parenthesize function expressions in expression position (#941)

* refactor needsParens for function expressions

* snapshots

* comment
This commit is contained in:
Kevin Gibbons authored and Christopher Chedeau committed 2017-03-07 18:53:42 -08:00
1 parent 50602aecbb
commit 7443f4cbd6
12 files changed
+102 -177

No files matched your search

+3
View File
@@ -6,3 +6,6 @@ export default (function() {})();
new (function() {});
(function() {});
a = function f() {} || b;
(function() {} && a);
a + function() {};
new function() {};