Skip to content

Go: Use objectpath for object labels in extractor #16742

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Jun 12, 2024

This is based on top of #16737 so ignore the first two commits.

This is ground work for #15216. In that PR, we extract objects for type parameters, and they need labels that are the same even when generated when extracting different packages. We do that for objects in package scope, which was previously enough, but type parameters are not in package scope. This PR introduces the use of golang.org/x/tools/go/types/objectpath to generate canonical paths for exported objects, which solves the problem.

@github-actions github-actions bot added the Go label Jun 12, 2024
@owen-mc owen-mc marked this pull request as ready for review June 12, 2024 17:56
@owen-mc owen-mc requested a review from a team as a code owner June 12, 2024 17:56
@owen-mc owen-mc marked this pull request as draft March 25, 2025 10:56
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.

1 participant