53deaf0522
This adds parser support for the optional 'const' keyword in extension type declaration. The token is passed on through the endPrimaryConstructor listener call since it is used to make the primary constructor constant. Change-Id: I518a8e397fb62272002c424e7b69affe6123f4af Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/316221 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2 lines
36 B
Dart
2 lines
36 B
Dart
extension const Extension on int {}
|