@@ -452,7 +452,7 @@ module.exports = grammar({
452452 optional ( sep1Opt ( field ( "element" , $ . tuple_type_item ) , "," ) ) ,
453453 ")"
454454 ) ,
455- field ( "element" , alias ( $ . _parenthesized_type , $ . tuple_type_item ) )
455+ field ( "element" , alias ( $ . parenthesized_type , $ . tuple_type_item ) )
456456 ) ,
457457 tuple_type_item : ( $ ) =>
458458 prec (
@@ -467,7 +467,7 @@ module.exports = grammar({
467467 prec (
468468 PRECS . expr ,
469469 seq (
470- optional ( $ . wildcard_pattern ) ,
470+ optional ( field ( "external_name" , $ . wildcard_pattern ) ) ,
471471 field ( "name" , $ . simple_identifier ) ,
472472 ":"
473473 )
@@ -571,10 +571,10 @@ module.exports = grammar({
571571 field ( "suffix" , $ . constructor_suffix )
572572 )
573573 ) ,
574- _parenthesized_type : ( $ ) =>
574+ parenthesized_type : ( $ ) =>
575575 seq (
576576 "(" ,
577- choice ( $ . opaque_type , $ . existential_type , $ . dictionary_type ) ,
577+ field ( "type" , choice ( $ . opaque_type , $ . existential_type , $ . dictionary_type ) ) ,
578578 ")"
579579 ) ,
580580 navigation_expression : ( $ ) =>
@@ -586,7 +586,7 @@ module.exports = grammar({
586586 choice (
587587 $ . _navigable_type_expression ,
588588 $ . expression ,
589- $ . _parenthesized_type
589+ $ . parenthesized_type
590590 )
591591 ) ,
592592 field ( "suffix" , $ . navigation_suffix )
0 commit comments