fix styling in right associative

This commit is contained in:
Sebastian McKenzie 2015-01-18 10:37:17 +11:00
parent a189dbdcef
commit a0a20f9fb2

View File

@ -2515,13 +2515,13 @@
var op = tokType;
next();
var start = storeCurrentPos();
if(op.rightAssociative) {
if (op.rightAssociative) {
node.right = parseExprOp(parseMaybeUnary(), start, minPrec, noIn);
} else {
node.right = parseExprOp(parseMaybeUnary(), start, prec, noIn);
}
finishNode(node, (op === _logicalOR || op === _logicalAND) ? "LogicalExpression" : "BinaryExpression");
if(op.rightAssociative) {
if (op.rightAssociative) {
return node;
} else {
return parseExprOp(node, leftStart, minPrec, noIn);