Skip to content

Conversation

@eernstg
Copy link
Member

@eernstg eernstg commented Nov 6, 2025

This PR eliminates the support for in-body declaring constructors in the feature specification about declaring constructors. It also changes the terminology to use 'primary' rather than 'declaring' about the newly introduced constructors, because all other kinds have been eliminated.

@eernstg eernstg marked this pull request as draft November 6, 2025 16:50
@eernstg eernstg marked this pull request as ready for review November 7, 2025 14:13
@eernstg
Copy link
Member Author

eernstg commented Nov 7, 2025

This PR deals with the comments from @lrhn on an earlier PR #4543, and it updates the primary constructor feature specification to eliminate everything associated with in-body declaring constructors.

The terminology now uses 'primary' everywhere, because that's the only new kind of constructor which is being added by this feature. I did not change the experimental flag because that's a transient and relatively hidden thing.

@eernstg
Copy link
Member Author

eernstg commented Nov 7, 2025

https://dart-review.googlesource.com/c/sdk/+/460420 updates the spec parser to use the new grammar rules, which serves as a sanity check on the grammar.

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.

2 participants