Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Remove unused parameters from parseParenAndDistinguishExpression (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy authored and danez committed May 14, 2017
1 parent a738870 commit d95b5fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d95b5fb

Please sign in to comment.