@Override public boolean enterTernaryNode(final TernaryNode ternaryNode) { curExpr = new ConditionalExpressionTreeImpl( ternaryNode, translateExpr(ternaryNode.getTest()), translateExpr(ternaryNode.getTrueExpression()), translateExpr(ternaryNode.getFalseExpression())); return false; }
@Override public boolean enterTernaryNode(final TernaryNode ternaryNode) { // Test is never optimistic (always coerced to boolean). tagNeverOptimistic(ternaryNode.getTest()); return true; }