Beispiel #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);
        }
Beispiel #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);
        }