-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate CompilationWithAnalyzers.IsDiagnosticAnalyzerSuppressed public API #67671
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing local function moved from below
} | ||
}; | ||
|
||
return AnalyzerManager.IsDiagnosticAnalyzerSuppressed(analyzer, options, IsCompilerAnalyzer, severityFilter: SeverityFilter.None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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