Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetEquivalentBinaryOperator C# (CSharp) Method

GetEquivalentBinaryOperator() static private method

static private GetEquivalentBinaryOperator ( UnaryOperatorType op ) : BinaryOperatorType
op UnaryOperatorType
return BinaryOperatorType
        static BinaryOperatorType GetEquivalentBinaryOperator(UnaryOperatorType op)
        {
            switch (op)
            {
                case UnaryOperatorType.PostIncrement:
                case UnaryOperatorType.Increment:
                    return BinaryOperatorType.Addition;
                case UnaryOperatorType.PostDecrement:
                case UnaryOperatorType.Decrement:
                    return BinaryOperatorType.Subtraction;
            }
            throw new ArgumentException("op");
        }
ProcessMethodBodies