83 references to RegisterOperationAction
Microsoft.AspNetCore.App.Analyzers (1)
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
22context.RegisterOperationAction(context =>
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
40context.RegisterOperationAction(
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
40context.RegisterOperationAction(
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
28context.RegisterOperationAction(AnalyzeAction, OperationKind.TypeOf);
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
45=> context.RegisterOperationAction(AnalyzeOperation, OperationKind);
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
50=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference, OperationKind.PropertyReference, OperationKind.MethodReference, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (1)
40=> context.RegisterOperationAction(AnalyzeInterpolation, OperationKind.Interpolation);
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
39=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.Conditional);
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
31=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
3862context.RegisterOperationAction(
Semantics\PrimaryConstructorTests.cs (12)
4314context.RegisterOperationAction(Handle1, OperationKind.ConstructorBody); 4315context.RegisterOperationAction(Handle2, OperationKind.Invocation); 4316context.RegisterOperationAction(Handle3, OperationKind.Literal); 4317context.RegisterOperationAction(Handle4, OperationKind.ParameterInitializer); 4318context.RegisterOperationAction(Handle5, OperationKind.PropertyInitializer); 4319context.RegisterOperationAction(Handle5, OperationKind.FieldInitializer); 5682context.RegisterOperationAction(HandleConstructorBody, OperationKind.ConstructorBody); 5683context.RegisterOperationAction(HandleInvocation, OperationKind.Invocation); 5684context.RegisterOperationAction(HandleLiteral, OperationKind.Literal); 5685context.RegisterOperationAction(HandleParameterInitializer, OperationKind.ParameterInitializer); 5686context.RegisterOperationAction(Fail, OperationKind.PropertyInitializer); 5687context.RegisterOperationAction(Fail, OperationKind.FieldInitializer);
Semantics\RecordTests.cs (6)
26777context.RegisterOperationAction(Handle1, OperationKind.ConstructorBody); 26778context.RegisterOperationAction(Handle2, OperationKind.Invocation); 26779context.RegisterOperationAction(Handle3, OperationKind.Literal); 26780context.RegisterOperationAction(Handle4, OperationKind.ParameterInitializer); 26781context.RegisterOperationAction(Handle5, OperationKind.PropertyInitializer); 26782context.RegisterOperationAction(Handle5, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RecordStructTests.cs (6)
6408context.RegisterOperationAction(HandleConstructorBody, OperationKind.ConstructorBody); 6409context.RegisterOperationAction(HandleInvocation, OperationKind.Invocation); 6410context.RegisterOperationAction(HandleLiteral, OperationKind.Literal); 6411context.RegisterOperationAction(HandleParameterInitializer, OperationKind.ParameterInitializer); 6412context.RegisterOperationAction(Fail, OperationKind.PropertyInitializer); 6413context.RegisterOperationAction(Fail, OperationKind.FieldInitializer);
Semantics\TopLevelStatementsTests.cs (2)
6714context.RegisterOperationAction(Handle1, OperationKind.Invocation); 6715context.RegisterOperationAction(Handle2, OperationKind.Block);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
1209context.RegisterOperationAction(context =>
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
2401context.RegisterOperationAction(Sub(operationContext As OperationAnalysisContext)
Microsoft.CodeAnalysis.Features (6)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
28context.RegisterOperationAction(AnalyzeAction, OperationKind.TypeOf);
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
45=> context.RegisterOperationAction(AnalyzeOperation, OperationKind);
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
50=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference, OperationKind.PropertyReference, OperationKind.MethodReference, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (1)
40=> context.RegisterOperationAction(AnalyzeInterpolation, OperationKind.Interpolation);
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
39=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.Conditional);
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
31=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
Microsoft.CodeAnalysis.Test.Utilities (39)
Diagnostics\BoxingOperationAnalyzer.cs (1)
40context.RegisterOperationAction(
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
1351context.RegisterOperationAction(operationContext => 1434context.RegisterOperationAction(AnalyzerOperation, OperationKind.FieldReference); 1464context.RegisterOperationAction(operationContext => 2563analysisContext.RegisterOperationAction(_ => { }, OperationKind.Invocation); 2887context.RegisterOperationAction( 3152context.RegisterOperationAction(context =>
Diagnostics\OperationTestAnalyzer.cs (32)
53context.RegisterOperationAction( 141context.RegisterOperationAction(AnalyzeOperation, OperationKind.Loop); 335context.RegisterOperationAction( 627context.RegisterOperationAction( 664context.RegisterOperationAction( 712context.RegisterOperationAction( 749context.RegisterOperationAction( 791context.RegisterOperationAction( 950context.RegisterOperationAction( 1031context.RegisterOperationAction( 1051context.RegisterOperationAction( 1058context.RegisterOperationAction( 1065context.RegisterOperationAction( 1097context.RegisterOperationAction( 1119context.RegisterOperationAction( 1178context.RegisterOperationAction( 1189context.RegisterOperationAction( 1223context.RegisterOperationAction( 1310context.RegisterOperationAction( 1375context.RegisterOperationAction( 1446context.RegisterOperationAction( 1457context.RegisterOperationAction( 1512context.RegisterOperationAction( 1528context.RegisterOperationAction( 1566context.RegisterOperationAction( 1690context.RegisterOperationAction( 1842context.RegisterOperationAction( 1853context.RegisterOperationAction( 1968context.RegisterOperationAction( 2012context.RegisterOperationAction( 2048context.RegisterOperationAction( 2076context.RegisterOperationAction(