52 references to DelegateInvokeMethod
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder_Conversions.cs (4)
2958delegateMethod = delegateType.DelegateInvokeMethod; 3005var isSynthesized = delegateType.DelegateInvokeMethod?.OriginalDefinition is SynthesizedDelegateInvokeMethod; 3526Debug.Assert(delegateType is NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { HasUseSiteError: false } } 3532NamedTypeSymbol { DelegateInvokeMethod: { } invokeMethod } => invokeMethod,
Binder\Binder_Expressions.cs (4)
5635methodGroup.PopulateWithSingleMethod(argument, sourceDelegate.DelegateInvokeMethod); 5642argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod), 5643sourceDelegate.DelegateInvokeMethod, null, BoundMethodGroupFlags.None, functionType: null, argument, LookupResultKind.Viable); 5649sourceDelegate.DelegateInvokeMethod,
Binder\Binder_Invocation.cs (1)
641methodGroup.PopulateWithSingleMethod(boundExpression, delegateType.DelegateInvokeMethod);
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1322MethodSymbol invokeMethod = delegateType.DelegateInvokeMethod;
Binder\LocalBinderFactory.cs (1)
355if (delegateType.DelegateInvokeMethod is { } invokeMethod)
Binder\Semantics\Conversions\Conversions.cs (4)
58Debug.Assert(methodSymbol == ((NamedTypeSymbol)destination).DelegateInvokeMethod); 304MethodSymbol methodSymbol = delegateType.DelegateInvokeMethod; 412var delegateInvokeMethod = delegateType.DelegateInvokeMethod; 427var conversion = ToConversion(result, methodGroup, delegateType.DelegateInvokeMethod.ParameterCount);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1493var invokeMethod = delegateType.DelegateInvokeMethod;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
1087NamedTypeSymbol n => n.DelegateInvokeMethod, 1418Debug.Assert((object)delegateType.DelegateInvokeMethod != null && !delegateType.DelegateInvokeMethod.HasUseSiteError, 1420var returnType = delegateType.DelegateInvokeMethod.ReturnTypeWithAnnotations; 1468NamedTypeSymbol n => (n.DelegateInvokeMethod, false), 3064Debug.Assert((object)target.DelegateInvokeMethod != null && !target.DelegateInvokeMethod.HasUseSiteError, 3066Debug.Assert(!target.DelegateInvokeMethod.ReturnsVoid);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
3295(object)(invoke = d.DelegateInvokeMethod) != null && 3577MethodSymbol invoke1 = d1.DelegateInvokeMethod; 3578MethodSymbol invoke2 = d2.DelegateInvokeMethod; 3705MethodSymbol invoke1 = d1.DelegateInvokeMethod; 3706MethodSymbol invoke2 = d2.DelegateInvokeMethod;
BoundTree\BoundExpressionExtensions.cs (1)
146delegateType is { DelegateInvokeMethod.OriginalDefinition: SynthesizedDelegateInvokeMethod { RefKind: RefKind.RefReadOnly } })
BoundTree\UnboundLambda.cs (3)
161delegateInvokeMethodOpt: delegateType?.DelegateInvokeMethod, 319var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 674return delegateType.GetDelegateType()?.DelegateInvokeMethod;
Compilation\SyntaxTreeSemanticModel.cs (1)
2147var delegateInvoke = delegateType.DelegateInvokeMethod;
Compiler\ClsComplianceChecker.cs (3)
256CheckParameterCompliance(symbol.DelegateInvokeMethod.Parameters, symbol); 476MethodSymbol method = type.DelegateInvokeMethod; 747symbol = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.cs (1)
758MethodSymbol delegateInvoke = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
573parameters = typeSymbol.DelegateInvokeMethod.Parameters;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
528return type.DelegateInvokeMethod is { } invokeMethod && 529otherType.DelegateInvokeMethod is { } otherInvokeMethod &&
FlowAnalysis\NullableWalker.cs (6)
3856var invokeMethod = n.DelegateInvokeMethod; 9693MethodSymbol? targetInvokeMethod = delegateType.DelegateInvokeMethod; 9889NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters), 10938delegateType.DelegateInvokeMethod is { } delegateInvokeMethod) 11012delegateType.DelegateInvokeMethod is { } delegateInvokeMethod && 11140var delegateInvokeMethod = delegateTypeOpt?.DelegateInvokeMethod;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
821return DelegateCreation(node.Argument, d.DelegateInvokeMethod, node.Type, false);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
620(delegateInvoke = delegateTypeOverMethodTypeParameters.DelegateInvokeMethod) is null ||
Symbols\PublicModel\NamedTypeSymbol.cs (1)
111return UnderlyingNamedTypeSymbol.DelegateInvokeMethod.GetPublicSymbol();
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
55var delegateInvoke = (containingType.CreatedActionField.Type as NamedTypeSymbol)?.DelegateInvokeMethod;
Symbols\TypeSymbolExtensions.cs (1)
654return type.GetDelegateType()!.DelegateInvokeMethod;