24 references to SynthesizedDelegateInvokeMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (1)
2313
var isSynthesized = delegateType.DelegateInvokeMethod?.OriginalDefinition is
SynthesizedDelegateInvokeMethod
;
Binder\Semantics\Conversions\Conversions.cs (1)
60
if (methodSymbol.OriginalDefinition is
SynthesizedDelegateInvokeMethod
invoke)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (3)
57
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
62
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(field.TypeWithAnnotations, field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
65
var
invokeMethod = new SynthesizedDelegateInvokeMethod(this, parameters, returnField.TypeWithAnnotations, returnField.RefKind);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (15)
48
var
invokeMethod = createInvokeMethod(this, refKinds, voidReturnTypeOpt);
51
static
SynthesizedDelegateInvokeMethod
createInvokeMethod(AnonymousDelegateTemplateSymbol containingType, RefKindVector refKinds, TypeSymbol? voidReturnTypeOpt)
56
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
60
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(TypeWithAnnotations.Create(typeParams[i]), refKinds.IsNull ? RefKind.None : refKinds[i], ScopedKind.None, defaultValue: null, isParams: false, hasUnscopedRefAttribute: false));
67
var
method = new SynthesizedDelegateInvokeMethod(containingType, parameters, returnType, returnRefKind);
114
var
invokeMethod = createInvokeMethod(this, typeDescr.Fields);
117
static
SynthesizedDelegateInvokeMethod
createInvokeMethod(
126
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
141
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(type, field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
148
var
method = new SynthesizedDelegateInvokeMethod(containingType, parameters, returnType, returnRefKind);
188
var
invokeMethod = createInvokeMethod(this, typeDescr.Fields, typeMap);
191
static
SynthesizedDelegateInvokeMethod
createInvokeMethod(
197
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
202
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(typeMap.SubstituteType(field.Type), field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
209
var
method = new SynthesizedDelegateInvokeMethod(containingType, parameters, returnType, returnRefKind);
Symbols\Synthesized\SynthesizedParameterSymbol.cs (4)
194
if (this.HasUnscopedRefAttribute && this.ContainingSymbol is
SynthesizedDelegateInvokeMethod
)
199
if (this.IsParamsArray && this.ContainingSymbol is
SynthesizedDelegateInvokeMethod
)
203
else if (this.IsParamsCollection && this.ContainingSymbol is
SynthesizedDelegateInvokeMethod
)
211
this.ContainingSymbol is
SynthesizedDelegateInvokeMethod
or SynthesizedClosureMethod)