This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
DynamicallyAccessedMembersBinder port to Analyzer - #2394
Merged
Merged
Conversation
tlakollo
reviewed
Nov 24, 2021
tlakollo
reviewed
Nov 24, 2021
tlakollo
reviewed
Nov 24, 2021
sbomer
reviewed
Nov 29, 2021
sbomer
left a comment
Member
There was a problem hiding this comment.
Thanks, the port is looking good! I think we need to turn on at least a few tests from AnnotatedMembersAccessedViaReflection as a sanity check. Would you be able to do the following?
- Add a new subclass of SingleValue, maybe
KnownTypeValue, alongsideValueWithDynamicallyAccessedMembers. Its ctor should take anITypeSymbol - In the visitor, modify
VisitTypeOfin the visitor to return aKnownTypeValue - Modify
GetDynamicallyAccessedMembersDiagnosticsto call the binder and report warnings for members which have annotations- Maybe it doesn't need to be complete in this change - for example it could be enough to report warnings for members which have RUC - the goal is just to get a few of the tests running as validation.
Contributor
Author
tlakollo
approved these changes
Dec 1, 2021
tlakollo
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me, thanks Lakshan :D
sbomer
approved these changes
Dec 1, 2021
agocke
pushed a commit
to dotnet/runtime
that referenced
this pull request
Nov 16, 2022
* DynamicallyAccessedMembersBinder port to Analyzer * FB * FB2 * better filtering Commit migrated from dotnet/linker@a097235
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mostly 1:1 conversion of linker DAM to Analyzer, #2339