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

[5.9] Better support for relative links when multiple symbols in the hierarchy have the same name #580

Conversation

d-ronnqvist
Copy link
Contributor

  • Explanation: Better support for resolving symbol links when multiple symbols in the hierarchy (incl. the module symbol) have the same name. The original PR has detailed examples.
  • Scope: Link resolution for local symbol links and documentation links.
  • Issue: rdar://76252171&108672152
  • Risk: Low. Changes to link resolution has broad impact but are also very well tested.
  • Testing: New tests verify that links that previously failed now succeed, that still failing links have the same error messages, and that the previous regression that led to a revert isn't reintroduced by this. I also manually tested the project where that regression previously occurred.
  • Original PR: Better support for relative links when multiple symbols in the hierarchy have the same name #578
  • Reviewers: @daniel-grumberg

…chy have the same name (swiftlang#578)

* Walk up the path hierarchy if links fail to resolve in a specific scope

rdar://108672152

Also, check the module's scope if the link couldn't otherwise resolve

rdar://76252171

* Fix test linking to heading that doesn't exist

* Update expression that was very slow to type check

* Fix warning about mutating a captured sendable value

* Remove outdated comment about adding more test assertions

* Update test for old link resolver implementation
@d-ronnqvist d-ronnqvist requested a review from franklinsch May 5, 2023 21:28
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit 6d3b7cc into swiftlang:release/5.9 May 9, 2023
@d-ronnqvist d-ronnqvist deleted the retry-links-up-the-path-hierarchy-5.9 branch May 9, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants