Skip to content

[SourceKit] Mark overridable declarations as dynamic #74482

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

Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 17, 2024

  • Explanation: We only set isDynamic to true if we were inside an expression. Also set isDynamic when we are performing cursor info at an overridable declaration. This allows jump-to-definition to jump to declarations that override the one that we performed cursor info on.
  • Scope: SourceKit Cursor Info
  • Risk: Low, only affects SourceKit
  • Testing: Added test case
  • Issue: rdar://128300752
  • Reviewer: @hamishknight on [SourceKit] Mark overridable declarations as dynamic #74080

We only set `isDynamic` to `true` if we were inside an expression. Also set `isDynamic` when we are performing cursor info at an overridable declaration. This allows jump-to-definition to jump to declarations that override the one that we performed cursor info on.

rdar://128300752
@ahoppen ahoppen requested a review from bnbarham June 17, 2024 16:20
@ahoppen ahoppen requested a review from a team as a code owner June 17, 2024 16:20
@ahoppen
Copy link
Member Author

ahoppen commented Jun 17, 2024

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge June 17, 2024 21:04
@ahoppen ahoppen merged commit ed21303 into swiftlang:release/6.0 Jun 17, 2024
5 checks passed
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.

2 participants