18 references to RegisterOperationAction
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
69context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (6)
202symbolStartContext.RegisterOperationAction(AnalyzeMemberReferenceOperation, OperationKind.FieldReference, OperationKind.MethodReference, OperationKind.PropertyReference, OperationKind.EventReference); 203symbolStartContext.RegisterOperationAction(AnalyzeFieldInitializer, OperationKind.FieldInitializer); 204symbolStartContext.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation); 205symbolStartContext.RegisterOperationAction(AnalyzeNameOfOperation, OperationKind.NameOf); 206symbolStartContext.RegisterOperationAction(AnalyzeObjectCreationOperation, OperationKind.ObjectCreation); 214symbolStartContext.RegisterOperationAction(_ => hasUnsupportedOperation = true, OperationKind.Invalid, OperationKind.None,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
1189context.RegisterOperationAction(context
Microsoft.CodeAnalysis.Features (7)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
69context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (6)
202symbolStartContext.RegisterOperationAction(AnalyzeMemberReferenceOperation, OperationKind.FieldReference, OperationKind.MethodReference, OperationKind.PropertyReference, OperationKind.EventReference); 203symbolStartContext.RegisterOperationAction(AnalyzeFieldInitializer, OperationKind.FieldInitializer); 204symbolStartContext.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation); 205symbolStartContext.RegisterOperationAction(AnalyzeNameOfOperation, OperationKind.NameOf); 206symbolStartContext.RegisterOperationAction(AnalyzeObjectCreationOperation, OperationKind.ObjectCreation); 214symbolStartContext.RegisterOperationAction(_ => hasUnsupportedOperation = true, OperationKind.Invalid, OperationKind.None,
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
2015symbolStartContext.RegisterOperationAction(operationContext => 2757symbolStartContext.RegisterOperationAction(operationContext =>
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
181context.RegisterOperationAction(context =>