36 references to DiagnosticSuppressorForId
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
9445analyzers: [new WarningDiagnosticAnalyzer(), new DiagnosticSuppressorForId("Warning01", "Suppressor01")], 12565var suppressor = new DiagnosticSuppressorForId("CS0078"); 12612var suppressor = new DiagnosticSuppressorForId("CS1522"); 12668var suppressor = new DiagnosticSuppressorForId("CS0169"); 12734var precedenceInversionWarningSuppressor = new DiagnosticSuppressorForId("CS8848"); 12834var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 12944var partialStructWarningSuppressor = new DiagnosticSuppressorForId("CS0282"); 13019analyzers: new[] { new DiagnosticSuppressorForId("CS1001") }); 13045analyzers: new[] { new DiagnosticSuppressorForId("CS0246") }); 13070var suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13108suppressor = new DiagnosticSuppressorForId(analyzer.Descriptor.Id); 13136var 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)
9789Dim suppressor = New DiagnosticSuppressorForId("BC40008") 9838Dim suppressor = New DiagnosticSuppressorForId("BC40008") 9877Dim analyzers = {New DiagnosticSuppressorForId("BC30203")} 9906Dim suppressor = New DiagnosticSuppressorForId(analyzer.Descriptor.Id) 9942suppressor = New DiagnosticSuppressorForId(analyzer.Descriptor.Id) 9970Dim suppressor = New DiagnosticSuppressorForId(analyzer.Descriptor.Id)