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

Initial pattern completion #670

Merged
merged 31 commits into from
Jan 5, 2023
Merged

Initial pattern completion #670

merged 31 commits into from
Jan 5, 2023

Conversation

zth
Copy link
Collaborator

@zth zth commented Jan 1, 2023

This isn't complete yet, but I want to validate the approach with you @cristianoc before I continue deeper. This PR does the following:

  • Introduces the concept of pattern completion
  • Adds logic for tracking what type we're at in the current pattern. Currently handles tuples and record fields, but will eventually handle everything that can appear in a pattern (like variant/polyvariant constructors + payloads, options, array literals, etc)

@zth zth requested a review from cristianoc January 1, 2023 09:47
analysis/src/CompletionFrontEnd.ml Outdated Show resolved Hide resolved
analysis/src/CompletionFrontEnd.ml Outdated Show resolved Hide resolved
@zth zth mentioned this pull request Jan 3, 2023
24 tasks
analysis/src/CompletionFrontEnd.ml Outdated Show resolved Hide resolved
@zth zth merged commit dbd0f69 into master Jan 5, 2023
@zth zth deleted the pattern-completion branch January 5, 2023 20:24
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