50 references to DelegateInvokeMethod
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Conversions.cs (4)
2006delegateMethod = delegateType.DelegateInvokeMethod; 2053var isSynthesized = delegateType.DelegateInvokeMethod?.OriginalDefinition is SynthesizedDelegateInvokeMethod; 2551Debug.Assert(delegateType is NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { HasUseSiteError: false } } 2557NamedTypeSymbol { DelegateInvokeMethod: { } invokeMethod } => invokeMethod,
Binder\Binder_Expressions.cs (4)
5371methodGroup.PopulateWithSingleMethod(argument, sourceDelegate.DelegateInvokeMethod); 5378argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod), 5379sourceDelegate.DelegateInvokeMethod, null, BoundMethodGroupFlags.None, functionType: null, argument, LookupResultKind.Viable); 5385sourceDelegate.DelegateInvokeMethod,
Binder\Binder_Invocation.cs (1)
632methodGroup.PopulateWithSingleMethod(boundExpression, delegateType.DelegateInvokeMethod);
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1290MethodSymbol invokeMethod = delegateType.DelegateInvokeMethod;
Binder\LocalBinderFactory.cs (1)
356if (delegateType.DelegateInvokeMethod is { } invokeMethod)
Binder\Semantics\Conversions\Conversions.cs (4)
58Debug.Assert(methodSymbol == ((NamedTypeSymbol)destination).DelegateInvokeMethod); 286MethodSymbol methodSymbol = delegateType.DelegateInvokeMethod; 380var delegateInvokeMethod = delegateType.DelegateInvokeMethod; 395var conversion = ToConversion(result, methodGroup, delegateType.DelegateInvokeMethod.ParameterCount);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1462var invokeMethod = delegateType.DelegateInvokeMethod;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
1059NamedTypeSymbol n => n.DelegateInvokeMethod, 1390Debug.Assert((object)delegateType.DelegateInvokeMethod != null && !delegateType.DelegateInvokeMethod.HasUseSiteError, 1392var returnType = delegateType.DelegateInvokeMethod.ReturnTypeWithAnnotations; 1440NamedTypeSymbol n => (n.DelegateInvokeMethod, false), 2936Debug.Assert((object)target.DelegateInvokeMethod != null && !target.DelegateInvokeMethod.HasUseSiteError, 2938Debug.Assert(!target.DelegateInvokeMethod.ReturnsVoid);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
2971(object)(invoke = d.DelegateInvokeMethod) != null && 3232MethodSymbol invoke1 = d1.DelegateInvokeMethod; 3233MethodSymbol invoke2 = d2.DelegateInvokeMethod; 3344MethodSymbol invoke1 = d1.DelegateInvokeMethod; 3345MethodSymbol invoke2 = d2.DelegateInvokeMethod;
BoundTree\UnboundLambda.cs (3)
152delegateInvokeMethodOpt: delegateType?.DelegateInvokeMethod, 304var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 635return delegateType.GetDelegateType()?.DelegateInvokeMethod;
Compilation\SyntaxTreeSemanticModel.cs (1)
2094var delegateInvoke = delegateType.DelegateInvokeMethod;
Compiler\ClsComplianceChecker.cs (3)
256CheckParameterCompliance(symbol.DelegateInvokeMethod.Parameters, symbol); 476MethodSymbol method = type.DelegateInvokeMethod; 747symbol = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.cs (1)
620MethodSymbol 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)
3536var invokeMethod = n.DelegateInvokeMethod; 8514MethodSymbol? targetInvokeMethod = delegateType.DelegateInvokeMethod; 8708NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters), 9511delegateType.DelegateInvokeMethod is { } delegateInvokeMethod) 9585delegateType.DelegateInvokeMethod is { } delegateInvokeMethod && 9701var delegateInvokeMethod = delegateTypeOpt?.DelegateInvokeMethod;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
729return 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)
604return type.GetDelegateType()!.DelegateInvokeMethod;