commit | d0f1edb2daa644e1cbe6c701f193deffee859d01 | [log] [tgz] |
---|---|---|
author | Aske Simon Christensen <askesc@google.com> | Fri Jan 04 14:25:49 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Jan 04 14:25:49 2019 +0000 |
tree | b78f4958b370023c83a9e80acfdf3f1624b9b53d | |
parent | d53f02aa8a2895ffdf2edd43a99b30b25edf0fc6 [diff] |
Temporary desugaring of set literals. When compiling for backends that have not yet implemented support for the set literal kernel node, transform all such literals into either a Set() creation with a sequence of add() calls (for non-const literals) or a const map literal wrapped in a const _UnmodifiableSet object (for const literals). The transformation is only performed on bodies or field initializers that contain at least one actual set literal (i.e. not including ambiguous set/map literals that were resolved as map literals), so as to minimize the overhead for code not containing any set literals. Change-Id: I80318717f0e8481a73f7034e18beea6494fd44bc Reviewed-on: https://dart-review.googlesource.com/c/87326 Commit-Queue: Aske Simon Christensen <askesc@google.com> Reviewed-by: Peter von der Ahé <ahe@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.