InWithoutList() public static method

public static InWithoutList ( ) : Exception
return System.Exception
Exemplo n.º 1
0
        internal void Check()
        {
            Function f = s_funcs[_info];

            if (_info < 0)
            {
                throw ExprException.UndefinedFunction(_name);
            }

            if (s_funcs[_info]._isVariantArgumentList)
            {
                // for finctions with variabls argument list argumentCount is a minimal number of arguments
                if (_argumentCount < s_funcs[_info]._argumentCount)
                {
                    // Special case for the IN operator
                    if (s_funcs[_info]._id == FunctionId.In)
                    {
                        throw ExprException.InWithoutList();
                    }

                    throw ExprException.FunctionArgumentCount(_name);
                }
            }
            else
            {
                if (_argumentCount != s_funcs[_info]._argumentCount)
                {
                    throw ExprException.FunctionArgumentCount(_name);
                }
            }
        }
        internal void Check()
        {
            Function f = funcs[info];

            if (this.info < 0)
            {
                throw ExprException.UndefinedFunction(this.name);
            }

            if (funcs[info].IsVariantArgumentList)
            {
                // for finctions with variabls argument list argumentCount is a minimal number of arguments
                if (argumentCount < funcs[info].argumentCount)
                {
                    // Special case for the IN operator
                    if (funcs[this.info].id == FunctionId.In)
                    {
                        throw ExprException.InWithoutList();
                    }

                    throw ExprException.FunctionArgumentCount(this.name);
                }
            }
            else
            {
                if (argumentCount != funcs[info].argumentCount)
                {
                    throw ExprException.FunctionArgumentCount(this.name);
                }
            }
        }
Exemplo n.º 3
0
        internal virtual void Check()
        {
#if DEBUG
            if (CompModSwitches.FunctionNode.TraceVerbose)
            {
                Debug.WriteLine("Check function: " + this.name);
            }
#endif
            Function f = funcs[info];
#if DEBUG
            if (CompModSwitches.FunctionNode.TraceVerbose)
            {
                Debug.WriteLine("id = " + ((int)f.id).ToString());
            }
            if (CompModSwitches.FunctionNode.TraceVerbose)
            {
                Debug.WriteLine(", arguments = " + this.argumentCount.ToString());
            }
#endif

            if (this.info < 0)
            {
                throw ExprException.UndefinedFunction(this.name);
            }

            if (funcs[info].IsVariantArgumentList)
            {
                // for finctions with variabls argument list argumentCount is a minimal number of arguments
                if (argumentCount < funcs[info].argumentCount)
                {
                    // Special case for the IN operator
                    if (funcs[this.info].id == FunctionId.In)
                    {
                        throw ExprException.InWithoutList();
                    }

                    throw ExprException.FunctionArgumentCount(this.name);
                }
            }
            else
            {
                if (argumentCount != funcs[info].argumentCount)
                {
                    throw ExprException.FunctionArgumentCount(this.name);
                }
            }
        }
Exemplo n.º 4
0
        internal void Check()
        {
            Function function1 = funcs[this.info];

            if (this.info < 0)
            {
                throw ExprException.UndefinedFunction(this.name);
            }
            if (funcs[this.info].IsVariantArgumentList)
            {
                if (this.argumentCount < funcs[this.info].argumentCount)
                {
                    if (funcs[this.info].id == FunctionId.In)
                    {
                        throw ExprException.InWithoutList();
                    }
                    throw ExprException.FunctionArgumentCount(this.name);
                }
            }
            else if (this.argumentCount != funcs[this.info].argumentCount)
            {
                throw ExprException.FunctionArgumentCount(this.name);
            }
        }