Skip to content
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

Filter out RequiredMemberAttribute from metadata symbols #63497

Merged
merged 7 commits into from
Aug 25, 2022

Conversation

333fred
Copy link
Member

@333fred 333fred commented Aug 20, 2022

Fixes #61511.

@333fred
Copy link
Member Author

333fred commented Aug 20, 2022

@dotnet/roslyn-compiler for review.

@jasonmalinowski
Copy link
Member

Although I'm not conceptually against this, does the compiler do this in other cases too? I wasn't sure if we ever came to a decision on this.

@333fred
Copy link
Member Author

333fred commented Aug 22, 2022

does the compiler do this in other cases too?

Yes, in a number of places. The filtering code is the code I touched here, so you can see existing attributes that are removed by examining the diff.

@AlekseyTs
Copy link
Contributor

Do we need to do anything for VB?

@333fred
Copy link
Member Author

333fred commented Aug 22, 2022

Do we need to do anything for VB?

We will likely need to do something as part of #61435, but for now no.

@333fred
Copy link
Member Author

333fred commented Aug 22, 2022

@dotnet/roslyn-compiler for reviews.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 2)

@333fred
Copy link
Member Author

333fred commented Aug 22, 2022

@dotnet/roslyn-compiler for a second review.

@333fred
Copy link
Member Author

333fred commented Aug 23, 2022

@AlekseyTs added a test to verify order of access doesn't affect observable results.

@333fred
Copy link
Member Author

333fred commented Aug 23, 2022

@dotnet/roslyn-compiler for a second review please.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 7)

@333fred 333fred merged commit 5b4dc71 into dotnet:main Aug 25, 2022
@333fred 333fred deleted the required-metadata branch August 25, 2022 22:21
@ghost ghost added this to the Next milestone Aug 25, 2022
@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
@333fred 333fred added the New Feature - Required Members Required properties and fields label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider filtering RequiredMembers attribute in compiler layer/API
5 participants