18 references to new
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
RequestDelegateGeneratorSuppressor.cs (2)
26private static readonly SuppressionDescriptor SuppressRUCDiagnostic = new( 31private static readonly SuppressionDescriptor SuppressRDCDiagnostic = new(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
916var descriptor = new SuppressionDescriptor("SPR" + id, id, justification: analyzerName);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1472private readonly SuppressionDescriptor _descriptor = new(SuppressionId, "CS0657", "Justification");
Microsoft.CodeAnalysis.Test.Utilities (12)
Diagnostics\CommonDiagnosticAnalyzers.cs (12)
514public static readonly SuppressionDescriptor Descriptor1 = new("SPR0001", AnalyzerForErrorLogTest.Descriptor1.Id, "SuppressorJustification1"); 515public static readonly SuppressionDescriptor Descriptor2 = new("SPR0002", AnalyzerForErrorLogTest.Descriptor2.Id, "SuppressorJustification2"); 2162SuppressionDescriptor = new SuppressionDescriptor( 2190var descriptor = new SuppressionDescriptor( 2224SuppressionDescriptor = new SuppressionDescriptor( 2266_descriptor = new SuppressionDescriptor( 2290_supportedDescriptor = new SuppressionDescriptor( 2295_unsupportedDescriptor = new SuppressionDescriptor( 2322_supportedDescriptor = new SuppressionDescriptor( 2327_unsupportedDescriptor = new SuppressionDescriptor( 2354_descriptor1 = new SuppressionDescriptor( 2358_descriptor2 = new SuppressionDescriptor(
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
17public static readonly SuppressionDescriptor MarkMethodsAsStaticSuppression = new SuppressionDescriptor("SYSLIBSUPPRESS0001", "CA1822", "Do not offer to make methods static when the methods need to be instance methods for a custom marshaller shape.");
Microsoft.ML.InternalCodeAnalyzer (1)
RelaxTestNamingSuppressor.cs (1)
20new SuppressionDescriptor(Id, SuppressedDiagnosticId, Justification);