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