1 type derived from CallSite
System.Core (1)
Microsoft\Scripting\Actions\CallSite.cs (1)
134public partial class CallSite<T> : CallSite where T : class {
154 references to CallSite
System.Core (154)
Microsoft\Scripting\Actions\CallSite.cs (10)
67private static volatile CacheDict<Type, Func<CallSiteBinder, CallSite>> _SiteCtors; 99public static CallSite Create(Type delegateType, CallSiteBinder binder) { 107_SiteCtors = ctors = new CacheDict<Type, Func<CallSiteBinder, CallSite>>(100); 110Func<CallSiteBinder, CallSite> ctor; 116ctor = (Func<CallSiteBinder, CallSite>)Delegate.CreateDelegate(typeof(Func<CallSiteBinder, CallSite>), method); 126return (CallSite)method.Invoke(null, new object[] { binder }); 271if (target == DelegateHelpers.GetActionType(args.AddFirst(typeof(CallSite)))) { 276if (target == DelegateHelpers.GetFuncType(args.AddFirst(typeof(CallSite)))) { 316ContractUtils.Requires(pis.Length > 0 && pis[0].ParameterType == typeof(CallSite), "T");
Microsoft\Scripting\Actions\CallSiteBinder.cs (2)
75if (pis[0].ParameterType != typeof(CallSite)) { 174var site = Expression.Parameter(typeof(CallSite), "$site");
Microsoft\Scripting\Actions\CallSiteOps.cs (11)
35/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 50public static bool SetNotMatched(CallSite site) { 62public static bool GetMatch(CallSite site) { 71public static void ClearMatch(CallSite site) { 78/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 89/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 102/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 114/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 126/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 140/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam> 151/// <typeparam name="T">The type of the delegate of the <see cref="CallSite"/>.</typeparam>
Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs (105)
40internal static TRet UpdateAndExecute0<TRet>(CallSite site) { 44var @this = (CallSite<Func<CallSite, TRet>>)site; 45Func<CallSite, TRet>[] applicable; 46Func<CallSite, TRet> rule, originalRule = @this.Target; 157internal static TRet NoMatch0<TRet>(CallSite site) { 165internal static TRet UpdateAndExecute1<T0, TRet>(CallSite site, T0 arg0) { 169var @this = (CallSite<Func<CallSite, T0, TRet>>)site; 170Func<CallSite, T0, TRet>[] applicable; 171Func<CallSite, T0, TRet> rule, originalRule = @this.Target; 282internal static TRet NoMatch1<T0, TRet>(CallSite site, T0 arg0) { 290internal static TRet UpdateAndExecute2<T0, T1, TRet>(CallSite site, T0 arg0, T1 arg1) { 294var @this = (CallSite<Func<CallSite, T0, T1, TRet>>)site; 295Func<CallSite, T0, T1, TRet>[] applicable; 296Func<CallSite, T0, T1, TRet> rule, originalRule = @this.Target; 407internal static TRet NoMatch2<T0, T1, TRet>(CallSite site, T0 arg0, T1 arg1) { 415internal static TRet UpdateAndExecute3<T0, T1, T2, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2) { 419var @this = (CallSite<Func<CallSite, T0, T1, T2, TRet>>)site; 420Func<CallSite, T0, T1, T2, TRet>[] applicable; 421Func<CallSite, T0, T1, T2, TRet> rule, originalRule = @this.Target; 532internal static TRet NoMatch3<T0, T1, T2, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2) { 540internal static TRet UpdateAndExecute4<T0, T1, T2, T3, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) { 544var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, TRet>>)site; 545Func<CallSite, T0, T1, T2, T3, TRet>[] applicable; 546Func<CallSite, T0, T1, T2, T3, TRet> rule, originalRule = @this.Target; 657internal static TRet NoMatch4<T0, T1, T2, T3, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) { 665internal static TRet UpdateAndExecute5<T0, T1, T2, T3, T4, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) { 669var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, TRet>>)site; 670Func<CallSite, T0, T1, T2, T3, T4, TRet>[] applicable; 671Func<CallSite, T0, T1, T2, T3, T4, TRet> rule, originalRule = @this.Target; 782internal static TRet NoMatch5<T0, T1, T2, T3, T4, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) { 790internal static TRet UpdateAndExecute6<T0, T1, T2, T3, T4, T5, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) { 794var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, TRet>>)site; 795Func<CallSite, T0, T1, T2, T3, T4, T5, TRet>[] applicable; 796Func<CallSite, T0, T1, T2, T3, T4, T5, TRet> rule, originalRule = @this.Target; 907internal static TRet NoMatch6<T0, T1, T2, T3, T4, T5, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) { 915internal static TRet UpdateAndExecute7<T0, T1, T2, T3, T4, T5, T6, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) { 919var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet>>)site; 920Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet>[] applicable; 921Func<CallSite, T0, T1, T2, T3, T4, T5, T6, TRet> rule, originalRule = @this.Target; 1032internal static TRet NoMatch7<T0, T1, T2, T3, T4, T5, T6, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) { 1040internal static TRet UpdateAndExecute8<T0, T1, T2, T3, T4, T5, T6, T7, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) { 1044var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet>>)site; 1045Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet>[] applicable; 1046Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, TRet> rule, originalRule = @this.Target; 1157internal static TRet NoMatch8<T0, T1, T2, T3, T4, T5, T6, T7, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) { 1165internal static TRet UpdateAndExecute9<T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) { 1169var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>>)site; 1170Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>[] applicable; 1171Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet> rule, originalRule = @this.Target; 1282internal static TRet NoMatch9<T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) { 1290internal static TRet UpdateAndExecute10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) { 1294var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>>)site; 1295Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>[] applicable; 1296Func<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet> rule, originalRule = @this.Target; 1407internal static TRet NoMatch10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) { 1415internal static void UpdateAndExecuteVoid1<T0>(CallSite site, T0 arg0) { 1419var @this = (CallSite<Action<CallSite, T0>>)site; 1420Action<CallSite, T0>[] applicable; 1421Action<CallSite, T0> rule, originalRule = @this.Target; 1531internal static void NoMatchVoid1<T0>(CallSite site, T0 arg0) { 1539internal static void UpdateAndExecuteVoid2<T0, T1>(CallSite site, T0 arg0, T1 arg1) { 1543var @this = (CallSite<Action<CallSite, T0, T1>>)site; 1544Action<CallSite, T0, T1>[] applicable; 1545Action<CallSite, T0, T1> rule, originalRule = @this.Target; 1655internal static void NoMatchVoid2<T0, T1>(CallSite site, T0 arg0, T1 arg1) { 1663internal static void UpdateAndExecuteVoid3<T0, T1, T2>(CallSite site, T0 arg0, T1 arg1, T2 arg2) { 1667var @this = (CallSite<Action<CallSite, T0, T1, T2>>)site; 1668Action<CallSite, T0, T1, T2>[] applicable; 1669Action<CallSite, T0, T1, T2> rule, originalRule = @this.Target; 1779internal static void NoMatchVoid3<T0, T1, T2>(CallSite site, T0 arg0, T1 arg1, T2 arg2) { 1787internal static void UpdateAndExecuteVoid4<T0, T1, T2, T3>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) { 1791var @this = (CallSite<Action<CallSite, T0, T1, T2, T3>>)site; 1792Action<CallSite, T0, T1, T2, T3>[] applicable; 1793Action<CallSite, T0, T1, T2, T3> rule, originalRule = @this.Target; 1903internal static void NoMatchVoid4<T0, T1, T2, T3>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) { 1911internal static void UpdateAndExecuteVoid5<T0, T1, T2, T3, T4>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) { 1915var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4>>)site; 1916Action<CallSite, T0, T1, T2, T3, T4>[] applicable; 1917Action<CallSite, T0, T1, T2, T3, T4> rule, originalRule = @this.Target; 2027internal static void NoMatchVoid5<T0, T1, T2, T3, T4>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) { 2035internal static void UpdateAndExecuteVoid6<T0, T1, T2, T3, T4, T5>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) { 2039var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5>>)site; 2040Action<CallSite, T0, T1, T2, T3, T4, T5>[] applicable; 2041Action<CallSite, T0, T1, T2, T3, T4, T5> rule, originalRule = @this.Target; 2151internal static void NoMatchVoid6<T0, T1, T2, T3, T4, T5>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) { 2159internal static void UpdateAndExecuteVoid7<T0, T1, T2, T3, T4, T5, T6>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) { 2163var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6>>)site; 2164Action<CallSite, T0, T1, T2, T3, T4, T5, T6>[] applicable; 2165Action<CallSite, T0, T1, T2, T3, T4, T5, T6> rule, originalRule = @this.Target; 2275internal static void NoMatchVoid7<T0, T1, T2, T3, T4, T5, T6>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) { 2283internal static void UpdateAndExecuteVoid8<T0, T1, T2, T3, T4, T5, T6, T7>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) { 2287var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7>>)site; 2288Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7>[] applicable; 2289Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7> rule, originalRule = @this.Target; 2399internal static void NoMatchVoid8<T0, T1, T2, T3, T4, T5, T6, T7>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) { 2407internal static void UpdateAndExecuteVoid9<T0, T1, T2, T3, T4, T5, T6, T7, T8>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) { 2411var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8>>)site; 2412Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8>[] applicable; 2413Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8> rule, originalRule = @this.Target; 2523internal static void NoMatchVoid9<T0, T1, T2, T3, T4, T5, T6, T7, T8>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) { 2531internal static void UpdateAndExecuteVoid10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) { 2535var @this = (CallSite<Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>>)site; 2536Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>[] applicable; 2537Action<CallSite, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> rule, originalRule = @this.Target; 2647internal static void NoMatchVoid10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) {
Microsoft\Scripting\Ast\DynamicExpression.cs (19)
118/// Gets the type of the delegate used by the <see cref="CallSite" />. 311/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 328/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 345/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 362/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 380/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 399/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 425return CallSite.Create(this.DelegateType, this.Binder); 676/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 693/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 719/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 747/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 778/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 812/// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param> 849if (pi.Length == 0 || pi[0].ParameterType != typeof(CallSite)) throw Error.FirstArgumentMustBeCallSite(); 897DelegateHelpers.NextTypeInfo(typeof(CallSite)) 937DelegateHelpers.NextTypeInfo(typeof(CallSite)) 982DelegateHelpers.NextTypeInfo(typeof(CallSite)) 1032DelegateHelpers.NextTypeInfo(typeof(CallSite))
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (4)
56paramTypes[0] = typeof(CallSite); 102curTypeInfo = NextTypeInfo(typeof(CallSite), curTypeInfo); 132curTypeInfo = NextTypeInfo(typeof(CallSite), curTypeInfo); 152paramTypes[0] = typeof(CallSite);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (3)
487var site = CallSite.Create(node.DelegateType, node.Binder); 502var siteTemp = GetLocal(typeof(CallSite));