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

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

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.

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