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.
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
The compiler checks for exhaustive match arms in match expressions. #701
The compiler checks for exhaustive match arms in match expressions. #701
Changes from 13 commits
27086cc
55eaf2a
33ae5d9
4f0ae3a
1cc7e1c
ffbc94f
69abbca
841cca3
168fe43
c641ced
4a2891d
554b8a9
c4cbb63
50726ab
9b1515a
d6f4005
db53451
71e5373
d742196
511f53a
8f18c67
70a5b80
e8ed617
9b782ac
9b29c25
6fbe5c4
6d084ec
5b32bcd
16baee7
e22119a
f3f0d58
402e10b
916bc0a
1d3fa3f
d6ba815
db434d8
a76716e
8266f4e
237028c
9748d8f
f48e8ad
3c195f7
5794b9b
e76585d
0a28ae0
12c31d0
e3561fd
cd78146
8c1c89a
e544742
ceec0d1
41210e8
15fbf4d
1a0056c
2651a63
8ce4d72
2910a06
44d6c77
a26939f
ee4aaa3
743dfe0
f7c5515
fa1ac15
98a3dc2
ed25397
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean return statements must necessarily return a variable declaration? I'm not sure I understand this bit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because match expressions now have the ability to create AstNodes, those nodes need to be inserted before the return statement node (the same goes for other nodes that are parsed). This bit of code is taking those new AstNodes and inserting them.