equal
deleted
inserted
replaced
2940 } |
2940 } |
2941 |
2941 |
2942 public void visitBinary(JCBinary tree) { |
2942 public void visitBinary(JCBinary tree) { |
2943 // Attribute arguments. |
2943 // Attribute arguments. |
2944 Type left = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.lhs, env)); |
2944 Type left = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.lhs, env)); |
2945 Type right = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.rhs, env)); |
2945 Type right = chk.checkNonVoid(tree.rhs.pos(), attribExpr(tree.rhs, env)); |
2946 // Find operator. |
2946 // Find operator. |
2947 Symbol operator = tree.operator = operators.resolveBinary(tree, tree.getTag(), left, right); |
2947 Symbol operator = tree.operator = operators.resolveBinary(tree, tree.getTag(), left, right); |
2948 Type owntype = types.createErrorType(tree.type); |
2948 Type owntype = types.createErrorType(tree.type); |
2949 if (operator.kind == MTH && |
2949 if (operator.kind == MTH && |
2950 !left.isErroneous() && |
2950 !left.isErroneous() && |