6 instantiations of NamedTypeAnalyzer
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (6)
327
using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new
NamedTypeAnalyzer
(DiagnosticSeverity.Hidden));
338
using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new
NamedTypeAnalyzer
(DiagnosticSeverity.Hidden));
349
using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new
NamedTypeAnalyzer
(DiagnosticSeverity.Hidden));
494
analyzers.Add(new
NamedTypeAnalyzer
());
558
new
NamedTypeAnalyzer
(),
699
var analyzer2 = new
NamedTypeAnalyzer
();
11 references to NamedTypeAnalyzer
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (11)
341
var newSpecificOptions = project.CompilationOptions.SpecificDiagnosticOptions.Add(
NamedTypeAnalyzer
.DiagnosticId, ReportDiagnostic.Warn);
356
dotnet_diagnostic.{
NamedTypeAnalyzer
.DiagnosticId}.severity = warning
499
analyzers.Add(new DiagnosticSuppressorForId(
NamedTypeAnalyzer
.DiagnosticId));
544
Assert.Equal(
NamedTypeAnalyzer
.DiagnosticId, diagnostic.Id);
567
#pragma warning disable {
NamedTypeAnalyzer
.DiagnosticId} // Unnecessary
570
#pragma warning disable {
NamedTypeAnalyzer
.DiagnosticId} // Necessary
584
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category1"", ""{
NamedTypeAnalyzer
.DiagnosticId}"")] // Necessary
587
[System.Diagnostics.CodeAnalysis.SuppressMessage(""Category2"", ""{
NamedTypeAnalyzer
.DiagnosticId}"")] // Unnecessary
677
Assert.Equal($"#pragma warning disable {
NamedTypeAnalyzer
.DiagnosticId} // Unnecessary", pragma1);
684
Assert.Equal($@"System.Diagnostics.CodeAnalysis.SuppressMessage(""Category2"", ""{
NamedTypeAnalyzer
.DiagnosticId}"")", attribute1);
699
var
analyzer2 = new NamedTypeAnalyzer();