Boo.Lang.Compiler.Steps.ProcessMethodBodiesWithDuckTyping.ProcessMethodInvocationWithInvalidParameters C# (CSharp) Метод

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

protected ProcessMethodInvocationWithInvalidParameters ( MethodInvocationExpression node, IMethod targetMethod ) : bool
node Boo.Lang.Compiler.Ast.MethodInvocationExpression
targetMethod IMethod
Результат bool
        protected override bool ProcessMethodInvocationWithInvalidParameters(MethodInvocationExpression node, IMethod targetMethod)
        {
            if (!TypeSystemServices.IsSystemObject(targetMethod.DeclaringType)) return false;

            MemberReferenceExpression target = node.Target as MemberReferenceExpression;
            if (null == target) return false;
            if (!IsDuckTyped(target.Target)) return false;

            BindQuack(node.Target);
            BindDuck(node);
            return true;
        }