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

Completion: fix qualified completion in sequence expressions #18111

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

Conversation

auduchinok
Copy link
Member

Fixes #18033. I'm not entirely sure what the removed lines were intended to do, so maybe removing the reverts the fix introduced in #16882. The test added in #16882 passes for locally with this change.

@auduchinok auduchinok requested a review from a team as a code owner December 6, 2024 12:34
Copy link
Contributor

github-actions bot commented Dec 6, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/9.0.200.md

// It's a nested sequential expression.
// Visit it, but make defaultTraverse do nothing,
// since we're going to traverse its descendants ourselves.
yield dive expr expr.Range (fun expr -> visitor.VisitExpr(path, traverseSynExpr path, (fun _ -> None), expr))
Copy link
Member

Choose a reason for hiding this comment

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

expr1 is "dive"'d right below this call, and expr2 is handled via the recursive invocation => cannot see any impact from ommiting dive into the expr itself.

=> LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does visitor.VisitExpr still get called on expr itself now though? Maybe it does and I'm just not awake yet :)

@auduchinok auduchinok force-pushed the completion/seqExpr-qualifier branch 2 times, most recently from 28016cd to 6299e69 Compare December 6, 2024 14:36
@auduchinok auduchinok changed the title [FCS] Completion: fix qualified completion in sequence expressions Completion: fix qualified completion in sequence expressions Dec 6, 2024
@auduchinok auduchinok force-pushed the completion/seqExpr-qualifier branch from 6299e69 to 886a003 Compare December 10, 2024 14:21
@auduchinok auduchinok force-pushed the completion/seqExpr-qualifier branch from 886a003 to 8487881 Compare December 10, 2024 14:22
@auduchinok
Copy link
Member Author

This has been green for a while, but the release notes constantly need resolving conflicts.

@psfinaki
Copy link
Member

Yeah release notes conflicts can be annoying, tho we sometimes resolve them to keep PRs in shape :)

This LGTM, I was just also wondering about what Brian mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Member completion uses wrong qualifier
4 participants