Esempio n. 1
0
        public Function GetImplementation(Span <Value> args)
        {
            var func = FindMatch(args);

            if (func == null)
            {
                throw new FunctionOverloadNotFoundException(this, args.ArraySelect(a => a.Type));
            }
            return(func);
        }
Esempio n. 2
0
        public Function GetImplementation(Span <Type> types)
        {
            var func = FindMatch(types);

            if (func == null)
            {
                throw new FunctionOverloadNotFoundException(this, types.ArraySelect(t => t));
            }
            return(func);
        }