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

Fix Options Source Gen with Length attributes applied on properties of Interface type #93426

Conversation

tarekgh
Copy link
Member

@tarekgh tarekgh commented Oct 12, 2023

#93403

This is fixing a regression from last changes #93088. The problem was when we were looking for the Count property inside a type, if the type is interfacing the lookup was failing. The reason is ITypeSymbol.GetMembers doesn't report the members of the extended interfaces. The fix is just lookup the property in all interfaces implemented by this type.

@ghost
Copy link

ghost commented Oct 12, 2023

Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.

Issue Details

#93403

This is fixing a regression from last changes #93088. The problem was when we were looking for the Count property inside a type, if the type is interfacing the lookup was failing. The reason is ITypeSymbol.GetMembers doesn't report the members of the extended interfaces. The fix is just lookup the property in all interfaces implemented by this type.

Author: tarekgh
Assignees: tarekgh
Labels:

area-Extensions-Options

Milestone: -

@tarekgh tarekgh added this to the 8.0.0 milestone Oct 12, 2023
@tarekgh tarekgh added the source-generator Indicates an issue with a source generator feature label Oct 12, 2023
@tarekgh
Copy link
Member Author

tarekgh commented Oct 13, 2023

failures are tracked by #92423 which are unrelated. I am not sure why the build analysis didn't detect it automatically. CC @agocke

@tarekgh tarekgh merged commit fe1247b into dotnet:main Oct 13, 2023
103 of 109 checks passed
@tarekgh
Copy link
Member Author

tarekgh commented Oct 13, 2023

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6510948978

@ghost ghost locked as resolved and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-Options source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants