2 instantiations of UserDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
184
=> [new
UserDiagnosticAnalyzer
(), new CompilationEndDiagnosticAnalyzer()];
1020
=> [new CSharpCompilerDiagnosticAnalyzer(), new
UserDiagnosticAnalyzer
()];
16 references to UserDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (16)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (16)
186
protected override string VariableDeclaredButNotUsedDiagnosticId =>
UserDiagnosticAnalyzer
.Descriptor0168.Id;
187
protected override string VariableAssignedButNotUsedDiagnosticId =>
UserDiagnosticAnalyzer
.Descriptor0219.Id;
1047
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")] // Variable is declared but never used - Unnecessary, but suppressed
1051
#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1053
#pragma warning restore {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1121
{ CodeStyleOptions2.RemoveUnnecessarySuppressionExclusions, excludeAll ? "all" : $"CS0168, {
UserDiagnosticAnalyzer
.Descriptor0168.Id}" }
1129
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")] // Variable is declared but never used - Unnecessary, but suppressed
1133
#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1135
#pragma warning restore {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1146
? ("CS0168",
UserDiagnosticAnalyzer
.Descriptor0168.Id)
1147
: (
UserDiagnosticAnalyzer
.Descriptor0168.Id, "CS0168");
1211
#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id}
1213
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")]
1217
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")]
1220
{disablePrefix}#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary{disableSuffix}
1223
{restorePrefix}#pragma warning restore {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary{restoreSuffix}