33 instantiations of DiagnosticSuppressorForId
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (13)
CommandLineTests.cs (13)
9450analyzers: [new WarningDiagnosticAnalyzer(), new ConcurrentAnalyzer(["C"]), new DiagnosticSuppressorForId("Warning01", "Suppressor01")], 9482analyzers: [new ConcurrentAnalyzer(["C"]), new DiagnosticSuppressorForId("Warning01", "Suppressor01")], 12634var suppressor = new DiagnosticSuppressorForId("CS0078"); 12681var suppressor = new DiagnosticSuppressorForId("CS1522"); 12737var suppressor = new DiagnosticSuppressorForId("CS0169"); 12803var precedenceInversionWarningSuppressor = new DiagnosticSuppressorForId("CS8848"); 12903var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 13013var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 13088analyzers: new[] { new DiagnosticSuppressorForId("CS1001") }); 13114analyzers: new[] { new DiagnosticSuppressorForId("CS0246") }); 13139var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13177suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13205var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
Diagnostics\DiagnosticSuppressorTests.cs (17)
66var analyzers = new DiagnosticAnalyzer[] { new DiagnosticSuppressorForId("CS1522") }; 109var analyzers = new DiagnosticAnalyzer[] { new DiagnosticSuppressorForId("CS1522") }; 152var analyzers = new DiagnosticAnalyzer[] { new DiagnosticSuppressorForId("CS1522") }; 177var analyzers = new DiagnosticAnalyzer[] { new DiagnosticSuppressorForId("CS0169") }; 200var analyzers = new DiagnosticAnalyzer[] { new DiagnosticSuppressorForId("CS1001") }; 221var analyzers = new DiagnosticAnalyzer[] { new DiagnosticSuppressorForId("CS0246") }; 240var analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new DiagnosticSuppressorForId(analyzer.Descriptor.Id) }; 262var analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new DiagnosticSuppressorForId(analyzer.Descriptor.Id), new DiagnosticSuppressorForId(analyzer.Descriptor.Id) }; 267analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId: "SPR0001"), new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId: "SPR0002") }; 286var suppressor1 = new DiagnosticSuppressorForId("CS0169"); 287var suppressor2 = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 309var analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId) }; 355var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 639var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId); 650var suppressor2 = new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId2);
FieldKeywordTests.cs (2)
11626[new CommonDiagnosticAnalyzers.DiagnosticSuppressorForId("CS8603"), new CommonDiagnosticAnalyzers.DiagnosticSuppressorForId("CS8625")],
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
436analyzers.Add(new DiagnosticSuppressorForId(NamedTypeAnalyzer.DiagnosticId));
16 references to DiagnosticSuppressorForId
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
CommandLineTests.cs (11)
9457Assert.Contains($"{nameof(DiagnosticSuppressorForId)} (Suppressor01)", output, StringComparison.Ordinal); 9465Assert.DoesNotContain(nameof(DiagnosticSuppressorForId), nonConcurrentSection, StringComparison.Ordinal); 9488Assert.Contains($"{nameof(DiagnosticSuppressorForId)} (Suppressor01)", output, StringComparison.Ordinal); 12634var suppressor = new DiagnosticSuppressorForId("CS0078"); 12681var suppressor = new DiagnosticSuppressorForId("CS1522"); 12737var suppressor = new DiagnosticSuppressorForId("CS0169"); 12803var precedenceInversionWarningSuppressor = new DiagnosticSuppressorForId("CS8848"); 12903var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 13013var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 13139var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13205var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Diagnostics\DiagnosticSuppressorTests.cs (5)
286var suppressor1 = new DiagnosticSuppressorForId("CS0169"); 287var suppressor2 = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 355var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 639var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId); 650var suppressor2 = new DiagnosticSuppressorForId(analyzer.Descriptor.Id, suppressionId2);