@@ -1405,13 +1405,13 @@ module.exports = grammar({
14051405 prec . left (
14061406 seq (
14071407 field ( "name" , alias ( $ . _no_expr_pattern_already_bound , $ . pattern ) ) ,
1408- optional ( $ . type_annotation ) ,
1409- optional ( $ . type_constraints ) ,
1408+ field ( "type" , optional ( $ . type_annotation ) ) ,
1409+ field ( "type_constraints" , optional ( $ . type_constraints ) ) ,
14101410 optional (
14111411 choice (
14121412 $ . _expression_with_willset_didset ,
14131413 $ . _expression_without_willset_didset ,
1414- $ . willset_didset_block ,
1414+ field ( "observers" , $ . willset_didset_block ) ,
14151415 field ( "computed_value" , $ . computed_property )
14161416 )
14171417 )
@@ -1423,7 +1423,7 @@ module.exports = grammar({
14231423 seq (
14241424 $ . _equal_sign ,
14251425 field ( "value" , $ . expression ) ,
1426- $ . willset_didset_block
1426+ field ( "observers" , $ . willset_didset_block )
14271427 )
14281428 ) ,
14291429 _expression_without_willset_didset : ( $ ) =>
@@ -1909,7 +1909,7 @@ module.exports = grammar({
19091909 ) ,
19101910 value_binding_pattern : ( $ ) => field ( "mutability" , choice ( "var" , "let" ) ) ,
19111911 _possibly_async_binding_pattern_kind : ( $ ) =>
1912- seq ( optional ( $ . _async_modifier ) , $ . value_binding_pattern ) ,
1912+ seq ( optional ( $ . _async_modifier ) , field ( "binding" , $ . value_binding_pattern ) ) ,
19131913 _binding_kind_and_pattern : ( $ ) =>
19141914 seq (
19151915 $ . _possibly_async_binding_pattern_kind ,
0 commit comments