commit | b7257ef58ee7323cade1b4f3bd1ca19658d89415 | [log] [tgz] |
---|---|---|
author | Paul Berry <paulberry@google.com> | Tue Apr 12 03:27:32 2022 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 12 03:27:32 2022 +0000 |
tree | 94ce5d9b8f69b35d2bfde27f9a265a0b70df2ee7 | |
parent | 8f74289932674d8ca36fc4c803d2d89d23478625 [diff] |
Skip horizontal inference when unncessary due to explicit closure parameter types. The purpose of horizontal inference is to allow the types of closure parameters to be inferred based on the static type of other arguments in the same invocation. When the closure parameter in question already has an explicit type, there is no benefit, and there are potential drawbacks (because horizontal inference could infer too narrow a type). This change includes the explicitness/implicitness of closure parameter types in the dependency analysis for https://github.com/dart-lang/language/issues/731 (improved inference for fold etc.) so that we won't do horizontal inference when it's not needed. Change-Id: I33781877685867a8fcb40de54fc055f6348c21b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240505 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Paul Berry <paulberry@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.