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

Support attributes in a few places where they should be legal #78

Merged
merged 2 commits into from
Dec 31, 2021

Conversation

alex-pinkus
Copy link
Owner

  • Support attributes within lambda literals
  • Support annotated inheritance specifiers

It's not clear how exactly these are legal, since they aren't called out
in the grammar. However, GRDB uses them in code that ostensibly
compiles. The grammar assumes that the attributes apply directly to a
capture list (and can only exist if the capture list does).

This has the same ambiguity that attributes in computed properties do,
since it comes before a block of statements (which might be local
declarations).
Clearly these were intended to be supported at one point but I never
hooked them up. There's already an `_annotated_inheritance_specifier`
rules, but it's just unused.
@alex-pinkus alex-pinkus merged commit 4a94dfa into main Dec 31, 2021
@alex-pinkus alex-pinkus deleted the attributes-in-more-places branch December 31, 2021 20:47
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.

1 participant