36 references to DiagnosticSuppressorForId
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
9445
analyzers: [new WarningDiagnosticAnalyzer(), new
DiagnosticSuppressorForId
("Warning01", "Suppressor01")],
12565
var suppressor = new
DiagnosticSuppressorForId
("CS0078");
12612
var suppressor = new
DiagnosticSuppressorForId
("CS1522");
12668
var suppressor = new
DiagnosticSuppressorForId
("CS0169");
12734
var precedenceInversionWarningSuppressor = new
DiagnosticSuppressorForId
("CS8848");
12834
var partialStructWarningSuppressor = new
DiagnosticSuppressorForId
("CS0282");
12944
var partialStructWarningSuppressor = new
DiagnosticSuppressorForId
("CS0282");
13019
analyzers: new[] { new
DiagnosticSuppressorForId
("CS1001") });
13045
analyzers: new[] { new
DiagnosticSuppressorForId
("CS0246") });
13070
var suppressor = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id);
13108
suppressor = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id);
13136
var suppressor = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Diagnostics\DiagnosticSuppressorTests.cs (17)
66
var analyzers = new DiagnosticAnalyzer[] { new
DiagnosticSuppressorForId
("CS1522") };
109
var analyzers = new DiagnosticAnalyzer[] { new
DiagnosticSuppressorForId
("CS1522") };
152
var analyzers = new DiagnosticAnalyzer[] { new
DiagnosticSuppressorForId
("CS1522") };
177
var analyzers = new DiagnosticAnalyzer[] { new
DiagnosticSuppressorForId
("CS0169") };
200
var analyzers = new DiagnosticAnalyzer[] { new
DiagnosticSuppressorForId
("CS1001") };
221
var analyzers = new DiagnosticAnalyzer[] { new
DiagnosticSuppressorForId
("CS0246") };
240
var analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id) };
262
var analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id), new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id) };
267
analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id, suppressionId: "SPR0001"), new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id, suppressionId: "SPR0002") };
286
var suppressor1 = new
DiagnosticSuppressorForId
("CS0169");
287
var suppressor2 = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id);
309
var analyzersAndSuppressors = new DiagnosticAnalyzer[] { analyzer, new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id, suppressionId) };
355
var suppressor = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id);
639
var suppressor = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id, suppressionId);
650
var suppressor2 = new
DiagnosticSuppressorForId
(analyzer.Descriptor.Id, suppressionId2);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
499
analyzers.Add(new
DiagnosticSuppressorForId
(NamedTypeAnalyzer.DiagnosticId));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
9788
Dim suppressor = New
DiagnosticSuppressorForId
("BC40008")
9837
Dim suppressor = New
DiagnosticSuppressorForId
("BC40008")
9876
Dim analyzers = {New
DiagnosticSuppressorForId
("BC30203")}
9905
Dim suppressor = New
DiagnosticSuppressorForId
(analyzer.Descriptor.Id)
9941
suppressor = New
DiagnosticSuppressorForId
(analyzer.Descriptor.Id)
9969
Dim suppressor = New
DiagnosticSuppressorForId
(analyzer.Descriptor.Id)