Skip to content

Commit

Permalink
Merge pull request #233 from calebdw/insteadof
Browse files Browse the repository at this point in the history
fix: remove choice from `use_instead_of_clause`
  • Loading branch information
calebdw authored Mar 22, 2024
2 parents b1eb65e + d319272 commit 8040208
Show file tree
Hide file tree
Showing 5 changed files with 6,546 additions and 6,570 deletions.
2 changes: 1 addition & 1 deletion common/define-grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ module.exports = function defineGrammar(dialect) {
),

use_instead_of_clause: $ => prec.left(seq(
choice($.class_constant_access_expression, $.name),
$.class_constant_access_expression,
keyword('insteadof'),
$.name,
)),
Expand Down
13 changes: 2 additions & 11 deletions php/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1929,17 +1929,8 @@
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "class_constant_access_expression"
},
{
"type": "SYMBOL",
"name": "name"
}
]
"type": "SYMBOL",
"name": "class_constant_access_expression"
},
{
"type": "ALIAS",
Expand Down
Loading

0 comments on commit 8040208

Please sign in to comment.