Update augmented extensionDeclaration, following PR 3701

Change-Id: I9616ec821ce5eddccd732313f0edc8c300a702b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362200
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
This commit is contained in:
Erik Ernst 2024-04-11 14:21:28 +00:00 committed by Commit Queue
parent 6eb220bbcf
commit a873a14700
2 changed files with 16 additions and 4 deletions

View file

@ -4,6 +4,8 @@
// CHANGES:
//
// v0.42 Support updated augmented `extensionDeclaration`.
//
// v0.41 Add missing `enumEntry` update for augmentations.
//
// v0.40 Include support for augmentation libraries.
@ -459,8 +461,12 @@ extensionTypeMemberDeclaration
;
extensionDeclaration
: AUGMENT? EXTENSION typeIdentifierNotType? typeParameters? ON type
LBRACE (metadata extensionMemberDeclaration)* RBRACE
: EXTENSION typeIdentifierNotType? typeParameters? ON type extensionBody
| AUGMENT EXTENSION typeIdentifierNotType typeParameters? extensionBody
;
extensionBody
: LBRACE (metadata extensionMemberDeclaration)* RBRACE
;
// TODO: We might want to make this more strict.

View file

@ -4,6 +4,8 @@
// CHANGES:
//
// v0.43 Support updated augmented `extensionDeclaration`.
//
// v0.42 Add missing `enumEntry` update for augmentations.
//
// v0.41 Include support for augmentation libraries.
@ -465,8 +467,12 @@ extensionTypeMemberDeclaration
;
extensionDeclaration
: AUGMENT? EXTENSION typeIdentifierNotType? typeParameters? ON type
LBRACE (metadata extensionMemberDeclaration)* RBRACE
: EXTENSION typeIdentifierNotType? typeParameters? ON type extensionBody
| AUGMENT EXTENSION typeIdentifierNotType typeParameters? extensionBody
;
extensionBody
: LBRACE (metadata extensionMemberDeclaration)* RBRACE
;
// TODO: We might want to make this more strict.