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

add support for annotations in function literals #15832

Open
DartBot opened this issue Dec 30, 2013 · 2 comments
Open

add support for annotations in function literals #15832

DartBot opened this issue Dec 30, 2013 · 2 comments
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Dec 30, 2013

This issue was originally filed by @tatumizer


Currently, to add annotation to function, we have to use a named function.
The issue comes into play especially while passing a function as parameter, or defining array of functions, or including a function as a value in a map literal.
Probably not a big deal, but supporting annotations for function literals directly will make things more uniform; the feature doesn't seem to interfere with anything else, so adding it won't cause collateral damage.

@lrhn
Copy link
Member

lrhn commented Jan 2, 2014

Removed Type-Defect label.
Added Type-Enhancement, Area-Language, Triaged labels.

@gbracha
Copy link
Contributor

gbracha commented Aug 25, 2014

More broadly, I believe metadata should be able to go at any AST node.


Set owner to @gbracha.
Added Accepted label.

@DartBot DartBot added Type-Enhancement area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). labels Aug 25, 2014
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants