// Associativity: for the then and else branches, it is safe to insert
// another
// ternary expression, but if the test expression is a ternary, it should
// get parentheses around it.
{
JsExpression testExpression = x.getTestExpression();
_parenPush(x, testExpression, true);
accept(testExpression);
_parenPop(x, testExpression, true);
}
_questionMark();
{
JsExpression thenExpression = x.getThenExpression();
_parenPush(x, thenExpression, false);
accept(thenExpression);
_parenPop(x, thenExpression, false);
}
_colon();
{
JsExpression elseExpression = x.getElseExpression();
_parenPush(x, elseExpression, false);
accept(elseExpression);
_parenPop(x, elseExpression, false);
}
return false;