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");
|
return this.finishNode(node, "BooleanLiteral");
|
||||||
|
|
||||||
case tt.parenL:
|
case tt.parenL:
|
||||||
return this.parseParenAndDistinguishExpression(null, null, canBeArrow);
|
return this.parseParenAndDistinguishExpression(canBeArrow);
|
||||||
|
|
||||||
case tt.bracketL:
|
case tt.bracketL:
|
||||||
node = this.startNode();
|
node = this.startNode();
|
||||||
@ -580,9 +580,9 @@ export default class ExpressionParser extends LValParser {
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
parseParenAndDistinguishExpression(startPos: ?number, startLoc: ?Position, canBeArrow: boolean): N.Expression {
|
parseParenAndDistinguishExpression(canBeArrow: boolean): N.Expression {
|
||||||
startPos = startPos || this.state.start;
|
const startPos = this.state.start;
|
||||||
startLoc = startLoc || this.state.startLoc;
|
const startLoc = this.state.startLoc;
|
||||||
|
|
||||||
let val;
|
let val;
|
||||||
this.expect(tt.parenL);
|
this.expect(tt.parenL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user