2 instantiations of UserDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
184
=> ImmutableArray.Create<DiagnosticAnalyzer>(new
UserDiagnosticAnalyzer
(), new CompilationEndDiagnosticAnalyzer());
1019
=> ImmutableArray.Create<DiagnosticAnalyzer>(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;
1046
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")] // Variable is declared but never used - Unnecessary, but suppressed
1050
#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1052
#pragma warning restore {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1120
{ CodeStyleOptions2.RemoveUnnecessarySuppressionExclusions, excludeAll ? "all" : $"CS0168, {
UserDiagnosticAnalyzer
.Descriptor0168.Id}" }
1128
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")] // Variable is declared but never used - Unnecessary, but suppressed
1132
#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1134
#pragma warning restore {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary, but suppressed
1145
? ("CS0168",
UserDiagnosticAnalyzer
.Descriptor0168.Id)
1146
: (
UserDiagnosticAnalyzer
.Descriptor0168.Id, "CS0168");
1210
#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id}
1212
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")]
1216
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category"", ""{
UserDiagnosticAnalyzer
.Descriptor0168.Id}"")]
1219
{disablePrefix}#pragma warning disable {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary{disableSuffix}
1222
{restorePrefix}#pragma warning restore {
UserDiagnosticAnalyzer
.Descriptor0168.Id} // Variable is declared but never used - Unnecessary{restoreSuffix}