src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (17)
212symbolStartContext.RegisterOperationAction(AnalyzeDeconstructionAssignment, OperationKind.DeconstructionAssignment);
213symbolStartContext.RegisterOperationAction(AnalyzeFieldInitializer, OperationKind.FieldInitializer);
214symbolStartContext.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation);
215symbolStartContext.RegisterOperationAction(AnalyzeLoopOperation, OperationKind.Loop);
216symbolStartContext.RegisterOperationAction(AnalyzeMemberReferenceOperation, OperationKind.FieldReference, OperationKind.MethodReference, OperationKind.PropertyReference, OperationKind.EventReference);
217symbolStartContext.RegisterOperationAction(AnalyzeNameOfOperation, OperationKind.NameOf);
218symbolStartContext.RegisterOperationAction(AnalyzeObjectCreationOperation, OperationKind.ObjectCreation);
235if (operation is { Kind: OperationKind.None, Parent: INameOfOperation { Argument: var nameofArgument } } &&
243OperationKind.Invalid,
244OperationKind.None,
245OperationKind.DynamicIndexerAccess,
246OperationKind.DynamicInvocation,
247OperationKind.DynamicMemberReference,
248OperationKind.DynamicObjectCreation);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (17)
212symbolStartContext.RegisterOperationAction(AnalyzeDeconstructionAssignment, OperationKind.DeconstructionAssignment);
213symbolStartContext.RegisterOperationAction(AnalyzeFieldInitializer, OperationKind.FieldInitializer);
214symbolStartContext.RegisterOperationAction(AnalyzeInvocationOperation, OperationKind.Invocation);
215symbolStartContext.RegisterOperationAction(AnalyzeLoopOperation, OperationKind.Loop);
216symbolStartContext.RegisterOperationAction(AnalyzeMemberReferenceOperation, OperationKind.FieldReference, OperationKind.MethodReference, OperationKind.PropertyReference, OperationKind.EventReference);
217symbolStartContext.RegisterOperationAction(AnalyzeNameOfOperation, OperationKind.NameOf);
218symbolStartContext.RegisterOperationAction(AnalyzeObjectCreationOperation, OperationKind.ObjectCreation);
235if (operation is { Kind: OperationKind.None, Parent: INameOfOperation { Argument: var nameofArgument } } &&
243OperationKind.Invalid,
244OperationKind.None,
245OperationKind.DynamicIndexerAccess,
246OperationKind.DynamicInvocation,
247OperationKind.DynamicMemberReference,
248OperationKind.DynamicObjectCreation);