commit | c15eed12695eb1e6dfc6ccc6d7d05df5f0560c5e | [log] [tgz] |
---|---|---|
author | Erik Ernst <eernst@google.com> | Mon Sep 18 09:31:08 2017 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Mon Sep 18 09:31:08 2017 +0000 |
tree | 21ca0c3566212d857897f9277e649fc60916ed85 | |
parent | adb0e8864f58f854a78bd40ee40809c801b83de7 [diff] |
Added metadata to new function type syntax parameter specifications In https://github.com/dart-lang/sdk/issues/30732 the concern was raised that the new Function type syntax does not support metadata on parameter specifications (i.e., on normalParameterTypes and on namedParameterTypes). The implication of adding support for metadata in these locations is that `@required` can be used on function types, which is the motivation for submitting 30732. We have always had support on parameter declarations in function typed parameter declarations (`void foo(@A() int f(@A() String s))`), so in this sense there is no new semantics to worry about (Lasse: "it doesn't mean anything anyway!"). This CL modifies the generic-function-type-alias.md informal spec to include this kind of metadata support. Change-Id: I4520d330458242b31c991f62c03ca2f34f9c5e54 Reviewed-on: https://dart-review.googlesource.com/5762 Commit-Queue: Erik Ernst <eernst@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.