6 instantiations of NamedTypeAnalyzer
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (6)
327using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new NamedTypeAnalyzer(DiagnosticSeverity.Hidden)); 338using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new NamedTypeAnalyzer(DiagnosticSeverity.Hidden)); 349using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new NamedTypeAnalyzer(DiagnosticSeverity.Hidden)); 494analyzers.Add(new NamedTypeAnalyzer()); 558new NamedTypeAnalyzer(), 699var analyzer2 = new NamedTypeAnalyzer();
11 references to NamedTypeAnalyzer
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (11)
341var newSpecificOptions = project.CompilationOptions.SpecificDiagnosticOptions.Add(NamedTypeAnalyzer.DiagnosticId, ReportDiagnostic.Warn); 356dotnet_diagnostic.{NamedTypeAnalyzer.DiagnosticId}.severity = warning 499analyzers.Add(new DiagnosticSuppressorForId(NamedTypeAnalyzer.DiagnosticId)); 544Assert.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 677Assert.Equal($"#pragma warning disable {NamedTypeAnalyzer.DiagnosticId} // Unnecessary", pragma1); 684Assert.Equal($@"System.Diagnostics.CodeAnalysis.SuppressMessage(""Category2"", ""{NamedTypeAnalyzer.DiagnosticId}"")", attribute1); 699var analyzer2 = new NamedTypeAnalyzer();