72 references to Invocation
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
43context.RegisterOperationAction(c => DoOperationAnalysis(c, modelNameOperations), OperationKind.Invocation);
ILLink.RoslynAnalyzer (2)
COMAnalyzer.cs (1)
57 }, OperationKind.Invocation);
DataFlow\CapturedReferenceValue.cs (1)
28 case OperationKind.Invocation:
Microsoft.Analyzers.Extra (4)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
93case OperationKind.Invocation:
CallAnalysis\CallAnalyzer.cs (1)
45compilationStartContext.RegisterOperationAction(handlers.HandleInvocation, OperationKind.Invocation);
ConditionalAccessAnalyzer.cs (1)
64case OperationKind.Invocation:
UsingToStringInLoggersAnalyzer.cs (1)
33operationBlockContext.RegisterOperationAction(AnalyzeInvocation, OperationKind.Invocation);
Microsoft.Analyzers.Local (1)
CallAnalysis\CallAnalyzer.cs (1)
36compilationStartContext.RegisterOperationAction(handlers.HandleInvocation, OperationKind.Invocation);
Microsoft.AspNetCore.Analyzers (2)
MiddlewareAnalyzer.cs (1)
40}, OperationKind.Invocation);
ServicesAnalyzer.cs (1)
35}, OperationKind.Invocation);
Microsoft.AspNetCore.App.Analyzers (5)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
65}, OperationKind.Invocation);
Http\HeaderDictionaryAddAnalyzer.cs (1)
41}, OperationKind.Invocation);
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
55}, OperationKind.Invocation);
RouteHandlers\RouteHandlerAnalyzer.cs (1)
56context.RegisterOperationAction(c => DoOperationAnalysis(c, mapOperations), OperationKind.Invocation);
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (1)
307}, OperationKind.Invocation);
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
43OperationKind.Invocation,
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
43OperationKind.Invocation,
Microsoft.AspNetCore.Mvc.Analyzers (2)
AvoidHtmlPartialAnalyzer.cs (1)
43}, OperationKind.Invocation);
TagHelpersInCodeBlocksAnalyzer.cs (1)
48if (awaitOperation.Operation.Kind != OperationKind.Invocation)
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2964Debug.Assert(operationBlock.Kind is OperationKind.Invocation or OperationKind.Invalid);
Generated\Operations.Generated.cs (2)
766/// <item><description><see cref="OperationKind.Invocation"/></description></item> 5221public override OperationKind Kind => OperationKind.Invocation;
Operations\ControlFlowGraphBuilder.cs (1)
6063var validKinds = ImmutableArray.Create(OperationKind.Invocation, OperationKind.DynamicInvocation, OperationKind.Increment, OperationKind.Literal,
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
50=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference, OperationKind.PropertyReference, OperationKind.MethodReference, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
214symbolStartContext.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
64context.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
82OperationKind.Invocation);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
67OperationKind.Invocation);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
3191var analyzers = new DiagnosticAnalyzer[] { new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.Invocation) }; 3864OperationKind.Invocation);
Semantics\PrimaryConstructorTests.cs (9)
4315context.RegisterOperationAction(Handle2, OperationKind.Invocation); 4532Assert.Equal(OperationKind.Invocation, context.OperationBlocks[2].Kind); 4548Assert.Equal(OperationKind.Invocation, context.OperationBlocks[3].Kind); 4668Assert.Equal(OperationKind.Invocation, context.OperationBlocks[2].Kind); 4686Assert.Equal(OperationKind.Invocation, context.OperationBlocks[3].Kind); 4708context.RegisterOperationAction(Handle2, OperationKind.Invocation); 4740Assert.Equal(OperationKind.Invocation, context.OperationBlocks[2].Kind); 4756Assert.Equal(OperationKind.Invocation, context.OperationBlocks[3].Kind); 5683context.RegisterOperationAction(HandleInvocation, OperationKind.Invocation);
Semantics\RecordTests.cs (8)
26823context.RegisterOperationAction(Handle2, OperationKind.Invocation); 27040Assert.Equal(OperationKind.Invocation, context.OperationBlocks[2].Kind); 27056Assert.Equal(OperationKind.Invocation, context.OperationBlocks[3].Kind); 27176Assert.Equal(OperationKind.Invocation, context.OperationBlocks[2].Kind); 27194Assert.Equal(OperationKind.Invocation, context.OperationBlocks[3].Kind); 27216context.RegisterOperationAction(Handle2, OperationKind.Invocation); 27248Assert.Equal(OperationKind.Invocation, context.OperationBlocks[2].Kind); 27264Assert.Equal(OperationKind.Invocation, context.OperationBlocks[3].Kind);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
82OperationKind.Invocation);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
67OperationKind.Invocation);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (1)
6409context.RegisterOperationAction(HandleInvocation, OperationKind.Invocation);
Semantics\TopLevelStatementsTests.cs (1)
6714context.RegisterOperationAction(Handle1, OperationKind.Invocation);
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
50=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference, OperationKind.PropertyReference, OperationKind.MethodReference, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
214symbolStartContext.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
64context.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation);
Microsoft.CodeAnalysis.Test.Utilities (15)
Compilation\ControlFlowGraphVerifier.cs (1)
1911case OperationKind.Invocation:
Compilation\TestOperationVisitor.cs (1)
531Assert.Equal(OperationKind.Invocation, operation.Kind);
Diagnostics\BoxingOperationAnalyzer.cs (2)
58if (operation.Kind == OperationKind.Invocation) 71OperationKind.Invocation);
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1583OperationKind.Invocation); 2563analysisContext.RegisterOperationAction(_ => { }, OperationKind.Invocation);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
96OperationKind.Invocation);
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
84OperationKind.Invocation);
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
77OperationKind.Invocation);
Diagnostics\OperationTestAnalyzer.cs (6)
76OperationKind.Invocation, 581OperationKind.Invocation); 1117OperationKind.Invocation); 1399case OperationKind.Invocation: 1420OperationKind.Invocation); 1710OperationKind.Invocation);
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
131}, OperationKind.Invocation);
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
185OperationKind.Invocation, OperationKind.PropertyReference);
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexAnalyzer.cs (1)
58context.RegisterOperationAction(context => AnalyzeInvocation(context, regexTypeSymbol, staticMethodsToDetect), OperationKind.Invocation);