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: hover and go to definition for named tuples #22202

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

kasiaMarek
Copy link
Contributor

resolves: #20500

@kasiaMarek kasiaMarek marked this pull request as ready for review December 16, 2024 13:23
@kasiaMarek kasiaMarek requested a review from tgodzik December 16, 2024 13:23
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one minor comment

import indexed.ctx
path match
// Handle select on named tuples
case (Apply(Apply(TypeApply(fun, List(t1, t2)), List(ddef)), List(Literal(Constant(i: Int))))) :: _
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move it a bit down? Since it's rather complex case maybe it would more efficient to have more obvious case first

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, though the "default" one is a bit of a "catch all" so it has to be later anyway.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tgodzik
Copy link
Contributor

tgodzik commented Dec 18, 2024

You might need rebase the PR.

@kasiaMarek kasiaMarek merged commit 6a1714b into scala:main Jan 15, 2025
29 checks passed
@kasiaMarek kasiaMarek deleted the i20500 branch January 15, 2025 12:24
bracevac pushed a commit to dotty-staging/dotty that referenced this pull request Jan 19, 2025
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.

Named Tuple selections have no hover
2 participants