Revert "Parenthesized expressions (#8025)"

This reverts commit dd8b700a2c.
This commit is contained in:
Justin Ridgewell
2019-02-23 04:48:05 -05:00
committed by Nicolò Ribaudo
parent 9f3457797f
commit fc1ea7f496
43 changed files with 65 additions and 1186 deletions

View File

@@ -92,14 +92,6 @@ export default class LValParser extends NodeUtils {
}
break;
case "ParenthesizedExpression":
node.expression = this.toAssignable(
node.expression,
isBinding,
contextDescription,
);
break;
case "MemberExpression":
if (!isBinding) break;
@@ -415,15 +407,6 @@ export default class LValParser extends NodeUtils {
this.checkLVal(expr.argument, isBinding, checkClashes, "rest element");
break;
case "ParenthesizedExpression":
this.checkLVal(
expr.expression,
isBinding,
checkClashes,
"parenthesized expression",
);
break;
default: {
const message =
(isBinding