24 references to SynthesizedDelegateInvokeMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (1)
2325
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)
49
var
invokeMethod = createInvokeMethod(this, refKinds, voidReturnTypeOpt);
52
static
SynthesizedDelegateInvokeMethod
createInvokeMethod(AnonymousDelegateTemplateSymbol containingType, RefKindVector refKinds, TypeSymbol? voidReturnTypeOpt)
57
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
61
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(TypeWithAnnotations.Create(typeParams[i]), refKinds.IsNull ? RefKind.None : refKinds[i], ScopedKind.None, defaultValue: null, isParams: false, hasUnscopedRefAttribute: false));
68
var
method = new SynthesizedDelegateInvokeMethod(containingType, parameters, returnType, returnRefKind);
115
var
invokeMethod = createInvokeMethod(this, typeDescr.Fields);
118
static
SynthesizedDelegateInvokeMethod
createInvokeMethod(
127
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
142
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(type, field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
149
var
method = new SynthesizedDelegateInvokeMethod(containingType, parameters, returnType, returnRefKind);
189
var
invokeMethod = createInvokeMethod(this, typeDescr.Fields, typeMap);
192
static
SynthesizedDelegateInvokeMethod
createInvokeMethod(
198
var parameters = ArrayBuilder<
SynthesizedDelegateInvokeMethod
.ParameterDescription>.GetInstance(parameterCount);
203
new
SynthesizedDelegateInvokeMethod
.ParameterDescription(typeMap.SubstituteType(field.Type), field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
210
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)