51 references to DelegateInvoke
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
327case MethodKind.DelegateInvoke:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
879((IMethodSymbol)symbol).MethodKind == MethodKind.DelegateInvoke;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
200if (x is { MethodKind: MethodKind.DelegateInvoke, ContainingType.IsAnonymousType: true })
Microsoft.CodeAnalysis.CSharp (12)
Compiler\ClsComplianceChecker.cs (1)
736if (method.MethodKind == MethodKind.DelegateInvoke)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
416case MethodKind.DelegateInvoke:
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1273return MethodKind.DelegateInvoke;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
885case "" when !ContainingSymbol.RequiresInstanceReceiver() || ContainingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke }:
Symbols\MethodSymbol.cs (1)
612case MethodKind.DelegateInvoke:
Symbols\PublicModel\MethodSymbol.cs (2)
45case MethodKind.DelegateInvoke: 46return MethodKind.DelegateInvoke;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1345if (!ContainingSymbol.RequiresInstanceReceiver() || ContainingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke or MethodKind.LambdaMethod })
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
262: base(delegateType, returnType, syntax, MethodKind.DelegateInvoke, refKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public)
Symbols\Symbol.cs (2)
678case MethodKind.DelegateInvoke: 732case MethodKind.DelegateInvoke:
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
95get { return MethodKind.DelegateInvoke; }
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1336if (originalMemberSymbol is not IMethodSymbol { MethodKind: MethodKind.DelegateInvoke } originalMethodSymbol || 1337rewrittenMemberSymbol is not IMethodSymbol { MethodKind: MethodKind.DelegateInvoke } rewrittenMethodSymbol)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (4)
96Assert.False(ideEngineAnalyzer.CallLog.Any(e => e.CallerName == method && e.MethodKind == MethodKind.DelegateInvoke && e.ReturnsVoid)); 97Assert.False(ideEngineAnalyzer.CallLog.Any(e => e.CallerName == method && e.MethodKind == MethodKind.DelegateInvoke && !e.ReturnsVoid)); 109Assert.False(compilerEngineAnalyzer.CallLog.Any(e => e.CallerName == method && e.MethodKind == MethodKind.DelegateInvoke && e.ReturnsVoid)); 110Assert.False(compilerEngineAnalyzer.CallLog.Any(e => e.CallerName == method && e.MethodKind == MethodKind.DelegateInvoke && !e.ReturnsVoid));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ParamsCollectionTests.cs (1)
8885bool hasBody = p.ContainingSymbol is not MethodSymbol { MethodKind: MethodKind.DelegateInvoke };
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\DelegateTests.cs (1)
112Assert.Equal(MethodKind.DelegateInvoke, invoke.MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1336if (originalMemberSymbol is not IMethodSymbol { MethodKind: MethodKind.DelegateInvoke } originalMethodSymbol || 1337rewrittenMemberSymbol is not IMethodSymbol { MethodKind: MethodKind.DelegateInvoke } rewrittenMethodSymbol)
Microsoft.CodeAnalysis.Features (2)
ChangeSignature\AbstractChangeSignatureService.cs (1)
312if (methodSymbol.MethodKind == MethodKind.DelegateInvoke)
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
38=> symbol.MethodKind == MethodKind.DelegateInvoke;
Microsoft.CodeAnalysis.VisualBasic (17)
Binding\Binder_Delegates.vb (2)
1147Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke) 1238If method.MethodKind = MethodKind.DelegateInvoke AndAlso
Binding\Binder_Utils.vb (2)
862Debug.Assert(Not (container.Kind = SymbolKind.Method AndAlso DirectCast(container, MethodSymbol).MethodKind = MethodKind.DelegateInvoke)) 1647MethodKindDelegateInvoke = CUInt(MethodKind.DelegateInvoke) << MethodKindShift
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
391If method.MethodKind = MethodKind.DelegateInvoke Then
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1466If method.MethodKind = MethodKind.DelegateInvoke AndAlso
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
36Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke)
Semantics\Conversions.vb (1)
4177Debug.Assert(toDelegateInvokeMethod.MethodKind = MethodKind.DelegateInvoke)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
271MethodKind.DelegateInvoke, 311Case MethodKind.Ordinary, MethodKind.DelegateInvoke, MethodKind.DeclareMethod
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
409Return MethodKind.DelegateInvoke
Symbols\Source\OverrideHidingHelper.vb (1)
499Case MethodKind.Conversion, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Ordinary, MethodKind.DeclareMethod,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
974If syntax Is Nothing AndAlso method.MethodKind = MethodKind.DelegateInvoke Then
Symbols\Source\SourceParameterSymbol.vb (1)
103If If(TryCast(Me.ContainingSymbol, MethodSymbol)?.MethodKind = MethodKind.DelegateInvoke, False) AndAlso
Symbols\Symbol.vb (2)
620Case MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Conversion 658Case MethodKind.Ordinary, MethodKind.DeclareMethod, MethodKind.ReducedExtension, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Conversion
Symbols\Symbol_Attributes.vb (1)
87MethodKind.DelegateInvoke
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (1)
308Assert.Equal(MethodKind.DelegateInvoke, x16.GetMember(Of MethodSymbol)("Invoke").MethodKind)
SymbolsTests\Source\DelegateTests.vb (1)
248Assert.Equal(MethodKind.DelegateInvoke, invoke.MethodKind)
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
17MethodKind.DelegateInvoke or
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
213if (containingMethod.MethodKind == MethodKind.DelegateInvoke)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
327case MethodKind.DelegateInvoke:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
879((IMethodSymbol)symbol).MethodKind == MethodKind.DelegateInvoke;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
200if (x is { MethodKind: MethodKind.DelegateInvoke, ContainingType.IsAnonymousType: true })