Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the syntax of augmenting extension type declarations #4016

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Aug 6, 2024

This PR changes the grammar such that an augmenting extension type declaration does not specify a primary constructor. This means that there is no const modifier (which is optional on the introductory declaration, but it is not allowed at all on an augmenting extension type declaration). Also, there is no "parameter list" (known as the <representationSpecification> in the grammar).

@eernstg eernstg requested review from munificent and jakemac53 August 6, 2024 14:42
@eernstg eernstg merged commit 4e583e5 into main Aug 7, 2024
3 checks passed
@eernstg eernstg deleted the spec_augment_grammar_aug24 branch August 7, 2024 15:40
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 7, 2024
The PR dart-lang/language#4016 updates the
augmentation feature specification such that augmenting extension type
declarations do not specify the primary constructor. This CL changes
Dart.g (and hence the specification parser) accordingly.

It also corrects a typo in Dart.g.

Change-Id: I10b49873a96524a9d363f842b39688f3c624b9f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379100
Reviewed-by: Chloe Stefantsova <[email protected]>
Commit-Queue: Erik Ernst <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants