Inheritance: ActionBinder
Esempio n. 1
0
 public DefaultOverloadResolverFactory(DefaultBinder binder)
 {
     Assert.NotNull(binder);
     _binder = binder;
 }
Esempio n. 2
0
        private static MetaObject MakeInvalidParametersRule(CallTypes callType, CallSignature signature, DefaultBinder binder, IList <MetaObject> args, Restrictions restrictions, BindingTarget bt)
        {
            Restrictions restriction = MakeSplatTests(callType, signature, true, args);

            // restrict to the exact type of all parameters for errors
            for (int i = 0; i < args.Count; i++)
            {
                args[i] = args[i].Restrict(args[i].LimitType);
            }

            return(MakeError(
                       binder.MakeInvalidParametersError(bt),
                       restrictions.Merge(Restrictions.Combine(args).Merge(restriction))
                       ));
        }