Fix conflict between type_alias_statement and primary_expression #319
+58,522
−56,194
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.
The following code was being parsed as having 2
type_alias_statements:(module [0, 0] - [3, 0] (assignment [0, 0] - [0, 36] left: (identifier [0, 0] - [0, 7]) right: (attribute [0, 10] - [0, 36] object: (call [0, 10] - [0, 25] function: (identifier [0, 10] - [0, 14]) arguments: (argument_list [0, 14] - [0, 25] (identifier [0, 15] - [0, 24]))) attribute: (identifier [0, 26] - [0, 36]))) (type_alias_statement [1, 0] - [1, 41] left: (type [1, 4] - [1, 26] (attribute [1, 4] - [1, 26] object: (parenthesized_expression [1, 4] - [1, 15] (identifier [1, 5] - [1, 14])) attribute: (identifier [1, 16] - [1, 26]))) right: (type [1, 29] - [1, 41] (string [1, 29] - [1, 41] (string_start [1, 29] - [1, 30]) (string_content [1, 30] - [1, 40]) (string_end [1, 40] - [1, 41])))) (type_alias_statement [2, 0] - [2, 36] left: (type [2, 4] - [2, 26] (attribute [2, 4] - [2, 26] object: (parenthesized_expression [2, 4] - [2, 15] (identifier [2, 5] - [2, 14])) attribute: (identifier [2, 16] - [2, 26]))) right: (type [2, 29] - [2, 36] (identifier [2, 29] - [2, 36]))))This PR fixes that. Additionally, it adds some fields throughout the grammar and fix a typo (?) on the
type_parametersrule, renaming it fromtype_parameter.