11 types derived from DiagnosticSuppressor
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Analyzers\DoNothingSuppressor.cs (1)
12public sealed class DoNothingSuppressor : DiagnosticSuppressor
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
902private abstract class AbstractNugetOrVsixSuppressor : DiagnosticSuppressor
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1081private sealed class DiagnosticSuppressorForCS0657 : DiagnosticSuppressor
Microsoft.CodeAnalysis.Test.Utilities (8)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
426public class SuppressorForErrorLogTest : DiagnosticSuppressor 2047public sealed class DiagnosticSuppressorForId : DiagnosticSuppressor 2072public sealed class DiagnosticSuppressorForId_ThrowsOperationCancelledException : DiagnosticSuppressor 2095public sealed class DiagnosticSuppressorThrowsExceptionFromSupportedSuppressions : DiagnosticSuppressor 2113public sealed class DiagnosticSuppressorThrowsExceptionFromReportedSuppressions : DiagnosticSuppressor 2137public sealed class DiagnosticSuppressor_UnsupportedSuppressionReported : DiagnosticSuppressor 2169public sealed class DiagnosticSuppressor_InvalidDiagnosticSuppressionReported : DiagnosticSuppressor 2201public sealed class DiagnosticSuppressor_NonReportedDiagnosticCannotBeSuppressed : DiagnosticSuppressor
30 references to DiagnosticSuppressor
Microsoft.CodeAnalysis (26)
CommandLine\CommandLineArguments.cs (1)
556bool shouldIncludeAnalyzer(DiagnosticAnalyzer analyzer) => !skipAnalyzers || analyzer is DiagnosticSuppressor;
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
16/// Special informational diagnostic for each programmatic <see cref="Diagnostics.Suppression"/> reported by a <see cref="Diagnostics.DiagnosticSuppressor"/>.
Diagnostic\ProgrammaticSuppressionInfo.cs (1)
11/// Contains information about the source of a programmatic diagnostic suppression produced by an <see cref="DiagnosticSuppressor"/>.
Diagnostic\SuppressionDescriptor.cs (1)
12/// Provides a description about a programmatic suppression of a <see cref="Diagnostic"/> by a <see cref="DiagnosticSuppressor"/>.
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
600var suppressionActionCounts = analyzer is DiagnosticSuppressor ? 1 : 0;
DiagnosticAnalyzer\AnalyzerDriver.cs (6)
51/// Flag indicating if the <see cref="Analyzers"/> include any <see cref="DiagnosticSuppressor"/> 378_hasDiagnosticSuppressors = this.Analyzers.Any(static a => a is DiagnosticSuppressor); 1021var suppressors = this.Analyzers.OfType<DiagnosticSuppressor>(); 1030foreach (var suppressor in suppressors) 1047foreach (var suppressor in suppressors) 1055ImmutableArray<Diagnostic> getSuppressableDiagnostics(DiagnosticSuppressor suppressor)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
348public void ExecuteSuppressionAction(DiagnosticSuppressor suppressor, ImmutableArray<Diagnostic> reportedDiagnostics)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (3)
243public ImmutableArray<SuppressionDescriptor> GetOrComputeSuppressionDescriptors(DiagnosticSuppressor suppressor, AnalyzerExecutor analyzerExecutor) 332if (analyzer is DiagnosticSuppressor suppressor) 347throw new ArgumentException(string.Format(CodeAnalysisResources.SupportedSuppressionsHasNullDescriptor, analyzer.ToString()), nameof(DiagnosticSuppressor.SupportedSuppressions));
DiagnosticAnalyzer\AnalyzerManager.cs (3)
257/// Return <see cref="DiagnosticSuppressor.SupportedSuppressions"/> of given <paramref name="suppressor"/>. 260DiagnosticSuppressor suppressor, 362if (analyzer is DiagnosticSuppressor suppressor)
DiagnosticAnalyzer\AnalyzerTelemetry.cs (2)
120/// This is the same as count of <see cref="DiagnosticSuppressor"/>s as each suppressor 121/// has a single suppression action, i.e. <see cref="DiagnosticSuppressor.ReportSuppressions(SuppressionAnalysisContext)"/>.
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1273var suppressionActionCounts = analyzer is DiagnosticSuppressor ? 1 : 0;
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
1679/// Each <see cref="DiagnosticSuppressor"/> only receives diagnostics whose IDs were declared suppressible in its <see cref="DiagnosticSuppressor.SupportedSuppressions"/>.
DiagnosticAnalyzer\Suppression.cs (3)
13/// Programmatic suppression of a <see cref="Diagnostic"/> by a <see cref="DiagnosticSuppressor"/>. 35/// Descriptor for the suppression, which must be from <see cref="DiagnosticSuppressor.SupportedSuppressions"/> 36/// for the <see cref="DiagnosticSuppressor"/> creating this suppression.
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9295Assert.All(analyzers, static x => Assert.IsAssignableFrom<DiagnosticSuppressor>(x));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
430if (analyzer is DiagnosticSuppressor)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\SkippedHostAnalyzersInfo.cs (2)
68if (analyzer is DiagnosticSuppressor suppressor) 146if (hostAnalyzer is DiagnosticSuppressor suppressor)