Skip to content

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Oct 9, 2025

A tiny adjustment: We have sort of had separate kinds of member declarations for classes, mixins etc., but we never took the step to actually make them different. This PR changes the language specification such that it just has a <memberDeclaration> which is then used in the grammar rules for <mixinDeclaration>, <extensionDeclaration> etc.

This means that it is not a syntax error but an ad-hoc check on the resulting AST when a given member declaration isn't allowed in a specific kind of membered declaration. However, that's the way this is implemented already, so there is no implementation effort associated with this change.

…n text about members to have just one kind
@eernstg eernstg requested a review from lrhn October 9, 2025 10:06
@eernstg eernstg merged commit c95dd33 into main Oct 9, 2025
4 checks passed
@eernstg eernstg deleted the specify_simplify_member_grammar_oct25 branch October 9, 2025 12:24
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