Deprecate CompilationWithAnalyzers.IsDiagnosticAnalyzerSuppressed public API#67671
Deprecate CompilationWithAnalyzers.IsDiagnosticAnalyzerSuppressed public API#67671mavasani merged 10 commits intodotnet:mainfrom
Conversation
…lic API Fixes dotnet#67592 Details in above issue description
| return IsDiagnosticAnalyzerSuppressed(analyzer, options, isCompilerAnalyzer, severityFilter, | ||
| isEnabledWithAnalyzerConfigOptions, getSupportedDiagnosticDescriptors, getSupportedSuppressionDescriptors, cancellationToken); | ||
|
|
||
| bool isEnabledWithAnalyzerConfigOptions(DiagnosticDescriptor descriptor) |
There was a problem hiding this comment.
Existing local function moved from below
| } | ||
| }; | ||
|
|
||
| return AnalyzerManager.IsDiagnosticAnalyzerSuppressed(analyzer, options, IsCompilerAnalyzer, severityFilter: SeverityFilter.None, |
There was a problem hiding this comment.
Retained the existing functionality of this deprecated public API as per the public API review feedback: #67592 (comment)
There was a problem hiding this comment.
@sharwell - My bad IsCompilerAnalyzer is being accessed here, so needs to be made internal.
src/Compilers/CSharp/Test/Emit2/Diagnostics/DiagnosticAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| internal bool ExceptionFilter(Exception ex, CancellationToken cancellationToken) | ||
| internal static void HandleAnalyzerException( |
There was a problem hiding this comment.
Contains all existing code now refactored to an internal static API so it can be invoked from the deprecated public API
|
The change looks good to me. As a sidenote, would it feasible to collate the diagnostics work to a known parent or tag with a label to make it easier for tracking? |
Yes, let me create a label and mark all the relevant PRs with it. |
|
@arkalyanms - Tagged PRs with label:
Performance-Scenario-Diagnostics
|
|
@dotnet/roslyn-compiler for reviews |
src/Compilers/Core/CodeAnalysisTest/Diagnostics/CompilationWithAnalyzersTests.cs
Outdated
Show resolved
Hide resolved
|
@dotnet/roslyn-compiler for an additional review |
|
@dotnet/roslyn-compiler can I get another review? Thanks! |
|
Thank you @jjonescz |
Fixes #67592
Details in above issue description
NOTE: Pending API review for #67592API deprecation has been approved