public Object visit(MathBinaryOp binaryOp) { binaryOp.getFirstOperand().accept(this); binaryOp.getSecondOperand().accept(this); if (!Type.isString(binaryOp) && !Type.isInt(binaryOp)) { return binaryOp; } return null; }
@Override public Object visit(MathBinaryOp binaryOp) throws SemanticError { binaryOp.getFirstOperand().accept(this); binaryOp.getSecondOperand().accept(this); return null; }