Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Oct 31, 2023

Moves analysis of dynamic object invocations and related operations from the attribute analyzer into the dataflow analyzer. This lowers dynamic object operations into calls to methods on Microsoft.CSharp.RuntimeBinder.Binder, which have RequiresUnreferencedCode annotations, so that the analyzer produces the same warnings as ILLink.

Adds handling of previously unimplemented operations on dynamic objects. Fixes #94057

Move dynamic object handling into dataflow handling
@sbomer sbomer requested review from agocke and vitek-karas October 31, 2023 19:06
@sbomer sbomer requested a review from marek-safar as a code owner October 31, 2023 19:07
@ghost ghost added linkable-framework Issues associated with delivering a linker friendly framework area-Meta labels Oct 31, 2023
@ghost ghost assigned sbomer Oct 31, 2023
@ghost
Copy link

ghost commented Oct 31, 2023

Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr, @marek-safar
See info in area-owners.md if you want to be subscribed.

Issue Details

Moves analysis of dynamic object invocations and related operations from the attribute analyzer into the dataflow analyzer. This lowers dynamic object operations into calls to methods on Microsoft.CSharp.RuntimeBinder.Binder, which have RequiresUnreferencedCode annotations, so that the analyzer produces the same warnings as ILLink.

Adds handling of previously unimplemented operations on dynamic objects. Fixes #94057

Author: sbomer
Assignees: -
Labels:

linkable-framework

Milestone: -

Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than some test comment this looks good. Thanks!

@sbomer sbomer merged commit 5184067 into dotnet:main Nov 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Meta linkable-framework Issues associated with delivering a linker friendly framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ILLink analyzer analysis holes around dynamic objects
2 participants