Remove unused parameters from parseParenAndDistinguishExpression (#522)
This commit is contained in:
parent
a738870472
commit
d95b5fb83d
@ -495,7 +495,7 @@ export default class ExpressionParser extends LValParser {
|
||||
return this.finishNode(node, "BooleanLiteral");
|
||||
|
||||
case tt.parenL:
|
||||
return this.parseParenAndDistinguishExpression(null, null, canBeArrow);
|
||||
return this.parseParenAndDistinguishExpression(canBeArrow);
|
||||
|
||||
case tt.bracketL:
|
||||
node = this.startNode();
|
||||
@ -580,9 +580,9 @@ export default class ExpressionParser extends LValParser {
|
||||
return val;
|
||||
}
|
||||
|
||||
parseParenAndDistinguishExpression(startPos: ?number, startLoc: ?Position, canBeArrow: boolean): N.Expression {
|
||||
startPos = startPos || this.state.start;
|
||||
startLoc = startLoc || this.state.startLoc;
|
||||
parseParenAndDistinguishExpression(canBeArrow: boolean): N.Expression {
|
||||
const startPos = this.state.start;
|
||||
const startLoc = this.state.startLoc;
|
||||
|
||||
let val;
|
||||
this.expect(tt.parenL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user