50 references to DelegateInvokeMethod
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Conversions.cs (4)
2278delegateMethod = delegateType.DelegateInvokeMethod; 2325var isSynthesized = delegateType.DelegateInvokeMethod?.OriginalDefinition is SynthesizedDelegateInvokeMethod; 2823Debug.Assert(delegateType is NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { HasUseSiteError: false } } 2829NamedTypeSymbol { DelegateInvokeMethod: { } invokeMethod } => invokeMethod,
Binder\Binder_Expressions.cs (4)
5463methodGroup.PopulateWithSingleMethod(argument, sourceDelegate.DelegateInvokeMethod); 5470argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod), 5471sourceDelegate.DelegateInvokeMethod, null, BoundMethodGroupFlags.None, functionType: null, argument, LookupResultKind.Viable); 5477sourceDelegate.DelegateInvokeMethod,
Binder\Binder_Invocation.cs (1)
633methodGroup.PopulateWithSingleMethod(boundExpression, delegateType.DelegateInvokeMethod);
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1289MethodSymbol invokeMethod = delegateType.DelegateInvokeMethod;
Binder\LocalBinderFactory.cs (1)
356if (delegateType.DelegateInvokeMethod is { } invokeMethod)
Binder\Semantics\Conversions\Conversions.cs (4)
58Debug.Assert(methodSymbol == ((NamedTypeSymbol)destination).DelegateInvokeMethod); 291MethodSymbol methodSymbol = delegateType.DelegateInvokeMethod; 399var delegateInvokeMethod = delegateType.DelegateInvokeMethod; 414var conversion = ToConversion(result, methodGroup, delegateType.DelegateInvokeMethod.ParameterCount);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1478var invokeMethod = delegateType.DelegateInvokeMethod;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
1084NamedTypeSymbol n => n.DelegateInvokeMethod, 1415Debug.Assert((object)delegateType.DelegateInvokeMethod != null && !delegateType.DelegateInvokeMethod.HasUseSiteError, 1417var returnType = delegateType.DelegateInvokeMethod.ReturnTypeWithAnnotations; 1465NamedTypeSymbol n => (n.DelegateInvokeMethod, false), 3064Debug.Assert((object)target.DelegateInvokeMethod != null && !target.DelegateInvokeMethod.HasUseSiteError, 3066Debug.Assert(!target.DelegateInvokeMethod.ReturnsVoid);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
3272(object)(invoke = d.DelegateInvokeMethod) != null && 3554MethodSymbol invoke1 = d1.DelegateInvokeMethod; 3555MethodSymbol invoke2 = d2.DelegateInvokeMethod; 3682MethodSymbol invoke1 = d1.DelegateInvokeMethod; 3683MethodSymbol invoke2 = d2.DelegateInvokeMethod;
BoundTree\UnboundLambda.cs (3)
152delegateInvokeMethodOpt: delegateType?.DelegateInvokeMethod, 304var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 656return delegateType.GetDelegateType()?.DelegateInvokeMethod;
Compilation\SyntaxTreeSemanticModel.cs (1)
2149var delegateInvoke = delegateType.DelegateInvokeMethod;
Compiler\ClsComplianceChecker.cs (3)
256CheckParameterCompliance(symbol.DelegateInvokeMethod.Parameters, symbol); 476MethodSymbol method = type.DelegateInvokeMethod; 747symbol = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.cs (1)
614MethodSymbol delegateInvoke = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
573parameters = typeSymbol.DelegateInvokeMethod.Parameters;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
514return type.DelegateInvokeMethod is { } invokeMethod && 515otherType.DelegateInvokeMethod is { } otherInvokeMethod &&
FlowAnalysis\NullableWalker.cs (6)
3754var invokeMethod = n.DelegateInvokeMethod; 8832MethodSymbol? targetInvokeMethod = delegateType.DelegateInvokeMethod; 9028NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters), 9842delegateType.DelegateInvokeMethod is { } delegateInvokeMethod) 9916delegateType.DelegateInvokeMethod is { } delegateInvokeMethod && 10033var delegateInvokeMethod = delegateTypeOpt?.DelegateInvokeMethod;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
801return DelegateCreation(node.Argument, d.DelegateInvokeMethod, node.Type, false);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
619(delegateInvoke = delegateTypeOverMethodTypeParameters.DelegateInvokeMethod) is null ||
Symbols\PublicModel\NamedTypeSymbol.cs (1)
111return UnderlyingNamedTypeSymbol.DelegateInvokeMethod.GetPublicSymbol();
Symbols\TypeSymbolExtensions.cs (1)
613return type.GetDelegateType()!.DelegateInvokeMethod;