commit | bede5c8df347aad9412c4d50b9eae1511696043a | [log] [tgz] |
---|---|---|
author | Johnni Winther <johnniwinther@google.com> | Thu Feb 03 15:44:36 2022 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Feb 03 15:44:36 2022 +0000 |
tree | 815064302d1ef7f6fc9e1f3f4b9429d5f77f1f4a | |
parent | aeb3e1d73b83eddb5c7c3b97987b1a380f9b4f3d [diff] |
[cfe] Handle named arguments anywhere in enhanced enums The arguments synthesized for enhanced enums didn't ensure correct setup of `ArgumentsImpl.argumentsOriginalOrder` needed for the named-arguments-anywhere feature. The CL also handles local initializers as part of constants, as needed when combining the two features. Included is a fix in adding synthesized enum arguments to redirecting initializers. This was accidentally done on all classes (not just enum classes) when enhanced enums was enabled. Closes https://github.com/dart-lang/sdk/issues/48276 Change-Id: If911e57bb338a50f2cee1721b4e43ff343685933 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/231440 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
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.