-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Refactor expression parsing thoroughly #67112
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
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e77b9d3
refactor parse_field
Centril 8480b31
extract recover_struct_comma_after_dotdot
Centril 701b974
extract find_struct_error_after_field_looking_code
Centril 66b8ae4
extract error_struct_lit_not_allowed_here
Centril f6e2bdc
extract is_certainly_not_a_block
Centril de2e443
make parse_async_block conventional
Centril 7262dcc
refactor loop parsing a bit
Centril 44ff4df
more recovery in if-parsing
Centril 7bcc325
refactor parse_if_expr
Centril ad6f91a
refactor parse_fn_block_param
Centril f647c11
simplify parse_fn_block_decl
Centril aa8adba
simplify parse_literal_maybe_minus
Centril 0bb3dad
extract error_float_lits-must_have_int_part
Centril 98701b2
extract parse_index_expr & refactor parse_dot_suffix
Centril 287ba5d
extract parse_fn_call_expr
Centril a15d0cd
extract parse_tuple_field_access_expr
Centril ff5762b
extract recover_field_access_by_float_lit
Centril 9c6bbf1
extract error_unexpected_after_dot and de-fatalize
Centril bc95228
extract parse_dot_suffix_expr
Centril 7ae12c9
extract parse_dot_base_expr
Centril af5ac23
simplify parse_dot_call_or_expr
Centril 84f9bf1
refactor parse_address_of -> parse_borrow_expr
Centril 00cc8a1
simplify parse_assoc_op_cast
Centril 80eeefb
extract recover_not_expr
Centril ada388b
extract is_mistaken_not_ident_negation
Centril f6ab439
extract parse_deref_expr
Centril 4cfcfe9
extract parse_neg_expr
Centril efdea63
extract parse_prefix_expr
Centril 8456c40
extract parse_not_expr
Centril e43a7ef
simplify parse_prefix_range_expr
Centril 05c26a4
refactor assoc op parsing
Centril 7a246ac
fix rebase fallout
Centril 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
refactor loop parsing a bit
- Loading branch information
commit 7262dcc4a78a4e63db29410365fe7d47f2b56fd0
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
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.
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.
We could add extra checks here to not suggest
in
when it wouldn't be appropriate and bubble the error up in those cases.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.
What situations do you have in mind for "inappropriate" ?