parent
c8615ed9a6
commit
105a164423
|
@ -434,6 +434,10 @@ FPp.needsParens = function(assumeExpressionContext) {
|
||||||
case "ExportDefaultDeclaration":
|
case "ExportDefaultDeclaration":
|
||||||
case "ExpressionStatement":
|
case "ExpressionStatement":
|
||||||
return true;
|
return true;
|
||||||
|
case "CallExpression":
|
||||||
|
if (parent.callee === node) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -87,6 +87,13 @@ exports[`test binary.js 1`] = `
|
||||||
"
|
"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
exports[`test call.js 1`] = `
|
||||||
|
"(class {})(class {});
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
(class {})(class {});
|
||||||
|
"
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`test class_shapes.js 1`] = `
|
exports[`test class_shapes.js 1`] = `
|
||||||
"/* @flow */
|
"/* @flow */
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
(class {})(class {});
|
Loading…
Reference in New Issue