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