89 references to DelegateInvokeMethod
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Conversions.cs (4)
744delegateMethod = delegateType.DelegateInvokeMethod; 781var isSynthesized = delegateType.DelegateInvokeMethod?.OriginalDefinition is SynthesizedDelegateInvokeMethod; 1276Debug.Assert(delegateType is NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { HasUseSiteError: false } } 1282NamedTypeSymbol { DelegateInvokeMethod: { } invokeMethod } => invokeMethod,
Binder\Binder_Expressions.cs (4)
4612methodGroup.PopulateWithSingleMethod(argument, sourceDelegate.DelegateInvokeMethod); 4619argument.Syntax, default, WellKnownMemberNames.DelegateInvokeName, ImmutableArray.Create(sourceDelegate.DelegateInvokeMethod), 4620sourceDelegate.DelegateInvokeMethod, null, BoundMethodGroupFlags.None, functionType: null, argument, LookupResultKind.Viable); 4626sourceDelegate.DelegateInvokeMethod,
Binder\Binder_Invocation.cs (1)
523methodGroup.PopulateWithSingleMethod(boundExpression, delegateType.DelegateInvokeMethod);
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1265MethodSymbol invokeMethod = delegateType.DelegateInvokeMethod;
Binder\LocalBinderFactory.cs (1)
315if (delegateType.DelegateInvokeMethod is { } invokeMethod)
Binder\Semantics\Conversions\Conversions.cs (4)
58Debug.Assert(methodSymbol == ((NamedTypeSymbol)destination).DelegateInvokeMethod); 188MethodSymbol methodSymbol = delegateType.DelegateInvokeMethod; 282var delegateInvokeMethod = delegateType.DelegateInvokeMethod; 297var conversion = ToConversion(result, methodGroup, delegateType.DelegateInvokeMethod.ParameterCount);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1403var invokeMethod = delegateType.DelegateInvokeMethod;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
968NamedTypeSymbol n => n.DelegateInvokeMethod, 1299Debug.Assert((object)delegateType.DelegateInvokeMethod != null && !delegateType.DelegateInvokeMethod.HasUseSiteError, 1301var returnType = delegateType.DelegateInvokeMethod.ReturnTypeWithAnnotations; 1349NamedTypeSymbol n => (n.DelegateInvokeMethod, false), 2858Debug.Assert((object)target.DelegateInvokeMethod != null && !target.DelegateInvokeMethod.HasUseSiteError, 2860Debug.Assert(!target.DelegateInvokeMethod.ReturnsVoid);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
2542(object)(invoke = d.DelegateInvokeMethod) != null && 2814MethodSymbol invoke1 = d1.DelegateInvokeMethod; 2815MethodSymbol invoke2 = d2.DelegateInvokeMethod; 2926MethodSymbol invoke1 = d1.DelegateInvokeMethod; 2927MethodSymbol invoke2 = d2.DelegateInvokeMethod;
BoundTree\UnboundLambda.cs (3)
152delegateInvokeMethodOpt: delegateType?.DelegateInvokeMethod, 304var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 615return delegateType.GetDelegateType()?.DelegateInvokeMethod;
Compilation\SyntaxTreeSemanticModel.cs (1)
2083var delegateInvoke = delegateType.DelegateInvokeMethod;
Compiler\ClsComplianceChecker.cs (3)
249CheckParameterCompliance(symbol.DelegateInvokeMethod.Parameters, symbol); 469MethodSymbol method = type.DelegateInvokeMethod; 740symbol = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.cs (1)
613MethodSymbol delegateInvoke = ((NamedTypeSymbol)symbol).DelegateInvokeMethod;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
573parameters = typeSymbol.DelegateInvokeMethod.Parameters;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
724return type.DelegateInvokeMethod is { } invokeMethod && 725otherType.DelegateInvokeMethod is { } otherInvokeMethod &&
FlowAnalysis\NullableWalker.cs (6)
3400var invokeMethod = n.DelegateInvokeMethod; 7809MethodSymbol? targetInvokeMethod = delegateType.DelegateInvokeMethod; 7997NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters), 8780delegateType.DelegateInvokeMethod is { } delegateInvokeMethod) 8854delegateType.DelegateInvokeMethod is { } delegateInvokeMethod && 8970var delegateInvokeMethod = delegateTypeOpt?.DelegateInvokeMethod;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
722return DelegateCreation(node.Argument, d.DelegateInvokeMethod, node.Type, false);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
634(delegateInvoke = delegateTypeOverMethodTypeParameters.DelegateInvokeMethod) is null ||
Symbols\PublicModel\NamedTypeSymbol.cs (1)
111return UnderlyingNamedTypeSymbol.DelegateInvokeMethod.GetPublicSymbol();
Symbols\TypeSymbolExtensions.cs (1)
549return type.GetDelegateType()!.DelegateInvokeMethod;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
Emit\EmitMetadataTests.cs (3)
2070var invoke = myDel.DelegateInvokeMethod; 2599var parameters = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters; 2609var delegateParameters = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters;
Emit\InAttributeModifierTests.cs (6)
1954var invokeParameter = type.DelegateInvokeMethod.Parameters.Single(); 1979var invokeMethod = type.DelegateInvokeMethod; 3664var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters.Single(); 3697var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 3736var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters.Single(); 3778var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Attributes\AttributeTests_RefReadOnly.cs (4)
500var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 521var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.GetParameters().Single(); 536var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 560var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod;
Attributes\AttributeTests_Tuples.cs (1)
347var invokeMethod = delegate1.DelegateInvokeMethod;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RefFieldTests.cs (8)
10671VerifyParameterSymbol(delegateType.DelegateInvokeMethod.Parameters[parameterIndex], $"{expectedDisplayType} arg{parameterIndex + 1}", expectedRefKind, expectedScope, expectedHasUnscopedRefAttribute); 10708VerifyParameterSymbol(comp.GetMember<NamedTypeSymbol>("D1").DelegateInvokeMethod.Parameters[0], "scoped R r1", RefKind.None, ScopedKind.ScopedValue); 10709VerifyParameterSymbol(comp.GetMember<NamedTypeSymbol>("D2").DelegateInvokeMethod.Parameters[0], "scoped ref R r2", RefKind.Ref, ScopedKind.ScopedRef); 17399var delegateInvokeMethods = decls.Select(d => ((ILocalSymbol)model.GetDeclaredSymbol(d)).Type.GetSymbol<NamedTypeSymbol>().DelegateInvokeMethod).ToArray(); 24214VerifyParameterSymbol(delegateType.DelegateInvokeMethod.Parameters[parameterIndex], $"{expectedDisplayType} arg", expectedRefKind, expectedScope); 26039Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope); 26091Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope); 26143Assert.Equal(ScopedKind.None, type.DelegateInvokeMethod.Parameters.Single().EffectiveScope);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Symbols\Source\DelegateTests.cs (17)
75Assert.Equal(d.Locations[0], d.DelegateInvokeMethod.Locations[0], EqualityComparer<Location>.Default); 111var invoke = fieldType.DelegateInvokeMethod; 136Assert.Equal(1, v.DelegateInvokeMethod.Parameters.Length); 158var invoke = myDel.DelegateInvokeMethod; 214Assert.Equal(d.DelegateInvokeMethod.Parameters[0].Type, q); 340MethodSymbol invoke = d.DelegateInvokeMethod; 394MethodSymbol invoke = d.DelegateInvokeMethod; 425MethodSymbol invoke = d.DelegateInvokeMethod; 456MethodSymbol invoke = d.DelegateInvokeMethod; 490MethodSymbol invoke = d.DelegateInvokeMethod; 782Assert.True(d.DelegateInvokeMethod.ReturnsByRef); 783Assert.False(d.DelegateInvokeMethod.ReturnsByRefReadonly); 784Assert.Equal(RefKind.Ref, d.DelegateInvokeMethod.RefKind); 799Assert.False(d.DelegateInvokeMethod.ReturnsByRef); 800Assert.True(d.DelegateInvokeMethod.ReturnsByRefReadonly); 801Assert.Equal(RefKind.RefReadOnly, d.DelegateInvokeMethod.RefKind); 804Assert.Equal(RefKind.In, d.DelegateInvokeMethod.Parameters[0].RefKind);