-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Binding SG] Removed deprecated InterceptsLocationAttribute
#27145
[Binding SG] Removed deprecated InterceptsLocationAttribute
#27145
Conversation
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.
Copilot reviewed 5 out of 12 changed files in this pull request and generated 3 comments.
Files not reviewed (7)
- src/Controls/src/BindingSourceGen/Controls.BindingSourceGen.csproj: Language not supported
- src/Controls/tests/BindingSourceGen.UnitTests/Controls.BindingSourceGen.UnitTests.csproj: Language not supported
- src/Controls/tests/BindingSourceGen.UnitTests/BindingRepresentationGenTests.cs: Evaluated as low risk
- src/Controls/tests/BindingSourceGen.UnitTests/IntegrationTests.cs: Evaluated as low risk
- src/Controls/tests/BindingSourceGen.UnitTests/BindingTransformerTests.cs: Evaluated as low risk
- src/Controls/tests/BindingSourceGen.UnitTests/IncrementalGenerationTests.cs: Evaluated as low risk
- src/Controls/tests/BindingSourceGen.UnitTests/BindingCodeWriterTests.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)
src/Controls/src/BindingSourceGen/BindingSourceGenerator.cs:44
- [nitpick] The variable name 'location' is ambiguous. It should be renamed to 'simpleLocation'.
var location = binding.SimpleLocation;
38e0713
to
7c5553b
Compare
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.
dotnet/roslyn is making some API changes for [InterceptsLocationAttribute]
, so we need to make changes here to react.
We are suppressing CS9270
for .NET 10:
So, after this is merged we will also need to take these changes to the net10.0
branch.
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.
Tested and made sure this fixes the build errors I was seeing with 9.0.200
…e` (#27408) * [Binding SG] Removed deprecated `InterceptsLocationAttribute` (#27145) Fixes: #27315 Backport of #27145 for .NET 10. * [Binding SG] Updated InterceptsLocationAttribute * Added System.Diagnostics.Conditional attribute * Restore `#pragma warning disable RSEXPERIMENTAL002` --------- Co-authored-by: Jeremi Kurdek <[email protected]>
Description of Change
Roslyn team marked Interceptors as stable and started deprecating old APIs dotnet/roslyn#76312. This PR updates the
InterceptsLocationAttribute
to use the overload recommend by the Roslyn team.This PR attempts to reduce the dependence on the new API in order to minimize visible impact to customers and make bumping version of the API in the future easy.
Issues Fixed #27144