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

Minor omission in metadata section of spec #3773

Closed
bwilkerson opened this issue Feb 6, 2015 · 5 comments · Fixed by #3787
Closed

Minor omission in metadata section of spec #3773

bwilkerson opened this issue Feb 6, 2015 · 5 comments · Fixed by #3787
Labels
specification technical-debt Dealing with a part of the language which needs clarification or adjustments

Comments

@bwilkerson
Copy link
Member

Section 15 (Metadata) currently reads:

Metadata can appear before a library, part header, class, typedef, type parameter,
constructor, factory, function, field, parameter, or variable declaration
and before an import, export or part directive.

but this list is incomplete. It should include 'enum' in the list of declarations.

@gbracha
Copy link

gbracha commented Feb 6, 2015

Added Accepted label.

@eernstg
Copy link
Member

eernstg commented Feb 6, 2018

No milestone now: This correction still needs to be performed, but this will not block Dart 2.

Note that dart-lang/sdk#24425 is very similar (and newer); closing that one as a duplicate of this one.

@srawlins
Copy link
Member

Also the list needs "static extension."

@eernstg eernstg transferred this issue from dart-lang/sdk May 2, 2024
@eernstg eernstg added specification technical-debt Dealing with a part of the language which needs clarification or adjustments labels May 2, 2024
@lrhn
Copy link
Member

lrhn commented May 4, 2024

And extension types now.
Which suggests to make the text non-normative and refer to the grammar for where metadata can actually occur.

@eernstg
Copy link
Member

eernstg commented May 8, 2024

refer to the grammar

We should definitely do that! Done in #3787.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
specification technical-debt Dealing with a part of the language which needs clarification or adjustments
Projects
Development

Successfully merging a pull request may close this issue.

5 participants