private static TryGetInverseOperator ( ) : bool | ||
Результат | bool |
private static Expression NegateBinaryExpression(Expression expression, TypeSystem typeSystem) { V_0 = (BinaryExpression)expression; if (Negator.IsLogicalOperator(V_0.get_Operator())) { if (V_0.get_Operator() == 12) { stackVariable48 = 11; } else { stackVariable48 = 12; } V_2 = stackVariable48; V_0.set_Left(Negator.Negate(V_0.get_Left(), typeSystem)); V_0.set_Operator(V_2); V_0.set_Right(Negator.Negate(V_0.get_Right(), typeSystem)); return V_0; } if (!Negator.IsBitwiseOperator(V_0.get_Operator()) || !String.op_Equality(V_0.get_ExpressionType().get_FullName(), typeSystem.get_Boolean().get_FullName())) { if (!Negator.TryGetInverseOperator(V_0.get_Operator(), out V_1)) { throw new ArgumentException("expression"); } V_0.set_Operator(V_1); return V_0; } if (V_0.get_Operator() != 23) { V_0.set_Left(Negator.Negate(V_0.get_Left(), typeSystem)); stackVariable32 = V_0; if (V_0.get_Operator() == 22) { stackVariable36 = 21; } else { stackVariable36 = 22; } stackVariable32.set_Operator(stackVariable36); V_0.set_Right(Negator.Negate(V_0.get_Right(), typeSystem)); } else { V_0.set_Operator(9); } return V_0; }