mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
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:
parent
6eb220bbcf
commit
a873a14700
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue