@Override
    protected Type visitLogicalBinaryExpression(
        LogicalBinaryExpression node, AnalysisContext context) {
      coerceType(context, node.getLeft(), BOOLEAN, "Left side of logical expression");
      coerceType(context, node.getRight(), BOOLEAN, "Right side of logical expression");

      expressionTypes.put(node, BOOLEAN);
      return BOOLEAN;
    }
Example #2
0
 @Override
 protected String visitLogicalBinaryExpression(
     LogicalBinaryExpression node, Boolean unmangleNames) {
   return formatBinaryExpression(
       node.getType().toString(), node.getLeft(), node.getRight(), unmangleNames);
 }