Boo.Lang.Compiler.Steps.ProcessMethodBodies.IsValidIncrementDecrementOperand C# (CSharp) Метод

IsValidIncrementDecrementOperand() защищенный Метод

protected IsValidIncrementDecrementOperand ( Expression e ) : bool
e Boo.Lang.Compiler.Ast.Expression
Результат bool
        protected virtual bool IsValidIncrementDecrementOperand(Expression e)
        {
            IType type = GetExpressionType(e);

            if (type.IsPointer)
                return true;

            if (TypeSystemServices.IsNullable(type))
                type = TypeSystemServices.GetNullableUnderlyingType(type);

            return TypeSystemServices.IsNumber(type) || TypeSystemServices.IsDuckType(type);
        }
ProcessMethodBodies