1 instantiation of Suppression
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\Suppression.cs (1)
42=> new Suppression(descriptor, suppressedDiagnostic);
41 references to Suppression
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGeneratorSuppressor.cs (1)
68context.ReportSuppression(Suppression.Create(targetSuppression, diagnostic));
Microsoft.CodeAnalysis (30)
CommandLine\CommonCompiler.cs (1)
564foreach (var suppression in diag.ProgrammaticSuppressionInfo.Suppressions)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
16/// Special informational diagnostic for each programmatic <see cref="Diagnostics.Suppression"/> reported by a <see cref="Diagnostics.DiagnosticSuppressor"/>.
Diagnostic\Diagnostic.cs (1)
363var programmaticSuppressions = this.ProgrammaticSuppressionInfo?.Suppressions ?? ImmutableArray<Suppression>.Empty;
Diagnostic\ProgrammaticSuppressionInfo.cs (3)
16public ImmutableArray<Suppression> Suppressions { get; } 18internal ProgrammaticSuppressionInfo(ImmutableArray<Suppression> suppressions) 31this.Suppressions.SetEquals(other.Suppressions, EqualityComparer<Suppression>.Default);
Diagnostic\SuppressionInfo.cs (3)
29/// then returns the corresponding <see cref="Suppression"/>s, in no specific order. 32public ImmutableArray<Suppression> ProgrammaticSuppressions { get; } 34internal SuppressionInfo(string id, AttributeData? attribute, ImmutableArray<Suppression> programmaticSuppressions)
DiagnosticAnalyzer\AnalyzerDriver.cs (6)
45private readonly ConcurrentSet<Suppression>? _programmaticSuppressions; 381_programmaticSuppressions = HasDiagnosticSuppressors ? new ConcurrentSet<Suppression>() : null; 1152static ImmutableDictionary<Diagnostic, ProgrammaticSuppressionInfo> createProgrammaticSuppressionsByDiagnosticMap(ConcurrentSet<Suppression> programmaticSuppressions) 1154var programmaticSuppressionsBuilder = PooledDictionary<Diagnostic, ArrayBuilder<Suppression>>.GetInstance(); 1156foreach (var programmaticSuppression in programmaticSuppressions) 1160array = ArrayBuilder<Suppression>.GetInstance();
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
37private readonly Action<Suppression>? _addSuppression; 116Action<Suppression>? addSuppression = null) 148Action<Suppression>? addSuppression)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (4)
1883private readonly Action<Suppression> _addSuppression; 1918Action<Suppression> suppressDiagnostic, 1933/// Report a <see cref="Suppression"/> for a reported diagnostic. 1935public void ReportSuppression(Suppression suppression)
DiagnosticAnalyzer\Suppression.cs (8)
15public readonly struct Suppression : IEquatable<Suppression> 41public static Suppression Create(SuppressionDescriptor descriptor, Diagnostic suppressedDiagnostic) 54public static bool operator ==(Suppression left, Suppression right) 59public static bool operator !=(Suppression left, Suppression right) 66return obj is Suppression suppression 70public bool Equals(Suppression other)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
937Microsoft.CodeAnalysis.Diagnostics.Suppression.Create(descriptor, diagnostic));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1479context.ReportSuppression(Suppression.Create(_descriptor, diagnostic));
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
525context.ReportSuppression(Suppression.Create(descriptor, diagnostic)); 2176context.ReportSuppression(Suppression.Create(SuppressionDescriptor, diagnostic)); 2210context.ReportSuppression(Suppression.Create(suppressionDescriptor, diagnostic)); 2309context.ReportSuppression(Suppression.Create(_unsupportedDescriptor, diagnostic)); 2341context.ReportSuppression(Suppression.Create(_unsupportedDescriptor, diagnostic)); 2378context.ReportSuppression(Suppression.Create(_descriptor2, nonReportedDiagnostic));
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
51context.ReportSuppression(Suppression.Create(MarkMethodsAsStaticSuppression, diagnostic));
Microsoft.ML.InternalCodeAnalyzer (1)
RelaxTestNamingSuppressor.cs (1)
49context.ReportSuppression(Suppression.Create(Rule, diagnostic));