1 type derived from AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
19
internal sealed class CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer :
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
18 references to AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (3)
54
if (newName.ValueText ==
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.DiscardVariableName &&
72
return newName.ValueText ==
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.DiscardVariableName
124
newNameNode is IdentifierNameSyntax { Identifier.ValueText:
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.DiscardVariableName } &&
Microsoft.CodeAnalysis.Features (15)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (3)
24
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
compilationAnalyzer,
31
private readonly
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
_compilationAnalyzer = compilationAnalyzer;
49
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
analyzer)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (12)
31
/// Code fixer for unused expression value diagnostics reported by <see cref="
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
"/>.
135
if (!
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.TryGetUnusedValuePreference(diagnostic, out var preference))
140
var isRemovableAssignment =
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.GetIsRemovableAssignmentDiagnostic(diagnostic);
216
if (!
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.TryGetUnusedValuePreference(diagnostic, out var preference))
221
var isRemovableAssignment =
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.GetIsRemovableAssignmentDiagnostic(diagnostic);
248
var success =
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.TryGetUnusedValuePreference(diagnostics[0], out preference);
250
removeAssignments =
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.GetIsRemovableAssignmentDiagnostic(diagnostics[0]);
255
Debug.Assert(
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.TryGetUnusedValuePreference(diagnostic, out var diagnosticPreference) &&
257
Debug.Assert(removeAssignments ==
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.GetIsRemovableAssignmentDiagnostic(diagnostic));
415
left: generator.IdentifierName(
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.DiscardVariableName),
546
? document.GetRequiredLanguageService<SyntaxGeneratorInternal>().Identifier(
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.DiscardVariableName)
678
var isUnusedLocalAssignment =
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer
.GetIsUnusedLocalDiagnostic(diagnostic);