Boo.Lang.Compiler.TypeSystem.CallableResolutionService.IsValidInvocation C# (CSharp) Method

IsValidInvocation() private method

private IsValidInvocation ( IParameter parameters, Boo.Lang.Compiler.Ast.ExpressionCollection args, int count ) : bool
parameters IParameter
args Boo.Lang.Compiler.Ast.ExpressionCollection
count int
return bool
        private bool IsValidInvocation(IParameter[] parameters, ExpressionCollection args, int count)
        {
            for (int i = 0; i < count; ++i)
            {
                IParameter parameter = parameters[i];
                IType parameterType = parameter.Type;
                int argumentScore = CalculateArgumentScore(parameter, parameterType, args[i]);
                if (argumentScore < 0) return false;
            }
            return true;
        }