6 overrides of IsSuppressed
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
64public override bool IsSuppressed => false;
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
56public override bool IsSuppressed
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
120public override bool IsSuppressed
Diagnostic\DiagnosticWithInfo.cs (1)
89public override bool IsSuppressed
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
99public override bool IsSuppressed => _original.IsSuppressed;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContextBase.cs (1)
141public override bool IsSuppressed
48 references to IsSuppressed
Microsoft.CodeAnalysis (21)
CommandLine\CommonCompiler.cs (1)
578if (diag.IsSuppressed)
CommandLine\SarifV1ErrorLogger.cs (1)
78if (diagnostic.IsSuppressed)
CommandLine\SarifV2ErrorLogger.cs (1)
73if (diagnostic.IsSuppressed)
Compilation\Compilation.cs (1)
1895(!reportSuppressedDiagnostics && filtered.IsSuppressed))
Compilation\CompilationOptions.cs (1)
203/// Whether diagnostics suppressed in source, i.e. <see cref="Diagnostic.IsSuppressed"/> is true, should be reported.
Diagnostic\Diagnostic.cs (3)
344/// Gets the <see cref="SuppressionInfo"/> for suppressed diagnostics, i.e. <see cref="IsSuppressed"/> = true. 349if (!IsSuppressed) 596=> Severity == DiagnosticSeverity.Error && !IsSuppressed;
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
25RoslynDebug.Assert(!originalUnsuppressedDiagnostic.IsSuppressed);
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
882if (reportSuppressedDiagnostics || !diagnostic.IsSuppressed) 1049var suppressableDiagnostics = reportedDiagnostics.Where(d => !d.IsSuppressed && 1072Debug.Assert(!diagnostic.IsSuppressed); 1074Debug.Assert(suppressedDiagnostic.IsSuppressed); 1217if (!reportSuppressedDiagnostics && diagnostic.IsSuppressed) 1237if (compilation.Options.ReportSuppressedDiagnostics || diagnostics.All(d => !d.IsSuppressed)) 1242return diagnostics.WhereAsArray(d => !d.IsSuppressed);
DiagnosticAnalyzer\CompilationWithAnalyzersOptions.cs (3)
47/// Flag indicating whether analyzer diagnostics with <see cref="Diagnostic.IsSuppressed"/> should be reported. 74/// <param name="reportSuppressedDiagnostics">Flag indicating whether analyzer diagnostics with <see cref="Diagnostic.IsSuppressed"/> should be reported.</param> 93/// <param name="reportSuppressedDiagnostics">Flag indicating whether analyzer diagnostics with <see cref="Diagnostic.IsSuppressed"/> should be reported.</param>
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
99public override bool IsSuppressed => _original.IsSuppressed;
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
113if (diagnostic.IsSuppressed)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
518if (!diagnostic.IsSuppressed)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
36=> !diagnostic.IsSuppressed ||
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
36=> !diagnostic.IsSuppressed;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
43=> !diagnostic.IsSuppressed;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\GetDiagnosticsTests.cs (6)
517Assert.False(diagnostics.Single().IsSuppressed); 522Assert.False(effectiveDiagnostics.Single().IsSuppressed); 529Assert.False(analyzerDiagnostics.Single().IsSuppressed); 574Assert.False(diagnostic.IsSuppressed); 622Assert.False(diagnostic.IsSuppressed); 1463Assert.True(analyzerDiagnostic.IsSuppressed);
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
36=> !diagnostic.IsSuppressed ||
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
36=> !diagnostic.IsSuppressed;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
43=> !diagnostic.IsSuppressed;
Microsoft.CodeAnalysis.Features (10)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
42if (diagnostic.IsSuppressed ||
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (1)
42=> !diagnostic.IsSuppressed && !SuppressionHelpers.IsNotConfigurableDiagnostic(diagnostic);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
209if (!diagnostic.IsSuppressed)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
192if (diagnostic.IsSuppressed)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
86isSuppressed: diagnostic.IsSuppressed);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningBatchFixAllProvider.cs (1)
34foreach (var diagnostic in diagnostics.Where(d => d.Location.IsInSource && !d.IsSuppressed))
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
43foreach (var diagnostic in diagnostics.Where(d => d.Location.IsInSource && d.IsSuppressed)) 89foreach (var diagnostic in diagnostics.Where(d => !d.Location.IsInSource && d.IsSuppressed))
CodeFixes\Suppression\SuppressionHelpers.cs (1)
40if (diagnostic.IsSuppressed == checkCanBeSuppressed ||
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
518if (!diagnostic.IsSuppressed)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticDescription.cs (1)
127_isSuppressed = d.IsSuppressed;
Diagnostics\DiagnosticExtensions.cs (1)
326Assert.True(diagnostics.All(d => !d.IsSuppressed));
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\DiagnosticData.cs (1)
245isSuppressed: diagnostic.IsSuppressed);
Diagnostics\Extensions.cs (1)
318!includeSuppressedDiagnostics && diagnostic.IsSuppressed ||