36 references to DiagnosticSuppressorForId
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
9415analyzers: [new WarningDiagnosticAnalyzer(), new DiagnosticSuppressorForId("Warning01", "Suppressor01")], 12528var suppressor = new DiagnosticSuppressorForId("CS0078"); 12575var suppressor = new DiagnosticSuppressorForId("CS1522"); 12631var suppressor = new DiagnosticSuppressorForId("CS0169"); 12697var precedenceInversionWarningSuppressor = new DiagnosticSuppressorForId("CS8848"); 12797var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 12907var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 12982analyzers: new[] { new DiagnosticSuppressorForId("CS1001") }); 13008analyzers: new[] { new DiagnosticSuppressorForId("CS0246") }); 13033var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13071suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13099var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
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);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
499analyzers.Add(new DiagnosticSuppressorForId(NamedTypeAnalyzer.DiagnosticId));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
9754Dim suppressor = New DiagnosticSuppressorForId("BC40008") 9803Dim suppressor = New DiagnosticSuppressorForId("BC40008") 9842Dim analyzers = {New DiagnosticSuppressorForId("BC30203")} 9871Dim suppressor = New DiagnosticSuppressorForId(analyzer.Descriptor.Id) 9907suppressor = New DiagnosticSuppressorForId(analyzer.Descriptor.Id) 9935Dim suppressor = New DiagnosticSuppressorForId(analyzer.Descriptor.Id)