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

Implement GetTypesByMetadataName #58366

Merged
merged 8 commits into from
Jan 7, 2022

Conversation

333fred
Copy link
Member

@333fred 333fred commented Dec 16, 2021

Closes #57802. Implements the GetTypesByMetadataName API, which returns all named types in the current compilation and referenced assemblies that match the given CLR metatdata name. Also updates the IDE's GetBestTypeByMetadataName to use this API under the hood, rather than the existing manual walk they were doing, simplyfing that codepath and proving out the API itself.

Closes dotnet#57802. Implements the GetTypesByMetadataName API, which returns all named types in the current compilation and referenced assemblies that match the given CLR metatdata name. Also updates the IDE's GetBestTypeByMetadataName to use this API under the hood, rather than the existing manual walk they were doing, simplyfing that codepath and proving out the API itself.
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
@333fred 333fred marked this pull request as ready for review January 6, 2022 22:32
@333fred 333fred requested review from a team as code owners January 6, 2022 22:32
@AlekseyTs
Copy link
Contributor

Done with review pass (commit 5).

@333fred
Copy link
Member Author

333fred commented Jan 7, 2022

@AlekseyTs addressed your feedback.


In reply to: 1007034424

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 8)

@333fred 333fred merged commit fcc0827 into dotnet:release/dev17.1 Jan 7, 2022
@333fred 333fred deleted the gettypesbymetadataname branch January 7, 2022 17:56
333fred added a commit that referenced this pull request Jan 11, 2022
333fred added a commit that referenced this pull request Jan 11, 2022
333fred added a commit to 333fred/roslyn that referenced this pull request Jan 12, 2022
…pped

* upstream/release/dev17.1:
  Revert "Implement GetTypesByMetadataName (dotnet#58366)" (dotnet#58784)
333fred added a commit that referenced this pull request Jan 12, 2022
333fred added a commit that referenced this pull request Jan 13, 2022
333fred added a commit that referenced this pull request Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Proposal] GetAllTypesByMetadataName
5 participants