Skip to content

Commit aa8a328

Browse files
committed
Define a precedence instead of conflict
1 parent e4b6698 commit aa8a328

File tree

5 files changed

+61207
-61199
lines changed

5 files changed

+61207
-61199
lines changed

common/define-grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = function defineGrammar(dialect) {
5353
[$._type_query_subscript_expression, $.primary_expression],
5454
[$._type_query_call_expression, $.primary_expression],
5555
[$.type_query, $.primary_expression],
56+
[$.override_modifier, $.primary_expression],
5657
]),
5758

5859
conflicts: ($, previous) => previous.concat([
@@ -78,7 +79,6 @@ module.exports = function defineGrammar(dialect) {
7879
[$.jsx_namespace_name, $._primary_type],
7980

8081
[$.primary_expression, $._parameter_name],
81-
[$.primary_expression, $.override_modifier],
8282
[$.primary_expression, $._parameter_name, $.predefined_type],
8383
[$.primary_expression, $._parameter_name, $._primary_type],
8484
[$.primary_expression, $._parameter_name, $.array_type, $.tuple_type],

tsx/src/grammar.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10131,10 +10131,6 @@
1013110131
"primary_expression",
1013210132
"_parameter_name"
1013310133
],
10134-
[
10135-
"primary_expression",
10136-
"override_modifier"
10137-
],
1013810134
[
1013910135
"primary_expression",
1014010136
"_parameter_name",
@@ -10703,6 +10699,16 @@
1070310699
"type": "SYMBOL",
1070410700
"name": "primary_expression"
1070510701
}
10702+
],
10703+
[
10704+
{
10705+
"type": "SYMBOL",
10706+
"name": "override_modifier"
10707+
},
10708+
{
10709+
"type": "SYMBOL",
10710+
"name": "primary_expression"
10711+
}
1070610712
]
1070710713
],
1070810714
"externals": [

0 commit comments

Comments
 (0)