-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Inference of patterns #13909
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
Merged
Inference of patterns #13909
Changes from 17 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6dde4cf
Optimize intersection and union
josevalim 78236d0
Split guard and pattern processing
josevalim 025943f
Prepare for paths in patterns
josevalim 09c3015
Compute pattern vars
josevalim b0d8be2
PROGRESS
josevalim dfaf7ca
More progress
josevalim 5784e9e
Refine information on multiple passes
josevalim bb9177a
Start with inference
josevalim 0153d74
Proper inference
josevalim df7860c
Fix Erlang warning
josevalim e050d3a
Tests
josevalim 945fbbd
Handle tuples in patterns
josevalim 1c308c8
Lists
josevalim 2f4f4d8
Refactor
josevalim 2d74442
Improve refine_var and intersect
josevalim 223c2ba
More refactor
josevalim 6134ff5
Move code around, support lists in expressions properly
josevalim 80a34b3
Update lib/elixir/lib/module/types/descr.ex
josevalim f031cb2
Simplifying handling of prematch in #elixir_ex and improve docs
josevalim 27c8188
Prepare for storing cycles
josevalim c942a62
Detect cycles in patterns
josevalim 39794b2
Fixes
josevalim adc44d1
More fixes
josevalim d874ee1
Make it pretty AND fast
josevalim 2e68c5b
Tests for recursive definitions
josevalim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.