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